TOML ↔ JSON Converter

Convert TOML to JSON or JSON to TOML in your browser. Handles tables, arrays of tables, dotted keys, inline tables, datetimes, and every TOML value type. Live, no upload.

Direction
What TOML features are supported
  • Tables[name] and nested tables.
  • Arrays of tables[[name]], each one becomes a JSON array element.
  • Dotted keysa.b.c = value creates nested objects implicitly.
  • Inline tables{ a = 1, b = "two" }.
  • Arrays — primitive arrays and arrays of inline tables.
  • Strings — basic ("..."), literal ('...'), and multi-line variants.
  • Numbers — decimal, hex (0x), octal (0o), binary (0b), with underscores, plus inf / nan.
  • Booleanstrue / false.
  • Datetimes — serialised as ISO-8601 strings in JSON; preserved verbatim in TOML output.
  • JSON → TOML — requires an object at the root (arrays and primitives aren't valid TOML documents). Mixed-type JSON arrays stay mixed-type arrays in TOML.

Pure client-side, works offline once loaded, no upload, no tracking.