JSON to TOML Converter

Runs in your browser — your files are never uploaded.

Convert JSON into a TOML config file. Nested objects become tables, arrays of objects become arrays of tables, and values are quoted according to the TOML 1.0 rules rather than approximated. The one thing that cannot survive the trip is null — TOML has no such value — so those keys are dropped and the result tells you exactly which ones, instead of silently changing your config. Runs entirely in your browser.

How to convert JSON to TOML

  1. 1

    Drop your .json file onto the box, or click to choose one.

  2. 2

    OkConverter maps objects to tables and arrays of objects to arrays of tables.

  3. 3

    Click “Download” to save your .toml file.

Share

Embed this tool on your site

Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.

Please keep the attribution line — it's what keeps these tools free.

Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.

Frequently asked questions

What happens to null values?+

They are dropped, because TOML has no null and there is no honest way to write one. The result reports how many were removed and names the first few, so you can decide whether the key needed a real default instead.

Why does my top-level array not convert?+

A TOML document is a table, so it needs an object at the top level. An array or a bare value would have to be wrapped in an invented key, and guessing that name would be worse than telling you.

How are nested objects written?+

As tables, using the dotted header form — {"profile":{"release":{"lto":true}}} becomes [profile.release] with lto = true underneath. An array of objects becomes repeated [[section]] blocks.

Will dates convert back to TOML datetimes?+

No. A date that came from TOML is a string by the time it is JSON, and it stays a quoted string here. TOML’s datetime type cannot be recovered from JSON without guessing which strings are dates.