TOML to JSON Converter
Convert TOML configuration files (Cargo.toml, pyproject.toml, Wrangler) into structured JSON documents.
Batch workspace
Format multiple files locally in one run.
How to use the TOML to JSON
Paste code or file
Paste your raw TEXT text or upload directly.
Configure options
Choose indentation, dialect, or formatting preferences.
Format & export
Click format, then copy, download, or inspect in tree view.
What is a TOML to JSON?
Convert TOML configuration files (Cargo.toml, pyproject.toml, Wrangler) into structured JSON documents. This tool re-indents and organizes code according to standard style conventions while checking for syntax validity. Everything executes 100% inside your browser, guaranteeing zero latency and complete privacy for API keys, user tokens, and confidential database schemas.
Options Explained
| Option | Description |
|---|---|
| Indent size | Indentation spaces for formatted JSON (0 for minified JSON). |
Frequently Asked Questions
What is TOML?
TOML (Tom's Obvious Minimal Language) is a readable configuration file format widely used in Rust (Cargo.toml) and Python (pyproject.toml).
Does this tool support nested tables and arrays of tables in TOML?
Yes. All standard TOML structures (including `[table]`, `[[array_of_tables]]`, inline tables, and typed primitives) are fully supported.
Is my configuration uploaded anywhere?
No. Conversion executes 100% in your browser memory.
Can I generate minified JSON output?
Yes. Set 'Indent size' to 0 in the options panel.
How does it handle TOML date-times?
ISO-8601 timestamps and RFC 3339 dates are parsed into ISO date strings in JSON.