Code Beautifier

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

OptionDescription
DirectionChoose conversion direction. JSON root must be an object for JSON → TOML.
Indent sizeIndentation 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.