TOML to JSON Converter Online — Free
Runs 100% in your browser — your files never leave your device.
APIs and build tools often need JSON, even when the source of truth is a TOML file. Paste TOML and get two-space-indented JSON out, with dates serialized as ISO strings and every table mapped to an object. Syntax errors in the TOML are flagged inline as you type.
How it works
- 1
Paste your TOML
The JSON output follows as you type.
- 2
Fix any syntax errors
Invalid TOML is flagged with the parser message.
- 3
Copy the JSON
One click copies the formatted result.
About this tool
How the conversion works
The tool parses your TOML — tables, arrays, inline tables, datetimes, and the full TOML type set — and renders the equivalent JSON. Table headers become nested objects and the strict TOML types become JSON values, giving programmatic access to hand-edited config.
Reading config programmatically
TOML is written for humans and parsed by tools; sometimes your code needs the values as JSON — for an API payload, a template, or a migration. The conversion turns hand-edited config into machine-navigable data in one paste.
Datetimes survive
TOML's native datetime type converts into JSON strings carrying the exact value — TOML is stricter than JSON here, and the converter preserves the precision rather than reformatting it.
Frequently asked questions
What TOML features does the conversion support?
The full core: tables, sub-tables, inline tables, arrays, arrays of tables, and the standard types including dates and times. TOML's extension features vary by parser version.
Why does my table become nested objects?
TOML table headers [a.b.c] define depth — the JSON representation nests a, b, and c exactly as the header path describes.
Is the conversion round-trip safe?
Yes for standard structures — convert TOML to JSON, then JSON back to TOML, and the data matches. Formatting style differs; the data does not.