Convert JSON to a compact, TOON-style notation
TOON (Token-Oriented Object Notation) is a compact format designed for passing structured data to large language models. This free converter produces a simplified, TOON-inspired notation — it is not the official TOON format. It keeps JSON's structure of braces, brackets and commas, but removes whitespace, drops the quotes around keys and shortens some common key names (for example name → n and id → i). It also converts that notation back to standard JSON, and a badge shows how many characters smaller the output is than the JSON you pasted.
How to convert JSON to the TOON-style notation
- On the JSON → TOON tab, paste your JSON or click Load Example.
- Click Validate JSON to catch syntax errors first, then Convert to TOON.
- Check the size badge and character counts, then Copy TOON to use the output.
- Switch to the TOON → JSON tab to convert the notation back, then Format or Minify the result.
When it is useful
- Getting a shorter, single-line version of structured data — records, lists and config — to paste into a prompt or a note.
- Seeing how much of a JSON document is whitespace and repeated key quotes.
- Converting the notation back to standard JSON your code can parse.
Limits to know about
- The badge counts characters, not tokens. Check real token counts with your model's tokenizer before relying on any saving.
- Abbreviated keys are less self-explanatory, so tell the model what the short keys mean.
- A key that already matches a short code (such as
n) comes back expanded (asname), and keys containing anything other than plain letters, digits,_or$(a space or hyphen, for example) cannot be converted back.
Runs entirely in your browser
Conversion and validation happen locally in your browser — your JSON is never uploaded or stored, so prompt data and proprietary schemas stay on your device. Prefer to clean up standard JSON first? Pair this with our JSON formatter and validator.
Need a custom tool or internal developer utility built for your team? Get in touch with SR Infobiz.