RubanTools

TOML to JSON Converter

Paste TOML configuration to get pretty-printed JSON - client-side conversion with syntax error detection.

TOML Input
JSON Output

TOML FAQ

TOML (Tom's Obvious, Minimal Language) is a configuration file format designed to be easy to read and write. It maps to a hash table (dictionary). Used by Rust (Cargo.toml), Python (pyproject.toml), Hugo, and many other tools as a configuration format. It supports sections [table], arrays, strings, integers, floats, booleans, and datetimes natively.

TOML is more readable than JSON (supports comments, no quotes on keys) and less ambiguous than YAML (no indentation sensitivity, no implicit types). JSON is the most widely supported but verbose. YAML is very concise but has footguns (e.g., 'yes' is parsed as boolean true). TOML is a good middle ground for config files.

[[array-of-tables]] (double brackets) creates an array of objects. Each occurrence of the double-bracketed key appends a new item to the array. In Cargo.toml, [[bin]] is used to define multiple binary targets. In JSON output, this becomes an array of objects with that key.