Email me

Free tool · TOML 1.0 · runs in your browser

TOML to JSON converter.

Paste a Cargo.toml, pyproject.toml or any TOML config and get clean JSON as you type. Flip it to turn JSON into TOML. Syntax errors point at the exact line and column.

Short answer: TOML tables become JSON objects, arrays of tables ([[bin]]) become JSON arrays, and dates become ISO strings. Going back, JSON null has no TOML form, so it has to go first.

Loading the parser...

Worked example

The sample above is a typical Cargo.toml. serde = { version = "1.0", features = ["derive"] } is an inline table, so it becomes "serde": {"version": "1.0", "features": ["derive"]}. [profile.release] is a dotted table header, so it nests: "profile": {"release": {"lto": true, "codegen-units": 1}}. [[bin]] is an array of tables, so "bin" becomes a JSON array with one object per [[bin]] block. The 17-line file becomes 35 lines of 2-space JSON.

How it works

Sources

Related

Who made this

Matt Busel, who keeps 69 Rust crates and their Cargo.toml files in order. Nothing you paste leaves this page.

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Up next

The Cargo.toml fields that matter when you publishHow to publish a Rust crate to crates.ioMake a crates.io account, create an API token, run cargo login , add description and license to Cargo.toml , check the package with cargo publish --dry-run , then run...Read it next →

Also worth your time

Did this answer your question?

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ