Skip to content
FizzKit

TOML to JSON

Turn TOML (Cargo.toml, pyproject.toml, netlify.toml and more) into equivalent JSON, or convert JSON into TOML. Supports tables, arrays of tables, inline tables, dotted keys, multi-line strings and native datetimes. Errors are reported with line and column, and every lossy step, such as datetimes becoming strings or nulls being dropped, is listed.

Runs locally in your browser
For large TOML, open fullscreen for a wider view
Presets
TOML input
0 chars · 1 line
JSON output
Output will appear here…
Indent

TOML 1.0: tables, arrays of tables, inline tables, dotted keys, multi-line strings and native datetimes (emitted as ISO-8601 strings, because JSON has no date type).

How to use TOML to JSON

  1. 1Choose TOML → JSON or JSON → TOML. Swap reverses the direction using the current output.
  2. 2Paste or upload, or load a preset (Cargo, pyproject, netlify) to see the shapes.
  3. 3For JSON → TOML, decide whether ISO-8601 strings become native datetimes and whether nulls are dropped.
  4. 4Copy or download the result.

About TOML to JSON

Turn TOML (Cargo.toml, pyproject.toml, netlify.toml and more) into equivalent JSON, or convert JSON into TOML. Supports tables, arrays of tables, inline tables, dotted keys, multi-line strings and native datetimes. Errors are reported with line and column, and every lossy step, such as datetimes becoming strings or nulls being dropped, is listed.

TOML to JSON is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

TOML 1.0.0, per the official spec.