format · validate · convert · runs locally

JSON to TOML

Convert JSON into TOML — scalars become key = value pairs, nested objects become [tables], arrays of objects become [[arrays of tables]], and lists become inline arrays. Copy it or download the .toml. Runs in your browser.

Frequently asked questions

How are nested objects represented?

Each nested object becomes a [table] header with a dotted path, and arrays of objects become [[array of tables]] blocks — the idiomatic TOML layout used by Cargo, pyproject, and many config files.

What happens to null values?

TOML has no null type, so null-valued keys are omitted from the output.

Is the string output valid TOML?

Yes — strings are emitted as basic quoted strings with escaping, and bare keys are used where allowed, otherwise quoted.