How to use it
- Paste JSON or TOON, drop a file on the box, or press Example. The direction is detected: valid JSON becomes TOON, anything else is read as TOON.
- The result appears automatically. The status line compares the tokens of TOON with compact and indented JSON.
- Pick a Separator if your values contain many commas, then copy or download the result.
What TOON looks like
TOON writes objects as indented key: value lines. A list of objects that share the same plain fields becomes a table: the field names appear once, then one row per item.
{"users": [{"id": 1, "name": "Demo"}, {"id": 2, "name": "Test"}]}becomes
users[2]{id,name}:
1,Demo
2,TestWhen it helps
The saving is largest for long lists of similar records, such as table rows or search results. Deeply nested data with few repeated fields may save little, and the tool tells you when that is the case. Models read JSON well, so test TOON with your own model and prompt before you switch.
Details
- Numbers are written in plain decimal form. Large integers keep every digit.
- Text is quoted only when it needs to be, for example when it contains the separator or a colon, or looks like a number.
- Tab or pipe separators are named in each list header, such as
[2|]. - Token counts use the o200k_base tokenizer (GPT-4o). Other models count differently.
- This page loads a larger file than most tools, because it includes the tokenizer.
Example
Made-up input, and what JSON to TOON Converter returns for it. Long text is shortened.
{
"project": "demo-shop",
"users": [
{
"id": 1,
"name": "Demo User",
"role": "admin",
"active": true
},
{
"id": 2,
"name": "Test User",
"role": "viewer",
"active": false
},
{
"id": 3,
"name": "Sample User",
"role": "editor",
"active": true
}
],
…project: demo-shop
users[3]{id,name,role,active}:
1,Demo User,admin,true
2,Test User,viewer,false
3,Sample User,editor,true
tags[2]: shop,demo
settings:
currency: EUR
limit: 50Questions
Can it turn TOON back into JSON?
Yes. Paste TOON and you get formatted JSON. If the TOON has a mistake, such as a row count that does not match its header, the message names the line.
Is my JSON sent to an AI model?
No. Converting and counting happen in your browser, with no API key.