TOML to JSON
Paste or drop your data here, or open a file.
New to Bracely?
Everything stays in your browser.
Output appears here
Paste or open your data in the input box. It never leaves your browser.
TOML to JSON Converter
Paste TOML and get formatted JSON, with tables, arrays of tables, inline tables and dates all handled.
Example: a Cargo.toml
A Rust project's Cargo.toml with a table, an inline table and an array of tables ([[bin]]). Each table becomes an object and [[bin]] becomes an array:
Input
[package]
name = "bracely-cli"
version = "0.4.0"
edition = "2021"
[dependencies]
serde = { version = "1", features = ["derive"] }
tokio = "1.40"
[[bin]]
name = "bracely"
path = "src/main.rs"
Output
{
"package": {
"name": "bracely-cli",
"version": "0.4.0",
"edition": "2021"
},
"dependencies": {
"serde": {
"version": "1",
"features": [
"derive"
]
},
"tokio": "1.40"
},
"bin": [
{
"name": "bracely",
"path": "src/main.rs"
}
]
}
How do I use the TOML to JSON?
- Paste TOML or open a .toml file.
- Read the JSON in the Output box.
- Copy or save it.
What does the TOML to JSON do?
- Tables and arrays of tables
- Dates and times kept
- Switch direction for JSON to TOML
When to use the TOML to JSON
TOML is the config format of Rust's Cargo.toml, Python's pyproject.toml, Hugo, Netlify and many CLI tools. Converting it to JSON lets you query it with jq or JSONPath, compare two versions with Diff, check it against a JSON Schema, or load it from a language that has a JSON parser but no TOML one.
Every TOML table becomes an object, dotted keys and [a.b] headers become nested objects, inline tables become objects, and an array of tables ([[bin]]) becomes an array of objects. Dates and times are kept exactly as written, as ISO text such as 2026-10-29T10:00:00Z, since JSON has no date type.
Frequently asked questions
- What's the difference between [table] and [[table]]?
- [package] opens one table, which becomes an object. [[bin]] adds one item to an array each time it appears, so two [[bin]] blocks give "bin": [ {…}, {…} ].
- Can I convert the JSON back to TOML?
- Yes. Switch Direction to JSON → TOML. Keys with null values are left out on the way back, because TOML has no null.
- Are TOML dates kept?
- Yes. Dates and times come through as text in ISO format.
- Is my data uploaded?
- No. Bracely runs entirely in your browser, so nothing you paste or open leaves your device.
More JSON tools
Bracely has 108 JSON tools in one page. Related ones:
- JSON Lines / NDJSON
- JSON5 / JSONC to JSON
- JSON to SQL
- JSON to Markdown table
- JSON to HTML table
- JSON to query string
- JSON to plain text
- cURL to JSON
- Postman collection viewer
- BSON to JSON
- Number base converter
- Colour converter
- ENV ⇄ JSON
- cURL to code
- JSON to Valibot
- JSON to Yup
- Remove duplicates
- Unix timestamp converter
- JSON Formatter
- JSON Validator
- JSON Viewer
- JSON Repair
- JSON Diff
- jq Playground
Runs entirely in your browser. Nothing you paste is uploaded. Made by Saurabh Pagrut · About · Privacy policy
Last updated · Version 6.7 · Changelog
Saurabh Pagrut on GitHub · LinkedIn · X · YouTube · Instagram