YAML to TOML Converter
Convert YAML documents to TOML — parses YAML and re-emits it as TOML 1.0, wrapping root-level arrays in an items table since TOML requires a table at the root.
Input
Output
Guides
What does this tool do?
It converts a YAML document into TOML — parsing your YAML into a data structure, then re-emitting it using TOML 1.0 syntax. Useful when migrating configuration between tools that expect one format or the other (many Rust and Python projects use TOML, while YAML is common in CI/CD and Kubernetes configs).
How this tool works
Paste YAML into the input box, or upload a .yaml/.yml file. The tool parses it and writes out the equivalent TOML — nested mappings become TOML tables ([section], [section.subsection]), and lists become TOML arrays.
Root-level arrays
TOML documents must have a table (key-value mapping) at the root — there's no way to represent a bare top-level array in TOML syntax. If your YAML's root is a list, the tool wraps it in an items table so the conversion still produces valid TOML, with a comment explaining the wrapping.
Common uses
- Migrating configuration files from YAML-based tools to TOML-based ones (e.g. converting a CI config to a
pyproject.toml-style file) - Converting Kubernetes or Docker Compose-style YAML into TOML for tools that require it
- Learning how a given YAML structure maps onto TOML's table syntax
- Quick one-off format conversion without installing a CLI tool
Privacy
This tool runs entirely in your browser. Your data is never uploaded to a server.