Free TOML to JSON
Convert TOML files like pyproject.toml, Cargo.toml and config.toml to JSON. Tables become objects and dates become text.
Runs on your device
What to do next
How to use TOML to JSON
- 1
Paste TOML or drop a .toml file.
- 2
The JSON appears as you type; set the indent or sort the keys if you like.
- 3
Copy the JSON or download it as a file.
TOML to JSON converts TOML files, such as pyproject.toml, Cargo.toml, Hugo and Netlify configs, into JSON for scripts, validators and tools that read JSON. Tables become nested objects, arrays of tables become lists, and dates become text.
Invalid TOML is reported with a clear message.
Why convert
Many tools and APIs only accept JSON, and JSON is easy to inspect with code. Converting is also a quick way to check what a TOML file really contains, with all tables expanded.
Supported features
TOML 1.0 is supported, including inline tables, dotted keys, multi-line strings, arrays of tables and dates.
| Format | Looks like | Used for | Notes |
|---|---|---|---|
| TOML | Key = value and [sections] | Config files (Rust, Python pyproject) | Easy to read, comments allowed |
| JSON | Braces and quotes | APIs, web apps, config | Strict: no comments |
- Move data from a TOML source into a tool that expects JSON.
- Check how TOML data looks in JSON before using it in a config or an import.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.
- It says the input is invalid
- The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
- Nested data looks flat
- CSV can’t hold nested objects; nested values are joined into column names like address.city.
Questions
Which TOML version is supported?
TOML 1.0, including inline tables, arrays of tables and dates.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
Something not working, or a question that isn’t here? Tell us about it
Popular conversions
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Zip FilesBundle any files into one archive
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- Excel to CSVNewSave a spreadsheet sheet as CSV
- CSV to ExcelTurn a CSV file into an .xlsx workbook