Convert JSON to TOML
Convert JSON into TOML — the config format used by Cargo, pyproject, and more. Serialised locally, nothing uploaded.
Loading tool…
Why convert JSON to TOML?
TOML powers Rust's Cargo.toml, Python's pyproject.toml, and many other config files. It's more readable than JSON and less whitespace-sensitive than YAML.
How the conversion works
Convertur serialises your JSON object to TOML with smol-toml, mapping nested objects to tables and arrays to TOML arrays.
Quality & compatibility notes
TOML requires a top-level object, so bare arrays or scalars can't be converted directly — wrap them in an object first. Dates and numbers keep their types.
How to json to toml
- Drop a .json file into the zone above, or paste JSON into the text tab.
- Make sure the top level is an object, not an array.
- Press Convert to serialise it locally, then download the TOML.