YAML ⇄ TOML Converter
About YAML ⇄ TOML
YAML ⇄ TOML converts between two human-oriented configuration formats while enforcing the differences in their data models instead of silently inventing values.
How it works
YAML 1.2 to TOML
One YAML mapping document is resolved with bounded aliases and serialized as TOML keys, tables and arrays of tables. YAML streams and non-mapping roots are rejected clearly.
TOML to YAML
TOML dotted keys, tables, arrays and scalar values become a YAML 1.2 mapping with stable two-space indentation.
No silent null conversion
TOML has no null value, so YAML nulls produce an explicit error rather than becoming an empty string or disappearing.
Frequently asked questions
Are comments preserved?
No. This is a semantic format conversion; comments and source formatting are not shared by the YAML and TOML data models.
What happens to YAML anchors?
Anchors and aliases are resolved into values because TOML has no equivalent reference syntax.
Can it convert multiple YAML documents?
No. A TOML file represents one root table, so provide one YAML mapping document.
Sources & last verified
The behaviour of this tool and the claims on this page were checked against the specifications below on . Everything runs in your browser, so the output you see is exactly what the engine produced.
Found a wrong result or an outdated claim? Report an error and it will be re-verified.