TOML ↔ JSON Converter
Convert between TOML and JSON formats instantly. Supports tables, arrays, inline tables, and all TOML data types.
TOML
JSON
💡 Definition
TOML & JSON
- TOML (Tom's Obvious, Minimal Language) is a configuration file format designed to be easy to read.
- JSON (JavaScript Object Notation) is the most common data interchange format.
- This tool converts between them for config file migration or inspection.
📖 How to use
Step by Step
- Paste TOML config in the left panel
- JSON equivalent appears on the right
- Paste JSON on the right to convert to TOML
- Supports nested tables, arrays, and all TOML types
🎯 Use cases
When to use
- Converting config files between formats
- Inspecting TOML config as JSON
- Migrating from TOML to JSON or vice versa
- Working with Cargo.toml, pyproject.toml, etc.
Frequently Asked Questions
What TOML features are supported?▾
This tool supports: basic strings, integers, floats, booleans, datetimes, arrays, inline tables, standard tables [table], and array of tables [[table]].
Can I convert Cargo.toml?▾
Yes. Paste any Cargo.toml and get the JSON equivalent. Note that TOML preserves more semantic meaning (like datetime types) that JSON stores as plain strings.