Free · Private · In-browser
JSON to TOML Converter
Paste JSON and get readable TOML for Cargo, Poetry, Hugo, and other config files. Swap to TOML → JSON anytime.
Ready — type or paste to convert.
How to convert JSON to TOML
- Keep JSON → TOML selected (default on this page).
- Paste a JSON object (root must be an object, not an array).
- Copy the TOML output into
Cargo.toml,pyproject.toml, or similar.
Looking for the reverse? Use the homepage TOML to JSON converter.
FAQ
Why must JSON root be an object?
TOML documents are keyed tables. A bare JSON array has no natural TOML root.
Are comments preserved?
JSON has no comments, so none are invented when converting to TOML.