Skip to main content
HandyWeb

TOML to JSON Converter

Convert a TOML file like Cargo.toml or pyproject.toml to JSON, or JSON to TOML. If the TOML has an error, you see its line number.

Direction
0 characters0 bytes
0 characters0 bytes

TOML dates and times become strings in JSON. TOML has no null value.

How to Use It

  1. Choose the direction.
  2. Paste the TOML or the JSON.
  3. Copy the output, or read the error with its line number.

Questions and Answers

What is TOML?

A simple format for config files, used by Cargo (Rust), pyproject.toml (Python), and Hugo.

Good to Know

TOML 1.0. Comments do not survive in JSON. Dates and times become strings, and inf and nan become null in JSON. Integers larger than 2 to the 53rd are rounded.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)