FREE · DEVELOPER TOOLS
JSON to TOON Converter.
Convert JSON to TOON (Token-Oriented Object Notation) and back to cut the size of data you send to LLMs, with a size comparison and a round-trip check.
Loading the calculator…
Steps to use JSON to TOON Converter
Paste JSON (or TOON to decode), choose the delimiter and copy the result. The round-trip check confirms nothing was lost.
How JSON to TOON Converter processes your input
Objects use indentation, arrays carry their length [N], and arrays of uniform flat objects become tables with a {field} header. Strings are quoted only when needed. Tested on thousands of random documents.
JSON to TOON Converter: worked example
Three users with id, name, role and active become one header users[3]{id,name,role,active}: and three short rows — about 40 % smaller than compact JSON.
Convert JSON to TOON to save tokens
- Paste JSON, or paste TOON to decode it back to JSON.
- Choose the delimiter used inside table rows.
- Copy the result. The size comparison shows how much you saved, and the round-trip check confirms nothing was lost.
TOON (Token-Oriented Object Notation) is a compact text format for sending structured data to large language models. Example: three users with id, name, role and active become one header users[3]{id,name,role,active}: followed by three short rows, about 40% smaller than compact JSON.
How the format works
- Objects use indentation instead of braces, and arrays carry their length, written [N].
- Arrays of uniform, flat objects become tables: field names appear once in a {field} header, then one row per item.
- Strings are quoted only when needed, which removes much of the punctuation that JSON repeats.
- Token counts are estimates of about 4 characters per token; real counts depend on the model’s tokenizer. Everything runs in your browser. To clean the JSON first, use the JSON formatter; to turn it into a table, try JSON to CSV.
Questions about JSON to TOON Converter
Is TOON lossless?
Yes for JSON data. The round-trip check decodes the TOON back and compares it with your original JSON.
When does TOON save the most?
With long arrays of objects that share the same fields, such as lists of users, products or log lines.
Is my data sent to an AI service?
No. The conversion runs in your browser; you choose where to paste the result.
Is JSON to TOON Converter free, and do I need an account?
Yes. This tool is free to use in your browser without an account. Processing takes place on your device.
What are the limits and what should I check?
Token counts are estimates (about 4 characters per token). Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.
Is my input sent to a server?
Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.