JSON to TOML converter
To convert JSON to TOML, drop your JSON file in the box below. It converts straight away; press Download to save the TOML. It all happens in your browser, so your file stays on your device.
Convert to
Converted on this device, never uploaded
What changes
| JSON to TOML | What happens |
|---|---|
| Objects | Become [tables]; lists of objects become [[arrays of tables]] |
| null | Left out: TOML has no null, and the note counts them |
| Keys | Quoted when they need it |
| Checked | The results read back the same in Python’s tomllib |
How to convert JSON to TOML
- Add your JSON. Drop the file in the box, or click to choose it. It becomes TOML straight away.
- Check the result. Look at the preview and the size. The defaults are right for most files.
- Download. Press Download to save the TOML.
Why TOML
Write settings you have as JSON in TOML, for Cargo, Python’s pyproject.toml, Hugo or any tool configured in TOML.
Questions
TOML needs keys at the top. A JSON list at the top has none, so it can’t be written as TOML.
No. It is read and converted in your browser and never uploaded.
No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.