Convert JSON to TOML and TOML back to JSON, in both directions, entirely in your browser.
How to use the JSON / TOML
Choose a direction: JSON to TOML or TOML to JSON.
Paste your JSON or TOML.
Copy the result, or swap to convert back.
This is a two-way converter between JSON and TOML. Pick a direction, paste your data, and copy the result. It is built on a well-tested TOML parser that handles nested tables and arrays of tables correctly.
Everything runs locally in your browser, so your data, which for config files can include hostnames or tokens, never leaves your device.
TOML (Tom's Obvious, Minimal Language) is a configuration format designed to be obvious to read and to map cleanly onto a hash table. It is what Rust's Cargo uses for Cargo.toml and what Python projects use for pyproject.toml, among many others.
JSON and TOML describe similar data but suit different jobs. JSON is the lingua franca for APIs and machine exchange. TOML is built for human-written config, with sections, comments and first-class dates that make a settings file pleasant to edit.
TOML also supports native date and time values and typed numbers, so values keep their meaning rather than all becoming strings, which is part of why it is preferred for configuration.
Most data round-trips cleanly, but there is one catch. TOML has no null value. JSON nulls cannot be represented, so remove or replace them before converting to TOML, otherwise the conversion cannot express them.
Frequently asked questions
TOML is a minimal configuration format designed to be easy to read, used by tools like Cargo and many Python projects in pyproject.toml.
Most data does. TOML has no null, so JSON nulls cannot be represented; remove or replace them before converting.
No. The conversion runs entirely in your browser, so your data never leaves your device.
All three hold structured data. JSON suits machines and APIs, YAML and TOML suit human-written config. TOML favors clear sections and typed values like dates, where YAML relies on indentation.
Yes. TOML has native date, time and number types, so those values keep their type through the conversion instead of becoming plain strings.
Embed this tool
Add this tool to your own website. Copy the snippet below; it stays up to date automatically.
<iframe src="https://monu.tools/embed/en/json-toml-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Learn more
Why Is My JSON Invalid? How to Find and Fix the Error
The six mistakes that break JSON, how to read a parser error, and how to fix invalid JSON fast.
How to Minify JSON to Shrink API Payloads
What minifying JSON actually removes, the realistic 20 to 40 percent size win, and why server compression usually matters more.
How to Convert JSON to CSV (and Keep Nested Data Sane)
Convert JSON to CSV without losing your nested objects: flattening, exploding arrays, delimiters, Excel BOM gotchas, and the round-trip back.
YAML vs JSON: Which One Should Your Config Use?
YAML vs JSON compared for config files and APIs: syntax, comments, the Norway problem, indentation traps, TOML, and lossless conversion.
Turn a JSON Response into a TypeScript Interface in Seconds
Generate a TypeScript interface from any JSON response: optional fields, nullables, nested types, and where a single sample falls short.
Related tools
Format, beautify and validate JSON online with clear error messages for invalid input.
Minify and validate JSON in your browser, and see how many bytes you save.
Convert JSON to CSV and CSV back to JSON, both ways. Choose the delimiter, handle quoted fields, and copy the result. Everything runs in your browser.
Convert YAML to JSON and JSON back to YAML, both ways. Validates as it converts and shows clear errors. Everything runs in your browser.