TOML to JSON
Convert TOML configuration files (Cargo.toml, pyproject.toml, Wrangler) into structured JSON documents. · Updated
Options
Direction:
Indent size:
text
json
Draft saved locally.
Options
| Option | Description |
|---|---|
| Direction | Choose conversion direction. JSON root must be an object for JSON → TOML. |
| Indent size | Indentation spaces for formatted JSON (0 for minified JSON). Ignored for TOML output. |
FAQ
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.
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.
Related tools
YAML to JSON
Convert YAML configuration files into structured JSON documents (or JSON to YAML) instantly.
JSON Formatter
Format, validate, and explore JSON with a collapsible tree view.
JSON to CSV
Convert JSON arrays and nested objects into clean, downloadable CSV spreadsheets in seconds.
Diff Checker
Compare two text or code snippets side-by-side to highlight added, removed, and modified lines instantly.