Skip to content
ToolsOnDuty - free online tools
Converters

TOML to JSON Converter

Convert TOML to JSON and JSON back to TOML.

Free foreverRuns in your browserNo sign-up
JSON

About the TOML to JSON Converter

Convert TOML configuration into JSON, or JSON back into TOML, for common keys, tables and arrays.

TOML is popular for config files in Rust, Python and many CLI tools.

Paste your config and copy the converted output in one click.

Key features

  • TOML to JSON and JSON to TOML
  • Handles tables, arrays of tables and arrays
  • Open a file or paste your config
  • Copy the result instantly

How to use

  1. 1Choose the direction you want to convert.
  2. 2Paste your TOML or JSON.
  3. 3Copy the converted result.

Examples

TOML to JSON
Input: name = "Ada" [owner] age = 36
Output: { "name": "Ada", "owner": { "age": 36 } }

A table header like [owner] becomes a nested JSON object.

JSON to TOML
Input: {"port":8080,"debug":true}
Output: port = 8080 debug = true

Top-level keys become simple TOML assignments.

Frequently asked questions

Which TOML features are supported?
Common ones: key-value pairs, tables, dotted tables, arrays of tables, and arrays of strings, numbers and booleans.
Are comments kept?
No. Comments are ignored when parsing TOML, since JSON has no equivalent.
Is my data uploaded?
No. The conversion runs entirely in your browser.