TOML to JSON / YAML Converter - Config Format Converter
Convert between TOML, JSON and YAML in both directions. Parse errors include position details, making it handy for Rust, Python and CI configuration migrations.
About This Tool
This converter is built for configuration migrations. Pick the input and output formats, paste your config and get an equivalent file. TOML parse errors include position details so syntax issues are easy to fix.
It is handy for inspecting Cargo.toml or pyproject.toml as JSON, or moving CI configs between YAML and JSON. All parsing runs locally.
Key Features
Three formats
Convert between TOML, JSON and YAML in any direction.
Error positions
TOML syntax errors report line numbers and reasons.
Load on demand
The TOML parser loads from a CDN only when first used.
When to Use It
Inspecting config
Convert TOML to JSON to walk nested fields easily.
Config migration
Switch CI or deployment configs between YAML and TOML.
How to Use It
- 1Choose the input and output formats.
- 2Paste your config.
- 3Convert and copy the result.
Frequently Asked Questions
Are comments preserved?
No. Comments in JSON and YAML are lost after parsing, so keep a backup before converting.
Why does the TOML output look different?
The serializer reorders tables per the specification. It is semantically equivalent but formatted differently.
Is my config uploaded?
No, parsing and serialization happen in the browser.
