How to use the TOML to JSON Converter
- Paste TOML or JSON and pick the direction.
- Fix any error shown with its line number.
- Copy or download the result.
What does this tool do?
TOML is the config format behind Rust's Cargo, Python's pyproject.toml, Hugo and Netlify. Converting to JSON makes it easy to process with other tools; converting back gives you a tidy, readable config with [tables] and [[arrays of tables]]. Dates and times are kept as text.
Everything runs in your browser — nothing you paste is uploaded.
Why use it?
- Both directions.
- Validates as you type.
- Clear error lines.
Use cases
- Read Cargo.toml, pyproject.toml or Hugo config in scripts.
- Validate TOML before committing it.
- Turn JSON settings into a readable config file.
TOML in, JSON out
[package]
name = "demo"
version = "0.1.0"
becomes { "package": { "name": "demo", "version": "0.1.0" } }.
Common mistakes
- Defining the same table twice, which is an error in TOML.
- Forgetting quotes around strings.
- Expecting comments to survive — JSON has no comments.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Frequently asked questions
What is [[double brackets]]?
An array of tables: each [[item]] block adds one object to a list.
How are dates handled?
They're kept as text in the JSON.
TOML or YAML?
TOML is stricter and less sensitive to indentation, which makes it popular for config files.
Content last updated . See how M2Toolkit works.