🧩 TOML to JSON Converter
Paste TOML (like a Cargo.toml or pyproject.toml) and get equivalent JSON, parsed locally on your device.
parsed with @iarna/toml (TOML v1.0.0)
How the toml to json converter works
TOML (Tom's Obvious Minimal Language) is a config format built for humans, used by Rust's Cargo.toml, Python's pyproject.toml and many tools. The converter parses it with the standards-compliant @iarna/toml parser (TOML v1.0.0) into a data structure and serialises that as JSON, tables become objects, arrays stay arrays, and dates and numbers keep their types. A [table] header becomes a nested object keyed by that name, so [owner] with name = "Ada" becomes "owner": { "name": "Ada" }. An [[array-of-tables]] header, written twice or more, collapses into a JSON array of objects, the TOML idiom for a repeated section such as several dependencies.
JSON is what most programs and APIs consume, so converting a TOML config to JSON is handy for tooling and inspection. The conversion runs entirely in your browser, so a config file, which can hold internal names, tokens or paths, never leaves your device.
Frequently asked questions
How do I convert TOML to JSON?
Paste your TOML or load a .toml file and the tool outputs equivalent JSON you can copy or download. Tables become objects and arrays stay arrays.
Which TOML version is supported?
TOML v1.0.0, via the @iarna/toml parser, including tables, arrays of tables, inline tables, and typed values like integers, floats, booleans and dates.
What if my TOML has a syntax error?
The tool shows the parser's error message so you can find and fix the offending line before converting.
What happens to TOML dates?
TOML has first-class date and time types; JSON has none. The parser reads them as real dates and serialises them to ISO 8601 strings (e.g. "2026-01-01T00:00:00.000Z"), so no information is lost, the value simply becomes a string on the JSON side.
Do dotted keys become nested objects?
Yes, TOML defines a.b.c = 1 as nesting, so it converts to {"a":{"b":{"c":1}}}. This differs from Java .properties, where a dot is just part of a flat key name; in TOML the dot genuinely means a deeper table.
How is an inline table converted?
A TOML inline table like point = { x = 1, y = 2 } becomes a nested JSON object "point": {"x":1,"y":2}, identical to how a [point] section header would convert. Inline tables are just a compact one-line way to write a small table, so the JSON output is the same either way.
What is the difference between TOML and INI?
They look similar, both use [section] headers and key = value lines, but TOML is a strict, typed standard: it defines integers, floats, booleans, dates, arrays and nested tables, whereas INI has no formal spec and treats every value as a string. Converting TOML to JSON preserves those types, which a loose INI parse cannot guarantee.
Is my config uploaded?
No, parsing runs locally in your browser, so config contents stay on your device and it works offline.