TOML to JSON

Parse and convert TOML to JSON.

About TOML to JSON

Parses a TOML document and outputs it as indented JSON, so you can inspect a Cargo.toml, pyproject.toml or other TOML configuration, or hand it to a program that only reads JSON.

When you would use it

How to use it

  1. Paste the TOML into the left field.
  2. Read the JSON on the right, indented with three spaces.
  3. Copy the result.

Things worth knowing

Frequently asked questions

Why do my dates come out as strings?
TOML has native date-time values but JSON does not, so they are serialised as ISO 8601 text. Parse them back into dates in the consuming program if needed.
Can I convert JSON back to TOML?
Yes, with the JSON to TOML tool, as long as the JSON has an object at the top level; null values are dropped on the way.

All the tools