Paste a JSON document and get the same data as TOON (Token-Oriented Object Notation), which writes a list of same-shaped objects once as a table instead of repeating every key. It is meant to make structured data shorter before you put it in an LLM prompt. Conversion runs in your browser.
Runs in your browser
Free, no sign-up. Conversion runs in your browser. The JSON you paste is not uploaded or stored and is never included in analytics, which record only actions such as 'convert' or 'copy'.
Convert JSON into compact Token-Oriented Object Notation for LLM prompts.
TOON output will appear here.Character Savings
0%
JSON Size
0
TOON Size
0
Tables Found
0
Uniform arrays of primitive-only objects are encoded as compact tables with one field header and fixed-width rows. Other arrays use explicit lengths and expanded list items so nested JSON remains readable.
Sample data
{"team":"Atlas","active":true,"members":[{"id":1,"name":"Asha","role":"dev"},{"id":2,"name":"Ben","role":"design"},{"id":3,"name":"Chen","role":"dev"}]}team: Atlas
active: true
members[3]{id,name,role}:
1,Asha,dev
2,Ben,design
3,Chen,devDefault settings (comma delimiter, keys not sorted). The tool reports 270 characters for the 2-space pretty-printed JSON and 91 for the TOON, a 66.3% character saving, and 1 table found. The three objects share the keys id, name and role, so the keys are written once in the members[3]{id,name,role} header.
TOON is a compact text notation for the JSON data model. Objects use indented key: value lines, similar to YAML, and arrays declare their length. When every item in an array is an object with the same primitive-valued keys, the array becomes a table: one header naming the fields, then one row per item.
Because the keys appear once instead of in every item, long lists of records get much shorter. Nested or mixed arrays do not form tables and are written as plain lists, so they save less.
Character Savings compares the TOON text with your JSON re-printed with 2-space indentation, not with minified JSON. Against minified JSON the gap is smaller, so check against what you actually send.
Characters are not tokens. Different models split text differently, so the real token saving depends on the model's tokenizer. Treat the figure as an indication and measure with your own model's token counter before relying on it.
character savings % = (JSON characters - TOON characters) / JSON characters x 100
Values in a table are separated by the delimiter you pick. Any string that contains the delimiter, or that could be confused with another type or with structure, is wrapped in quotes so the data stays unambiguous. Pipe or Tab can reduce quoting when your text contains many commas.
No. The conversion is JavaScript running on this page. Your data is not uploaded or logged, and analytics events never contain the input or output.
No. Lists of identical records shrink a lot, but deeply nested data or objects whose keys differ from item to item save little, and tiny inputs can show no saving at all.
Usually fewer, but not by the same percentage. Tokenisers differ per model, so measure with the token counter for the model you use before you commit to a format.
Not with this tool: it converts JSON to TOON only. Keep your original JSON if you need to restore it.
Many models read it correctly when you tell them the format in the prompt, but I cannot promise that for every model. Test with your own prompts and keep the JSON as a fallback.
We build AI assistants and automations grounded in your documents and systems, with access controls and evaluation built in.