Nifty / Tools / TOML

TOML to JSON

Convert TOML, such as Cargo.toml or pyproject.toml, to JSON. Integers keep every digit and dates become strings.

toml-to-json
TOMLDrop a file here
JSON
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the TOML to JSON

  1. Paste TOML on the left.
  2. Pick the indentation.
  3. Copy the JSON.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

What happens to inf and nan?

JSON has no infinity or not-a-number, so they're written as the strings "inf" and "nan" and the status line lists where.

Related tools