TOML ⇄ JSON
Convert Cargo/pyproject-style TOML to JSON and back.
Powered by smol-toml — handles tables, arrays, inline tables, dates and nested structures. Great for Cargo.toml / pyproject.toml files.
About the TOML ⇄ JSON
Convert TOML configuration to JSON and back, powered by the smol-toml parser. Tables, arrays, inline tables, dates and nested structures all translate cleanly, which makes it a quick bridge for Cargo.toml, pyproject.toml and other Rust or Python config files.
How to use the TOML ⇄ JSON
- Pick a direction: TOML → JSON or JSON → TOML.
- Paste your config into the editor — a sample is shown in the placeholder.
- Read the converted output and copy it.
- Switch tabs to convert the result back the other way.
TOML ⇄ JSON FAQ
Which TOML features are supported?
Standard TOML through the smol-toml library: tables and sub-tables, arrays and arrays of tables, inline tables, quoted keys, and native date-time values.
Why convert Cargo.toml or pyproject.toml?
JSON is easier for scripts, jq and most programming languages to consume, so converting TOML config to JSON gives quick programmatic access without adding a TOML dependency.
What if my TOML has a syntax error?
The exact parser error is shown in a red note, including line information where smol-toml stopped reading the file.