Proper TOML tables
Nested objects become [section] tables and arrays of objects become [[array]] tables.
Turn JSON settings into clean TOML with tables and arrays of tables.
Convert JSON to TOML with proper [tables], [[arrays of tables]] and inline arrays. Ideal for Cargo.toml, pyproject.toml and app configs. Runs in your browser.
{"title":"App","server":{"port":8080,"debug":false},"hosts":["alpha","beta"]}title = "App"
hosts = ["alpha", "beta"]
[server]
port = 8080
debug = falseTip: Dates stay as quoted strings. If you need native TOML datetimes, remove the quotes around those values afterwards.
Nested objects become [section] tables and arrays of objects become [[array]] tables.
Simple keys stay bare; keys with spaces or dots are quoted automatically.
Quotes, backslashes, tabs and newlines are escaped correctly.
TOML has no null, so null values are left out and a comment tells you how many.
TOML has no null value. Keys whose value is null are omitted, and the output starts with a comment counting them.
Yes. A TOML document is a table, so the JSON must be an object such as {"title": "App"}.
TOML v1.0, which Cargo, Poetry, pip (pyproject.toml), Hugo and most libraries read.
Yes, conversion runs in your browser.