Convert TOML to JSON
Cargo, pyproject
and any TOML file.
Convert any TOML file to JSON instantly. Full TOML support: tables, array of tables, inline tables, all value types. Runs entirely in your browser.
All standard TOML types and structures are handled.
| TOML syntax | JSON output | Example |
|---|---|---|
[section] | Nested object | {"section": {...}} |
[[array]] | Array of objects | {"array": [{...}, {...}]} |
[a.b.c] | Deeply nested | {"a": {"b": {"c": {}}}} |
key = "value" | String | "key": "value" |
count = 42 | Integer | "count": 42 |
pi = 3.14 | Float | "pi": 3.14 |
active = true | Boolean | "active": true |
tags = ["a", "b"] | Array | "tags": ["a", "b"] |
info = {k = "v"} | Inline table | "info": {"k": "v"} |
date = 2024-01-15 | Date string | "date": "2024-01-15" |
Inspect Rust project metadata, dependencies and build profiles as JSON. Useful for tooling, scripts and CI pipelines that need to read Cargo manifest data without a Rust toolchain. The [[bin]] and [[example]] array-of-tables sections are converted to JSON arrays.
Read Python project configuration and Poetry/Hatch dependencies as JSON. The nested dotted-key syntax ([tool.poetry.dependencies]) is correctly resolved to nested JSON objects — {"tool": {"poetry": {"dependencies": {...}}}}.
Many tools use TOML for configuration — Gitea, Prometheus Alertmanager, Hugo, Zola. Convert any config.toml to JSON to inspect it in a JSON viewer, validate it against a schema, or feed it into a JSON-based configuration management system.
Data pipelines that ingest TOML configuration files but output JSON — convert TOML manifests to JSON for REST API consumption, database storage or front-end rendering without installing a TOML parser in every service.
TOML parsed entirely
in your browser. No server needed.
The TOML parser is implemented in vanilla JavaScript — no external library, no CDN dependency. It handles all standard TOML features: basic and literal strings, integers (including hex, octal and binary), floats (including inf and nan), booleans, dates, arrays, inline tables, standard tables, dotted-key tables and array-of-tables.
Comments (# inline) are stripped correctly even when they follow a value on the same line.
