TOML ↔ JSON
ClientConvert between TOML and JSON in your tab—paste on either side, format, and copy. A small JSON example is pre-filled so you can try JSON → TOML immediately.
Learn more: JSON and TOML
Switch between JSON and TOML when working with project manifests, tool configs, or languages that favor one format.
What TOML is
TOML (Tom’s Obvious, Minimal Language) is designed for config files: explicit tables, clear datetime and number literals, and fewer punctuation rules than JSON for many everyday files.
Interchange
Both JSON and TOML represent key–value data and nesting. Conversion is straightforward for typical configs; exotic TOML features may need a quick sanity check after conversion.
JSON & TOML
?
JSON → TOML uses JSON.parse then a TOML serializer. Root JSON arrays are wrapped under a root key. TOML → JSON uses TOML.parse then JSON.stringify.
Dates and inline tables may differ slightly from your source editor—validate for production configs.
54 characters total
Sample JSON is pre-filled—click JSON → TOML to fill the right panel. Parsing runs in your browser.
Common use cases
- Edit Rust, Python, or Node config files that use TOML while reasoning about the same data as JSON.
- Share a JSON fixture with someone who prefers TOML for human-edited defaults.
- Format either side after pasting minified or noisy config from a terminal.
Common mistakes to avoid
Assuming date and table rules match JSON exactly
TOML has native dates and dotted keys. After conversion, spot-check values your runtime will parse.
FAQ
Are configs uploaded?
No. Conversion runs in your browser.
More tools
Related utilities you can open in another tab—mostly client-side.
YAML ↔ JSON
ClientYAML to JSON and JSON to YAML online—format, validate, convert locally.
JSON ↔ MessagePack / CBOR
ClientEncode JSON to MessagePack or CBOR and decode binary (Base64) back—compact APIs and IoT payloads in the browser.
CSV ↔ JSON
ClientPaste a table or JSON array of objects—convert both ways, choose delimiter, client-side.
Encoding tools
ClientBase64 and URL on this page; hub lists hex, HTML entities, JWT, JSON helpers, crypto, and tokens.