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.

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.

Related tools