🗂️TOML ↔ JSON

Convert between TOML and JSON formats

About the TOML ↔ JSON

TOML ↔ JSON converts between TOML — a config format popular with Rust, Python and many CLIs — and JSON, in both directions.

It runs locally, making it safe for config files with secrets.

Common use cases

  • Converting Cargo.toml or pyproject.toml to JSON
  • Generating TOML config from JSON
  • Validating TOML syntax
  • Comparing config across formats

How to use the TOML ↔ JSON

  1. Choose the direction (TOML → JSON or JSON → TOML).
  2. Paste your input.
  3. Copy the converted output.

Frequently asked questions

Which TOML version is supported?

It targets the TOML 1.0 specification, including tables, arrays and datetimes.

Are comments preserved?

TOML comments are not represented in JSON, so they are dropped during conversion.

Is it private?

Yes, conversion happens entirely in your browser.