Loading TOON Fixer...

How to Fix Broken TOON - A Short Guide

Step 1

Paste Your Broken TOON Data

Got TOON (Token-Oriented Object Notation) that a reader rejects? Paste it into the left editor. Once it is repaired, our TOON Validator, TOON Formatter, or TOON to JSON converter can take it from there.

•

Paste broken TOON: Copy TOON that fails to parse from your prompt pipelines, token-optimization scripts, or a language model's own output

•

Fix structural errors: Wrong row counts, rows with the wrong number of values, bad indentation, and misplaced lines a reader drops

•

Try sample TOON: Click "Sample TOON" to load a broken example and see the fixer in action

Note: The request gives up after a minute, so very large data may not come back. Fix it in smaller sections instead.

Step 2

Common TOON Errors the Fixer Repairs

Click Fix TOON!! and your data goes to our server, where an AI model repairs the structure and sends back a corrected copy. If the data already parses cleanly, it comes straight back unchanged and nothing is sent. Here are the mistakes it looks for:

1. Row Count Does Not Match the Rows

The [N] in the header has to equal the number of rows that follow.

Wrong:

users[3]{id,name}:
  1,Sarah
  2,Michael

Correct:

users[2]{id,name}:
  1,Sarah
  2,Michael

2. A Row With the Wrong Number of Values

Every row needs exactly one value per column in the {...} header.

Wrong:

users[2]{id,name,role}:
  1,Sarah
  2,Michael,admin

Correct:

users[2]{id,name,role}:
  1,Sarah,viewer
  2,Michael,admin

3. Indentation That Is Not a Multiple of Two Spaces

Nested lines are indented two spaces per level, with no tabs.

Wrong:

settings:
   theme: dark
   retries: 3

Correct:

settings:
  theme: dark
  retries: 3

4. A Key That Should Open a Block

A key with nested lines under it needs a colon so a reader opens a block instead of dropping those lines.

Wrong:

settings
  theme: dark
  retries: 3

Correct:

settings:
  theme: dark
  retries: 3
Step 3

Check and Copy the Result

The repaired TOON appears as plain text in the right editor. Read it against your original before you use it — on badly broken input the model has to guess — and for anything important, run it through our TOON Validator. Then copy it into your project.

TOON Format Best Practices

Keep the count honest: The [N] in a table or list header must equal the number of rows or items that follow it

One value per column: Each row carries exactly as many comma-separated values as the {...} header lists; wrap a value that contains a comma in double quotes

Indent with spaces: Use two spaces per level and no tabs, and give a key a colon when a block is nested under it

Why bother with TOON: A count-and-column header drops the repeated keys JSON would spell out on every object, which trims tokens in a prompt — our JSON to TOON converter builds it for you

Frequently Asked Questions

What is TOON and what does the fixer repair?

TOON (Token-Oriented Object Notation) is a compact text format that packs arrays of objects into a count-and-column header such as "users[3]{id,name,role}:" with one comma-separated row per line, so it uses fewer tokens than JSON in a language model prompt. The fixer targets the structural mistakes that stop a TOON reader: a row count that does not match the rows that follow, a row with too few or too many values, indentation that is not a clean multiple of two spaces, and a line that is misplaced so a reader silently drops it.

Is my TOON data sent to a server?

Yes. When you click Fix TOON!!, the data is sent to our server and repaired by an AI model. Nothing is sent while you type or when you load the sample, and if the data is already valid TOON it is shown back unchanged without sending anything. The data is not kept — reloading the page starts with an empty editor — but leave out anything you would not want to share.

Does the fixer change my numbers or values?

The repaired TOON is shown exactly as the model returned it, as plain text in the right editor. The page never re-encodes or re-decodes the answer, so a long id like 8901240544102066246, a zero-padded code like 00501 and a decimal like 14.50 come through character for character — whatever the model sends back is what you see.

Can I trust the fixed TOON?

Read it before you use it. The fixer is an AI model: it normally keeps your keys, columns and values, but on badly broken input it has to guess what the structure was meant to be. For anything important, check the result with our TOON Validator.

Does it handle documents with several tables or nested objects?

Yes. A TOON document can hold several tables and lists alongside plain key/value pairs and nested objects, and the fixer works on the whole document at once. Very broken or very large data is harder for the model to reconstruct, so split a big file into parts and fix them one at a time.

Does it work with large data?

Small to medium data works best. A large document takes the model longer and the request gives up after a minute, so break a very large file into sections and fix them separately.

Is the TOON fixer free to use?

Yes, it is free and no account is needed. If a lot of people use it at the same moment the server may ask you to wait a minute before trying again.

Can I convert the fixed TOON to other formats?

Once your TOON is valid, use our TOON to JSON converter to turn it into JSON, TOON to CSV for a spreadsheet, or the TOON Validator to double-check the structure.