LazyTools

🔒 Every tool runs in your browser — the files and values you enter are never uploaded to any server. How it works

🧩 TOML to JSON Converter

Paste TOML (like a Cargo.toml or pyproject.toml) and get equivalent JSON — parsed locally on your device.

parsed with @iarna/toml (TOML v1.0.0)

Rate this tool:
Anonymous — no account, no identifier

How the toml to json converter works

TOML (Tom's Obvious Minimal Language) is a config format built for humans, used by Rust's Cargo.toml, Python's pyproject.toml and many tools. The converter parses it with the standards-compliant @iarna/toml parser (TOML v1.0.0) into a data structure and serialises that as JSON — tables become objects, arrays stay arrays, and dates and numbers keep their types.

JSON is what most programs and APIs consume, so converting a TOML config to JSON is handy for tooling and inspection. The conversion runs entirely in your browser, so a config file — which can hold internal names, tokens or paths — never leaves your device.

Frequently asked questions

How do I convert TOML to JSON?

Paste your TOML or load a .toml file and the tool outputs equivalent JSON you can copy or download. Tables become objects and arrays stay arrays.

Which TOML version is supported?

TOML v1.0.0, via the @iarna/toml parser — including tables, arrays of tables, inline tables, and typed values like integers, floats, booleans and dates.

What if my TOML has a syntax error?

The tool shows the parser's error message so you can find and fix the offending line before converting.

Is my config uploaded?

No — parsing runs locally in your browser, so config contents stay on your device and it works offline.

Related file converters