TOML ⇄ JSON Converter
Convert TOML configuration files (pyproject.toml, Cargo.toml, netlify.toml) into JSON and back. The parser understands tables, arrays of tables, dotted keys, inline tables, nested arrays, basic/literal/multi-line strings, integers in all bases, floats, booleans and date-time values, plus comments. Everything runs on-device with no uploads.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Two directions in one box
TOML to JSON parses a configuration file and prints the result pretty-formatted with two-space indentation. JSON to TOML serializes a top-level object back out, emitting scalar assignments first, then nested objects as [section] headers and arrays of objects as repeated [[section]] blocks, so a pyproject.toml or Cargo.toml structure survives the round trip.
The TOML features the parser understands
Tables, arrays of tables, dotted keys, inline tables, nested arrays, basic, literal and multi-line strings, integers in decimal, hex, octal and binary, floats, booleans and all four date-time flavours are recognized, with comments dropped. Keys that are not bare words are re-quoted on the way back out, and date-time values stay as strings in the JSON.
When the round trip earns its keep
Convert a hand-maintained netlify.toml into JSON to diff it against a generated config, or flip an API-style JSON fixture into TOML to paste into a repo. Because everything happens locally, you can paste a config that holds credentials or machine paths without worrying about where it goes.
Nulls and shapes TOML cannot express
TOML has no null, so keys with null values are omitted when serializing and the result reports how many were skipped. A bare JSON scalar or array at the top level cannot become a TOML document, so wrap it in an object first. A JSON array of objects serializes as an array of tables rather than a single array value.
Conversion stays in the tab
Parsing and serialization both run in the browser on the pasted text, so no document, comment or value is uploaded anywhere. The only trace left behind is the text you paste yourself.
Questions
Is any data uploaded?
No. Parsing and serialization happen inside your browser tab.
Does it support date-time values?
Yes — offset date-times, local date-times, local dates and local times are recognized and kept as their original string form.
What about null in JSON?
TOML has no null. Keys whose value is null are omitted when serializing, and the result reports how many were skipped.
Related tools
See categoryYAML to JSON
Convert YAML to JSON locally, with indent choice and optional key sorting.
JSON to YAML
Convert JSON to YAML on your device, with a 2- or 4-space indent.
.env <-> JSON
Parse a .env file into JSON, or turn a JSON object into .env text. Runs entirely on your device.
ASCII Table Generator
Turn CSV (or tab-separated) rows into a bordered ASCII table for docs, emails and code comments.