TOML ↔ JSON Converter
Convert between TOML and JSON instantly in the browser — auto-detects direction from input.
FAQ
How does direction auto-detection work?
If the input starts with { or [ it is treated as JSON and converted to TOML. Anything else is treated as TOML and converted to JSON. Use the swap ⇄ button to force a specific direction or to round-trip the output back.
Are there data types that cannot survive a round-trip?
TOML has native date, datetime, and time types that JSON does not. When converting TOML to JSON these become strings. Converting back to TOML will produce strings rather than native TOML date types. JSON null values are also not supported in TOML and will cause a conversion error.
What happens with TOML array-of-tables ([[table]])?
Array-of-tables sections become JSON arrays of objects. The round-trip is lossless for data — the TOML output format may differ from the original (using inline or block style based on smol-toml's serialiser) but the data is identical.
Is my data sent to a server?
No. All parsing and conversion runs in your browser using the smol-toml library. Nothing is transmitted.