JSON TOON Converter
Convert JSON and TOON both ways, choose delimiters, and compare token savings locally.
How to use
Choose JSON → TOON, paste JSON, then select comma, Tab, or pipe delimiters. The optional # marker makes array lengths more explicit. Switch direction or use Swap to decode TOON back into formatted JSON. The comparison uses the selected local tokenizer for minified JSON, pretty JSON, and TOON.
TOON usually saves the most tokens on uniform arrays of objects because field names are declared once. Deeply nested or irregular data can use more tokens than minified JSON, so check the measured result instead of assuming a saving.
FAQ
When does TOON save tokens?
The biggest savings usually come from uniform arrays of objects, where one header replaces repeated JSON keys. Small, deeply nested, or irregular structures may not save tokens.
Can the converter decode its TOON output?
Yes. The decoder round-trips every form emitted here, including nested objects, inline primitive arrays, tabular rows, mixed list items, all three delimiters, and optional # length markers.
Is my JSON uploaded for conversion or token counting?
No. Conversion, decoding, and token counting all run locally in your browser.