TOML Converter
Convert TOML to JSON and back — verify config files instantly.
What is TOML Converter
This TOML converter translates between TOML and JSON in both directions. Inspect Cargo.toml or pyproject.toml contents as JSON, or generate TOML from JSON. Built on the @iarna/toml library; errors are reported with row details. Everything runs locally in your browser.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
A configuration format with real types
TOML has actual dates, integers, floats and booleans, unlike INI where everything is a string. A bare 2026-11-26T09:00:00Z parses as a datetime, not as text — useful for config validation, and a surprise when a value that looks like a version (1.10) is read as a float and loses its second dot.
There is no null in TOML: absence of a key is the only way to express nothing. That is a genuine difference from JSON and YAML, and it means a serialiser emitting null has to drop the key, which loses the distinction between 'unset' and 'explicitly empty'.
Table ordering and array-of-tables
Standard tables are declared with [name] and belong to whichever table header precedes them; array-of-tables entries with [[name]] append to a list in file order. Reordering a file can therefore change the meaning, which is why a formatter must preserve document order rather than sorting keys.
Dotted keys and quoted keys interact: a.b = 1 inside [t] defines t.a.b, while "a.b" = 1 defines a key literally named a.b. Getting those confused produces configuration that parses cleanly and is read as something entirely different by the application.
What to check after editing
Duplicate keys are an error in TOML rather than a last-one-wins situation, which is a feature — it catches the merge accident that silently overrides a value in JSON. If a tool accepts duplicates without complaint, it is not following the spec.
Multi-line strings (""" … """) preserve newlines but trim the first one after the opening delimiter, and a trailing backslash removes the following newline. Both details matter for embedded scripts, and both are easy to break with an editor that reindents automatically.
How to use
- 1.Paste TOML or JSON
- 2.Pick a direction
- 3.Run and copy the result
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Invalid input returns the parser error position instead of a repaired file | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
Which directions are supported?
Both TOML→JSON and JSON→TOML. JSON→TOML requires a top-level object.
Typical use cases?
Inspecting Cargo.toml / pyproject.toml, verifying CI configs, or learning TOML syntax.
What this kind of conversion cannot keep
Formatters parse the input into a tree and print it back with consistent indentation. If the input is invalid, you get the parser's error position instead of a silently mangled file — malformed JSON stays malformed rather than being «repaired» into something that is no longer yours.
More in Format
On this page
- What is TOML Converter
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →