JSON to TOML Converter

Convert between JSON and TOML in both directions

Runs in your browserUtility02Converters

What is JSON to TOML Converter?

This JSON and TOML converter translates between the two configuration formats in either direction while preserving nested tables, arrays, and inline tables. It is most often used to migrate API responses or older config files into the TOML favored by the Rust and Python ecosystems, and it runs entirely in your browser.

How to use JSON to TOML Converter

  1. 1Choose the conversion direction.
  2. 2Paste the source content.
  3. 3Copy the result into your target configuration file.

Frequently asked questions

Why can some JSON structures not be converted to TOML?+

TOML has no null value and cannot hold an array at the top level. Adjust the JSON before converting: omit keys instead of setting them to null, and wrap a top-level array inside an object.

What do TOML dates become in JSON?+

Date-times are a native type in TOML but JSON has no date type, so they come out as ISO 8601 strings. Converting back the other way, strip the quotes if you want them to be real TOML dates again.

Related tools

All tools