TOML ↔ JSON
Convert TOML and JSON. Dates become strings.
Added 2026-10-31
What it does
TOML to JSON and JSON to TOML run in this tab. Dotted keys become nested objects, and an array of tables becomes a JSON array. Integers larger than 2^53 - 1 keep their digits. A TOML date, time, or datetime becomes a string in the form TOML wrote, and the page says so. It is not turned into a Date and it is not shifted into another timezone. JSON null cannot be written as TOML, and a JSON array or string at the top level cannot either. This is not a YAML parser. The text is not uploaded.
How to use it
- Paste TOML or JSON. The text stays in this tab.
- Choose the direction. Dotted keys become nested objects.
- A date becomes a string. JSON null stops, because TOML has no null.
Common mistakes
- Dates become strings. A TOML date stays in the form you wrote. It is not a Date and it is not shifted.
- Null is not TOML. JSON null cannot be written. Remove it or replace it with a value TOML allows.
Conversion stays in this tab. The text is not uploaded.
Related guides
- JSON integers past 2^53
Why JSON.parse rounds large integers, and how to keep every digit when you only need to format JSON.