TOON to TOML Converter
Input TOON
or drop a file anywhere
Output TOML
Your TOML appears here as you type.
Paste data to see token savings
Convert TOON to TOML with our free online converter.
Example: TOON input and real TOML 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[[employees]]
id = 1
name = "Alice Chen"
dept = "Engineering"
salary = 128000
remote = true
[[employees]]
id = 2
name = "Bob Okafor"
dept = "Sales"
salary = 86000
remote = false
[[employees]]
id = 3
name = "Carla Diaz"
dept = "Engineering"
salary = 119000
remote = true
[[employees]]
id = 4
name = "Dan Weiss"
dept = "Support"
salary = 64000
remote = falseTOML output is 93% 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 TOML: what changes
- 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 TOML: TOML requires a top-level table: a root-level array is wrapped as [[data]]. Arrays of objects become [[name]] array-of-tables blocks, and null values are silently dropped because TOML has no null.
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 TOML
TOML is a config file format with explicit types. It's the official format for Python's pyproject.toml and Cargo's Cargo.toml.
- ✓Explicit types
- ✓Standard in Python/Rust
- ✓Unambiguous
- ✓Easy to parse
Why Convert TOON to TOML?
Use TOML for application configuration, especially in Python (pyproject.toml) or Rust (Cargo.toml) projects. It has explicit types and no ambiguity.
TOON to TOML: Frequently Asked Questions
How do I convert TOON to TOML?
Paste your TOON into the editor on json2toon.co. The tool detects the input and produces TOML instantly, then you copy the result. Conversion runs entirely in your browser, so nothing is uploaded to a server.
Is the TOON to TOML converter free?
Yes. Converting TOON to TOML 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 TOML?
Convert TOON to TOML with our free online converter.
What should I watch out for when converting TOON to TOML?
TOML requires a top-level table: a root-level array is wrapped as [[data]]. Arrays of objects become [[name]] array-of-tables blocks, and null values are silently dropped because TOML has no null.
Is my data safe when I convert TOON to TOML?
Yes. The TOON to TOML 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.