About TOML to JSON
This tool converts TOML configuration into JSON. It handles top-level keys, [tables], [[arrays of tables]] and typed values — strings, numbers, booleans and inline arrays. It runs entirely in your browser.
How TOML to JSON works
How to use it
- Paste your TOML.
- Copy the formatted JSON.
How it works
The parser reads the file line by line, building nested objects from [table] and [[array]] headers and parsing each key = value pair into the right JSON type. Comments are ignored.
Common uses
- Convert TOML to JSON
- Read a Cargo or pyproject file as JSON
- Inspect a config
- Migrate config formats
- Use TOML data in JS
- Debug a TOML file
- Convert nested tables
- Learn how TOML maps to JSON
Frequently asked questions
How do I convert TOML to JSON?
Paste TOML and copy the JSON.
Are tables supported?
Yes — [tables] and [[arrays of tables]].
Are types preserved?
Yes — strings, numbers, booleans and arrays.
Is my TOML uploaded?
No — it parses in your browser.
Are comments handled?
Yes — # comments are ignored.
Does it cover all TOML features?
It covers common cases; very advanced syntax may not parse.
Is it free?
Yes — completely free with no sign-up.