>_devtools

TOML to JSON Converter

Convert TOML to JSON; dates and times become ISO strings.

What this does

Converts TOML to JSON. Tables become objects, arrays of tables become arrays of objects, and integers, floats, booleans, and strings keep their types.

Dates and special numbers

JSON has no date type, so TOML dates and times are written as strings: 1979-05-27T07:32:00Z stays an ISO 8601 timestamp, and a local date stays 1979-05-27. TOML allows inf and nan, which JSON cannot represent; they are written as the strings "Infinity" and "NaN" and a note tells you.

Example

[owner] with name = "Tom" becomes {"owner": {"name": "Tom"}}. Pick the indent for the output with the control above the editors.

Privacy

Everything runs in your browser. Your input is never uploaded, stored, or put in the URL.