TOML to YAML Converter Online — Free
Runs 100% in your browser — your files never leave your device.
Sometimes the config needs to move the other way — from a Cargo.toml or pyproject.toml into a YAML-driven pipeline. Paste TOML and get faithful YAML out, with tables, arrays of tables, and typed values preserved through the JSON intermediate. Invalid TOML is reported inline.
How it works
- 1
Paste your TOML
The YAML output follows as you type.
- 2
Review the structure
Tables become nested maps, arrays stay arrays.
- 3
Copy the YAML
One click copies the converted configuration.
About this tool
How the conversion works
The tool parses your TOML — tables, sub-tables, arrays, and the datetime and inline-table types TOML specifically supports — and renders the equivalent YAML with clean indentation. The hierarchy flattens from table headers into nested structure.
Leaving TOML for YAML
Tools that accept YAML but not TOML, documentation that renders YAML better, and pipelines standardized on YAML are the reasons to convert. The TOML goes in as Cargo or pyproject configuration; the YAML comes out ready for anything else.
Types travel correctly
TOML is strict about types — datetimes, floats, and integers are unambiguous — and the conversion carries those types into YAML faithfully. Unquoted TOML strings stay strings rather than becoming YAML type-inference casualties.
Frequently asked questions
How do TOML tables map to YAML?
Each [table] header becomes a YAML mapping at the corresponding nesting depth, and sub-tables nest further. The hierarchy is identical; the notation differs.
What happens to TOML datetimes?
They convert to YAML values carrying the same timestamp — YAML represents datetimes as strings in its output, quoted to preserve them exactly.
Can inline tables and arrays of tables convert?
Yes — inline tables become nested mappings and arrays of tables become YAML arrays of mappings, the standard representations.