Skip to content
⌁DevKit Labs

TOML to JSON Converter

Convert TOML to JSON and back — tables, arrays and typed values, 100% in your browser.

TOML
JSON

About TOML to JSON Converter

Paste TOML and get JSON, or switch direction to turn JSON into TOML. It supports the TOML data model — tables, nested tables, arrays of tables, inline tables, dates and typed scalars — and reports syntax errors clearly.

Handy for Rust's Cargo.toml, Python's pyproject.toml and other config files. Everything runs locally in your browser; nothing is uploaded.

How to use TOML ⇄ JSON

  1. Choose TOML to JSON or the reverse, then paste a complete configuration value.
  2. Compare table nesting, arrays and scalar types before saving the output as an application configuration.

Limitations and common mistakes

TOML is a configuration format with rules that differ from JSON. Comments and original layout are not retained by a data conversion.

Not every JSON value has an equivalent TOML representation; null and mixed structures need particular care. Test the result with the target application's parser.

The tool processes its input locally on your device. Read our privacy policy for analytics, storage and network details.

TOML to JSON

Input
[owner]
name = "Ada"
langs = ["en", "fr"]
Output
{ "owner": { "name": "Ada", "langs": ["en", "fr"] } }

Switch direction to convert JSON back into TOML.

Frequently asked questions

Does it support tables and arrays of tables?

Yes. Standard tables, nested tables, inline tables and arrays of tables are all parsed, along with typed scalars and dates.

Where is TOML used?

TOML is common for configuration — Rust's Cargo.toml, Python's pyproject.toml and many other tools use it for its readable, typed syntax.

What if my TOML is invalid?

You get a clear parser error describing the problem instead of a broken result.

Is my data uploaded anywhere?

No. Both conversions happen locally in your browser.

For related tasks, explore YAML ⇄ JSON and JSON Formatter. Their guides explain the different inputs, assumptions and output formats.

Related tools

References