JSON to TOML
Convert JSON objects to TOML configuration format instantly
Free online JSON to TOML converter. Paste a JSON object and get a valid TOML config file. Root value must be a JSON object. No data sends to server.
TOML output will appear here
About JSON to TOML
TOML (Tom's Obvious Minimal Language) is a configuration file format widely used in Rust (Cargo.toml), Python (pyproject.toml), Hugo, and many other projects. It maps naturally to a hash table and is designed to be unambiguous.
Conversion Rules
- JSON objects become TOML tables (
[section]) - JSON arrays of objects become TOML array-of-tables (
[[section]]) - JSON arrays of primitives become TOML inline arrays
- JSON
nullis represented as an empty string (TOML has no null)