TOON to TOML Converter
Convert TOON to TOML format
TOON Input
TOML Output
Paste your TOON on the left and the TOML shows up here.
Or drop a file on this box, , or .
What is TOON to TOML Converter?
TOON (Token-Oriented Object Notation) was built to save tokens in prompts, while TOML was built for config files that people edit by hand. When a list of services or users came back from a model as TOON and you need it in a .toml file, this page does the translation: a tabular block such as users[3]{id,name,role}: becomes three [[users]] sections, one per row.
The format behind Cargo.toml and pyproject.toml, TOML (Tom's Obvious, Minimal Language), is stricter than TOON in two ways that matter here. The top of a TOML file has to be a table of keys, so a TOON document that is only a list is rejected with a hint to wrap it under a key. And TOML has no null, so a null field is left out and named in a # Left out ... comment at the top of the output instead of being silently lost.
Decoding and TOML writing both happen in the page, so a config with hostnames or keys in it is not stored. If the right panel starts with Invalid TOON, read the rest of the line: sometimes the TOON itself is broken (the TOON Validator helps there), and sometimes it is fine but has no TOML shape, in which case TOON to JSON takes it as it is.
What Makes This Tool Different
Valid TOML Syntax
Generates valid TOML that follows TOML v1.0.0 specification. Proper tables, key-value pairs, and structure ensure compatibility with any TOML parser.
Human Readable
TOML output is clean and readable with proper formatting. Easy to read, edit, and understand – perfect for configuration files that humans need to maintain.
Type Preservation
A nested object becomes its own [section], a list of objects becomes [[array of tables]], and an ID like 8901240544102066246 stays a bare integer with all 19 digits. A 20-digit ICCID does not fit TOML's 64-bit integers, so it is written as a quoted string and a comment says which key that happened to.
File Upload Support
Got a TOON file? Just upload it. Works with .toon and .txt files. No need to copy-paste – just drag and drop or click upload.
Download TOML
One click to download your converted TOML as a .toml file. Perfect for saving, sharing, or using in TOML-based configuration systems.
Nested Tables
Handles complex nested structures perfectly. Objects become TOML tables, nested objects become nested tables, and arrays are converted correctly.
How It Works
Paste or Upload TOON
Your TOON goes in the input editor, typed or pasted, and Upload reads .toon and .txt files. The Sample button fills in a users[3]{id,name,role} block with Ava Chen, Marcus Okafor and Priya Raman. The input needs a key at the top (service: billing, users[3]: ...), because a bare list has nowhere to go in TOML.
Automatic Conversion
The right panel rewrites itself shortly after each edit. Plain keys stay at the top as key = value lines, an inline list like regions[2]: eu-west-1,us-east-2 turns into regions = [ "eu-west-1", "us-east-2" ], and every row of a tabular block gets its own [[users]] header.
Copy or Download
Download writes a .toml file you can drop next to your project; Copy is the quicker option when you are merging a few tables into a Cargo.toml or pyproject.toml that already exists. Read the comment lines at the top before you commit the file, since they list anything TOML could not hold as written.
When You'd Actually Use This
Package Managers
Working with Rust's Cargo, Python's Poetry, or other tools that use TOML? Convert TOON data to TOML for use in Cargo.toml, pyproject.toml, or other package configuration files.
Application Configuration
Many modern applications use TOML for configuration files. Convert TOON data to TOML for use in application settings, deployment configs, or environment configurations.
Build Tools
Using build tools that prefer TOML format? Convert TOON to TOML for use in build configuration files, CI/CD settings, or deployment scripts.
Data Migration
Migrating data to systems that require TOML format? Convert TOON to TOML for use in configuration-driven applications or TOML-based data stores.
Common Questions
Is my TOON data stored?
No. The TOON is read by the rules of the reference TOON package and the TOML is written in the style smol-toml uses, both inside this page. No request carries your document, so secrets in a config are as safe as they are on your own screen.
What TOON formats are supported?
Any TOON the decoder accepts: key: value pairs, indented objects, inline lists like tags[2]: a,b, and tabular blocks with a {field,field} header. What decides success is the shape, not the syntax. TOML wants keys at the root, and a list may not contain null, because TOML has no way to write either.
Is the TOML valid?
Yes, the output parses in smol-toml and other strict parsers, and follows the TOML 1.0 rules. Anything TOML can't express, like null, is left out and listed in a comment at the top rather than written as invalid TOML.
How are data types handled?
Text, numbers and true/false carry over as they are. One thing to watch: a date-looking value such as 2026-11-02 comes out as the quoted string "2026-11-02", not a TOML date, because TOON has no date type and the converter does not guess. If you want a real TOML date, remove the quotes by hand after converting.
Can I convert TOML back to TOON?
Yes, through JSON. TOML to JSON reads the file, and JSON to TOON writes the compact form again, putting a list of same-shaped [[tables]] back into one tabular block. Comments in the TOML do not survive that trip, since neither JSON nor TOON has anywhere to keep them.
Does it work with large datasets?
Config files are rarely big, and a few hundred kilobytes convert without a noticeable pause. Where it slows down is a TOON block with thousands of rows: every row becomes its own [[table]] with repeated key names, so the TOML ends up several times longer than the TOON you pasted.
Other TOON Tools You Might Need
TOML is picky about its shape, so when a document will not fit, one of these usually gets you there by another route: