Skip to content
M2TOOLKIT

TOML to JSON Converter

Convert Cargo.toml, pyproject.toml and other TOML configs to JSON — or JSON back to TOML.

  • Free
  • No sign-up
  • Runs in your browser
Direction
Works with Cargo.toml, pyproject.toml, Hugo and Netlify configs. Dates are kept as text.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the TOML to JSON Converter

  1. Paste TOML or JSON and pick the direction.
  2. Fix any error shown with its line number.
  3. 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.

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.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the toml to json converter.