📙

TOML to JSON

Convert TOML configuration into JSON

🔄 ConvertersFreeRuns in your browser

JSON output

—

Supports tables, arrays of tables, dotted section names, quoted strings, numbers, booleans, arrays, and inline tables. Multi-line arrays should be written on one line.

About the TOML to JSON

The TOML to JSON Converter reads a TOML configuration file and returns the same data as JSON. It handles sections, arrays of tables, quoted strings, numbers, booleans, arrays, and inline tables.

Rust projects, static site generators, and Python packaging all use TOML. Converting to JSON makes the configuration easy to diff, query, or feed into a JavaScript build step.

  • ✓Tables and arrays of tables
  • ✓Inline arrays and tables
  • ✓Parse errors with the offending line

How to use the TOML to JSON

  1. 1

    Paste the TOML document.

  2. 2

    Choose pretty or minified JSON.

  3. 3

    Convert and copy the output.

Frequently asked questions

Why does my TOML fail?+

Common causes are a missing equals sign, a value without quotes when it contains spaces, or an unclosed bracket. The error message includes the line that could not be read.

Are multi-line strings supported?+

Basic triple-quoted strings are supported as one block, but multi-line arrays must be written on a single line in this tool.

Save TOML to JSON to your favorites, or keep browsing converters.

Browse all 45 converters →