TOML to JSON Converter
Convert between TOML and JSON formats.
How to Use
Paste TOML configuration into the input panel to convert it to JSON, or paste JSON to convert it to TOML. The tool handles TOML tables, arrays of tables, inline tables, and all TOML data types including dates and multi-line strings.
Common Use Cases
- Converting Cargo.toml (Rust) configuration to JSON for programmatic analysis
- Transforming pyproject.toml (Python) settings to JSON for tooling integration
- Migrating configuration between TOML-based and JSON-based systems
- Inspecting TOML configuration files in a more familiar JSON format
Frequently Asked Questions
What is TOML used for?
TOML (Tom's Obvious Minimal Language) is a configuration file format designed to be easy to read. It is used by Rust (Cargo.toml), Python (pyproject.toml), Hugo, and many other tools as an alternative to YAML or JSON for configuration.
How are TOML dates and times handled in JSON?
TOML has native date, time, and datetime types. When converted to JSON, these are represented as ISO 8601 strings since JSON does not have native date types.
Does the converter support TOML v1.0?
Yes. The tool supports the TOML v1.0 specification, including all data types, dotted keys, arrays of tables, inline tables, and multi-line basic and literal strings.