YAML to TOML
Convert a YAML document into TOML.
Loading tool…
About the yaml to toml
Converts a YAML document into TOML, the format used by Cargo, pyproject.toml and many Rust and Python tools. TOML requires a table at the top level, so a YAML file whose root is a list cannot be converted directly.
Frequently asked questions
Why did my file fail to convert?
TOML documents must start with key-value pairs, not an array. Wrap a top-level list under a named key first, then convert.
How do nested objects map across?
They become TOML tables written in bracket notation. Deeply nested YAML produces long dotted table headers, which is legal but often a hint the structure could be flatter.