Code converter

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.

Converted on this device, never uploaded

What changes

JSON to TOMLWhat happens
ObjectsBecome [tables]; lists of objects become [[arrays of tables]]
nullLeft out: TOML has no null, and the note counts them
KeysQuoted when they need it
CheckedThe results read back the same in Python’s tomllib

How to convert JSON to TOML

  1. Add your JSON. Drop the file in the box, or click to choose it. It becomes TOML straight away.
  2. Check the result. Look at the preview and the size. The defaults are right for most files.
  3. 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.

Related conversions