Skip to main content
File & Data Conversion Tools

JSON to TOML Converter

Convert JSON to TOML - objects become tables, arrays of objects become arrays of tables, with correct TOML value formatting.

Paste JSON below - this tool converts it into TOML syntax, with nested objects becoming tables and correctly-formatted values.

For the reverse direction, see the TOML to JSON Converter.

How the Conversion Works

Top-level primitive keys become plain key = value lines; nested objects become [table] sections; arrays containing only objects become [[array of tables]]; other arrays become inline TOML arrays.

How to Use It

  1. Paste a JSON object.
  2. Click Convert.
  3. Copy or download the resulting TOML.

Limitations

JSON's null has no direct TOML equivalent (TOML has no null type) - keys with a null value are omitted from the TOML output rather than producing invalid syntax, and this is noted so you're aware of the difference.

Share this tool: