Apps / File & Data Converters / TOML ↔ JSON Converter

📄 TOML ↔ JSON Converter

Convert between TOML and JSON with a hand-rolled parser/serializer for a solid, common TOML subset. Nothing leaves your browser.

Supports key/value pairs (including dotted keys like a.b = 1), [section] and [section.sub] tables, basic double-quoted and literal single-quoted strings, integers (incl. 0x/0o/0b and _ digit separators), floats, booleans, and single-line arrays (including nested arrays). It deliberately rejects multi-line """/''' strings, inline tables { }, array-of-tables [[section]], and dates/times with a clear error, rather than silently mishandling them. JSON → TOML likewise rejects null and arrays of objects (both need syntax this converter doesn't generate).

1. Input

2. Result