TOML ↔ JSON Converter
Convert TOML config files to JSON and back.
About this tool
Work with Cargo, pyproject, or other TOML configs alongside JSON tooling. Supports tables, dotted keys, strings, numbers, booleans, and inline arrays.
What you get
- JSON from TOML tables and key/value pairs
- TOML text from JSON objects
- Clear errors on unsupported or invalid syntax
How to use
Choose direction, paste TOML or JSON, and copy the output. Stick to common TOML features for best results.
FAQ
How to convert TOML to JSON online?
Paste your TOML file, choose TOML→JSON, and copy the resulting JSON object. Tables and dotted keys are flattened into nested properties.
Can pyproject.toml be converted to JSON?
Yes—common Cargo, Python, and tool configs using standard TOML tables and scalars convert cleanly for scripting or validation.
How to convert JSON back to TOML?
Switch to JSON→TOML and paste a JSON object. Output uses TOML tables and key/value syntax suitable for config files.
What TOML features are supported?
Tables, dotted keys, strings, numbers, booleans, and inline arrays are supported. Unusual or invalid syntax shows a clear parse error.
By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.