TOON to JSON Converter

Input TOON

Output JSON

Your JSON appears here as you type.

Paste data to see token savings

Convert TOON back to JSON for programmatic processing or API consumption.

Example: TOON input and real JSON output

The output below was generated by the same conversion code the converter uses, run on this sample when the page was built.

TOON input (186 characters)
employees[4]{id,name,dept,salary,remote}:
  1,Alice Chen,Engineering,128000,true
  2,Bob Okafor,Sales,86000,false
  3,Carla Diaz,Engineering,119000,true
  4,Dan Weiss,Support,64000,false
JSON output (532 characters)
{
  "employees": [
    {
      "id": 1,
      "name": "Alice Chen",
      "dept": "Engineering",
      "salary": 128000,
      "remote": true
    },
    {
      "id": 2,
      "name": "Bob Okafor",
      "dept": "Sales",
      "salary": 86000,
      "remote": false
    },
    {
      "id": 3,
      "name": "Carla Diaz",
      "dept": "Engineering",
      "salary": 119000,
      "remote": true
    },
    {
      "id": 4,
      "name": "Dan Weiss",
      "dept": "Support",
      "salary": 64000,
      "remote": false
    }
  ]
}

JSON output is 186% larger than the TOON input. The same data is 324 characters as minified JSON and 532 as pretty-printed JSON. Sizes are character counts, not tokens: token counts depend on the model's tokenizer (see the tokenizer comparison). Across larger datasets, TOON averages about 43% fewer tokens than JSON (42.6%) according to the official TOON benchmark.

TOON to JSON: what changes

  • TOON decodes to exactly the JSON it was encoded from: same values, same types, same key order. Use this direction to validate model output written in TOON or to feed it back into code.
  • Reading TOON: TOON is strict about structure: the [N] in an array header must match the number of rows, and each row needs exactly as many values as the {field} list. Hand-edited TOON that breaks either rule fails to decode.
  • Writing JSON: Output is pretty-printed with your chosen indentation. JSON is the safest target when the data goes into code, an API, or another tool.

About TOON

TOON (Token-Oriented Object Notation) is an indentation-based format designed for LLM prompts. It uses about 43% fewer tokens than JSON on average (42.6% in the official TOON v4.1 benchmark), ranging from about 33% on mixed/nested structures to about 59% on flat uniform tables.

  • ✓About 43% fewer tokens than JSON on average
  • ✓Tabular rows for uniform arrays
  • ✓Lossless round trip to JSON
  • ✓Readable without tooling
Full TOON Documentation →

About JSON

JavaScript Object Notation is the most widely used data interchange format. Lightweight, easy to parse, and supported by every programming language.

  • ✓Universal compatibility
  • ✓Easy to parse
  • ✓Great for APIs
  • ✓Native in JavaScript
Full JSON Documentation →

Why Convert TOON to JSON?

Use JSON when you need maximum compatibility with other systems, APIs, or programming languages. It's the de facto standard for web APIs and data exchange.

TOON to JSON: Frequently Asked Questions

How do I convert TOON to JSON?

Paste your TOON into the editor on json2toon.co. The tool detects the input and produces JSON instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.

Is the TOON to JSON converter free?

Yes. Converting TOON to JSON on json2toon.co is free with no account, signup, or usage limit. A free public API is also available for automated, programmatic conversion.

Why convert TOON to JSON?

Convert TOON back to JSON for programmatic processing or API consumption.

What should I watch out for when converting TOON to JSON?

TOON decodes to exactly the JSON it was encoded from: same values, same types, same key order. Use this direction to validate model output written in TOON or to feed it back into code.

Is my data safe when I convert TOON to JSON?

Yes. The TOON to JSON conversion happens client-side in your browser. Your source data stays on your device and is never sent to or stored on a server, which makes it safe for private or sensitive payloads.