1 MinuteTools

TOON to JSON converter

Turn TOON back into JSON, with strict checks on the format.

Your data stays on your device. It is never uploaded.

Paste TOON to see the JSON version here.

  1. 1Paste or open your TOON
  2. 2It is converted in your browser
  3. 3Copy it or download a .json file

Nothing is uploaded. It all stays on your device.

Convert TOON to JSON

TOON (Token-Oriented Object Notation) is a compact format for sending structured data to language models. Paste TOON here to get standard JSON back, for example to check what a model produced or to use the data in another program.

Example

This TOON:

TOON

users[2]{id,name,role}:
  1,Ada,admin
  2,Bob,user

becomes this JSON:

JSON

{
  "users": [
    {
      "id": 1,
      "name": "Ada",
      "role": "admin"
    },
    {
      "id": 2,
      "name": "Bob",
      "role": "user"
    }
  ]
}

How to use it

  1. Paste your TOON, or open a .toon file.
  2. Choose the indent your TOON uses, if it is not the default 2 spaces.
  3. Choose formatted or compact JSON.
  4. Copy the JSON, or download it as a .json file.

What is checked

  • The number of items or rows matches the number in each header.
  • Every row has the right number of values.
  • Indentation is made of spaces and is a multiple of the indent size.
  • No key appears twice in the same object.
  • Quoted text uses only valid escapes.

Format notes

  • This converter follows the TOON specification, version 4.4 (a working draft).
  • Lines that start with # are comments and are ignored.
  • Whole numbers larger than 9,007,199,254,740,991 lose precision when a browser turns them into JSON numbers.

Your data stays private

Your data is processed in your browser. It is never uploaded or stored.

Questions

How do I convert TOON to JSON?
Paste your TOON into the box. The JSON appears straight away, and you can copy it or download it as a .json file.
Why does it say my TOON could not be read?
The input is checked strictly. Common causes are an item count that does not match the header (for example [3] with only two items), indentation that is not a multiple of the indent size, a duplicate key, or a blank line inside a table. The message names the line.
Does it accept comments?
Yes. A line that starts with # is treated as a comment and ignored.
How are numbers read?
A value is a number only if it follows the plain JSON number form. Values such as 05, +5, .5 or Infinity are read as text, not numbers.
Is my data uploaded?
No. The conversion runs in your browser. Your TOON never leaves your device.

More convert

Other free tools