Input
Result
Choose an operation to start
JSON ↔ TOML Converter
Enter JSON or TOML on the left, pick a direction, and get the other notation. TOML is the config format behind Go and Rust projects (e.g. Cargo.toml); converting to and from JSON makes it easy to move data between editors, APIs and config files.
Conversion uses the @iarna/toml library loaded in your browser; no text is uploaded.
Features
- Two-way — Swap between JSON → TOML and TOML → JSON with one click.
- Config friendly — Tailored to config files in Go / Rust projects.
- Instant — Converts as you type; parse errors point at the problem.
How to use
- Enter JSON or TOML on the left.
- Pick the direction on the right.
- The result appears instantly; click Copy to take it.
FAQ
Is TOML better than JSON for config?
For config it is often clearer: comments, unquoted keys and explicit grouping (tables) mean fewer braces and quotes than JSON, and none of YAML’s indentation traps — which is why many language templates adopt it by default.
Does conversion need a network?
The @iarna/toml parser loads from a public CDN, so the first page open needs network; once loaded, plain-text conversion runs locally.