{ }jsonkit
Format
Validate
Convert
Query
Generate
yaml⇄toml

YAML ⇄ TOML Converter

Convert configuration data between YAML 1.2 and TOML.
88 B · paste or drop a file
1 2 3 4 5 6 7 8
✓ complete88 B → 95 B0.0 ms

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.