Convert TOML to JSON

Convert a TOML file (like Cargo.toml or pyproject.toml) to JSON.

Example:

How it works

TOML is the configuration format used by files like Cargo.toml (Rust), pyproject.toml (Python) or Pipfile, but it isn't always convenient to browse or manipulate with a script as is. Paste the contents of a TOML file to instantly get the JSON equivalent: easier to inspect, to filter with a tool like jq, or to use in a Node or Python script.

Is the reverse conversion (JSON → TOML) available?

No, and that's deliberate: TOML has precise rules for representing certain structures (notably arrays of tables), and arbitrary JSON doesn't always have a single, obvious TOML equivalent. This tool therefore focuses on the most useful direction in practice — TOML to JSON — so it stays reliable in every case.

Are types (numbers, booleans, dates) preserved?

Yes. TOML has native types (strings, integers and floats, booleans, dates, arrays, tables), which are faithfully mapped to the matching JSON types during conversion.

The conversion runs 100% locally in your browser thanks to WebAssembly: the contents of your file are never sent to a server.