TOML to JSON

Input
Output

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?

  1. Paste TOML or open a .toml file.
  2. Read the JSON in the Output box.
  3. 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:

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