JSON to TOON Converter – Free & Private
Convert JSON to TOON to cut the tokens you send to ChatGPT, Claude or Gemini, and turn TOON back into JSON. Runs in your browser.
Short answer
To convert JSON to TOON, paste your JSON on the left. The TOON version appears on the right with an estimate of how many tokens it saves. TOON writes lists of similar objects as a table with the field names once, so it often uses 30–60% fewer tokens than JSON in an AI prompt. Switch direction to turn TOON back into JSON. Nothing leaves your browser.
How to use JSON to TOON
- Step 1
Paste your text, open a file, or press “Sample”.
- Step 2
Pick the options you need. The result updates as you type.
- Step 3
Copy the result or download it.
Settings explained
- Direction
- Turn JSON into TOON for a prompt, or TOON from a model’s answer back into JSON.
- Delimiter
- What separates values in table rows. Tab often saves a few more tokens; use Pipe if your values contain commas.
- Indent
- How far each level is pushed in. Use the same value when you convert back.
JSON vs TOON: the same data
Three orders take 178 characters as minified JSON and 101 as TOON, about 43% less. The field names are written once, and the [3] count lets a model check that no row is missing.
{"orders":[
{"id":1041,"customer":"Asha","total":1250,"paid":true},
{"id":1042,"customer":"Ravi","total":640,"paid":false},
{"id":1043,"customer":"Meera","total":2100,"paid":true}
]}orders[3]{id,customer,total,paid}:
1041,Asha,1250,true
1042,Ravi,640,false
1043,Meera,2100,trueKeyboard shortcuts
- Paste into the input
- Ctrl V
- Format now (JSON)
- Ctrl Enter
- Search all tools
- Ctrl K
Tips for better results
- TOON saves the most on lists of similar objects, such as rows from a database or an API.
- Tell the model in your prompt that the data is in TOON format; most models read it without extra explanation.
- Validate your JSON first with the JSON validator if conversion fails.
- TOON stands for token oriented object notation. Use it to reduce LLM tokens in prompts that carry tables of data.
What it does
- JSON → TOON and TOON → JSON
- Token saving estimate
- Comma, tab or pipe rows
- Open .json files
- Copy or download .toon
- Never uploaded
Questions
What is TOON?
TOON (Token-Oriented Object Notation) is a compact way to write the same data as JSON for large language models. Lists of objects with the same fields become a header line plus one row per item, much like CSV, and nested objects use indentation instead of braces.
How many tokens does TOON save?
It depends on the shape of the data. Lists of similar objects (users, orders, products) often drop 30–60% versus JSON. Deeply nested or irregular data saves little, and the tool tells you when there is no saving.
Is the token count exact?
No. It is an estimate of about 4 characters per token. Each model (GPT, Claude, Gemini) counts tokens in its own way, so use it to compare, not as a bill.
Can I convert TOON back to JSON?
Yes. Choose TOON → JSON and paste the TOON. Row counts are checked, so a cut-off answer from a model shows an error instead of quietly losing data.
Is my data sent anywhere?
No. Conversion runs in your browser using the open-source TOON library (MIT licence), so private data and API keys stay on your computer.
Related tools
Runs in your browser · Updated · Report a problem