TOON to TONL Converter
Input TOON
or drop a file anywhere
Output TONL
Your TONL appears here as you type.
Paste data to see token savings
Convert TOON to TONL with our free online converter.
Example: TOON input and real TONL output
The output below was generated by the same conversion code the converter uses, run on this sample when the page was built.
employees[4]{id,name,dept,salary,remote}:
1,Alice Chen,Engineering,128000,true
2,Bob Okafor,Sales,86000,false
3,Carla Diaz,Engineering,119000,true
4,Dan Weiss,Support,64000,false#version 1.0
root:
employees[4]{dept,id,name,remote,salary}:
Engineering,1,Alice Chen,true,128000
Sales,2,Bob Okafor,false,86000
Engineering,3,Carla Diaz,true,119000
Support,4,Dan Weiss,false,64000TONL output is 16% larger than the TOON input. The same data is 324 characters as minified JSON and 532 as pretty-printed JSON. Sizes are character counts, not tokens: token counts depend on the model's tokenizer (see the tokenizer comparison). Across larger datasets, TOON averages about 43% fewer tokens than JSON (42.6%) according to the official TOON benchmark.
TOON to TONL: what changes
- Both formats encode uniform arrays as a header plus rows, so a tabular TOON block maps directly onto a TONL block. TONL reorders the columns alphabetically and adds the #version header.
- Reading TOON: TOON is strict about structure: the [N] in an array header must match the number of rows, and each row needs exactly as many values as the {field} list. Hand-edited TOON that breaks either rule fails to decode.
- Writing TONL: TONL output starts with #version 1.0 and a root key, lists field names in braces, and sorts keys alphabetically. On small payloads the header and per-object field lists make it larger than TOON; TONL earns its place through its query, schema, and streaming tooling.
About TOON
TOON (Token-Oriented Object Notation) is an indentation-based format designed for LLM prompts. It uses about 43% fewer tokens than JSON on average (42.6% in the official TOON v4.1 benchmark), ranging from about 33% on mixed/nested structures to about 59% on flat uniform tables.
- ✓About 43% fewer tokens than JSON on average
- ✓Tabular rows for uniform arrays
- ✓Lossless round trip to JSON
- ✓Readable without tooling
About TONL
TONL (Token-Optimized Notation Language) is a compact text format that maps one-to-one to JSON and ships with a query API, schema validation, and streaming. Savings are roughly 32-45% versus JSON in the TONL project's own measurements.
- ✓Lossless round trip to JSON
- ✓Query and aggregation API
- ✓Schema validation (TSL)
- ✓Streaming for large files
Why Convert TOON to TONL?
Use TONL when you want a compact text format plus tooling around it: querying, schema validation, or streaming. For plain prompt compression, TOON is usually the simpler choice.
TOON to TONL: Frequently Asked Questions
How do I convert TOON to TONL?
Paste your TOON into the editor on json2toon.co. The tool detects the input and produces TONL instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.
Is the TOON to TONL converter free?
Yes. Converting TOON to TONL on json2toon.co is free with no account, signup, or usage limit. A free public API is also available for automated, programmatic conversion.
Why convert TOON to TONL?
Convert TOON to TONL with our free online converter.
What should I watch out for when converting TOON to TONL?
Both formats encode uniform arrays as a header plus rows, so a tabular TOON block maps directly onto a TONL block. TONL reorders the columns alphabetically and adds the #version header.
Is my data safe when I convert TOON to TONL?
Yes. The TOON to TONL conversion happens client-side in your browser. Your source data stays on your device and is never sent to or stored on a server, which makes it safe for private or sensitive payloads.