TOML ↔ JSON Converter
Convert between TOML and JSON formats. Supports key-value pairs, tables, arrays, and inline tables.
TOML Input
JSON Output
About TOML to JSON
TOML to JSON converts between TOML (Tom's Obvious Minimal Language) and JSON formats. TOML is increasingly popular for configuration files (Cargo.toml in Rust, pyproject.toml in Python, Hugo config files) due to its clean, human-readable syntax.
Paste TOML and get formatted JSON, or paste JSON and get TOML — both with validation and error messages. Handles all TOML features: tables, arrays of tables, inline tables, multi-line strings, and typed values.
Useful when you need to bridge tools that use different configuration formats.
Features
- ✓TOML to JSON and JSON to TOML
- ✓Validation with error messages
- ✓Handles tables, arrays of tables, inline tables
- ✓Clean formatted output
Common Use Cases
- →Converting Rust Cargo.toml to JSON for tooling
- →Transforming Hugo config from TOML to JSON
- →Understanding TOML structure through JSON equivalents
- →Bridging tools that use different config formats