TOML to YAML Converter
Convert config files from TOML to YAML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
—
Reading a TOML file as YAML
TOML rules the project files of several languages — Cargo.toml in Rust, pyproject.toml in Python, config.toml in many static site generators. YAML rules a different set: CI pipelines, Kubernetes manifests, Docker Compose. Anyone moving between the two worlds regularly needs to rewrite a configuration from one format into the other.
Paste the TOML and get the YAML version of its key and value lines. Each key = value becomes key: value, quotes around strings are removed — because YAML accepts unquoted strings in most cases — and escaped quotes inside the text are restored. Comments starting with # and blank lines are kept where they were, which makes it easy to compare before and after.
The conversion works at root level. Table headers in square brackets, arrays of tables in double brackets and multiline values with triple quotes do not become nested structure in YAML — they appear commented out, marking the spot that needs review. For a short flat file the output is ready to go; for a full Cargo.toml, treat it as a starting point.
Frequently asked questions
Do I need quotes around strings in the generated YAML?
What happens to [table] and [[array of tables]]?
Are dates and times converted?
Related Tools
YAML to TOML Converter
Convert config files from YAML to TOML right in your browser, preserving strings, numbers and booleans. Handy for migrating configs between formats.
TOML to INI Converter
Converts simple TOML (with [section] and key = value) to INI — strips quotes from strings.
YAML to JSON Converter
Convert YAML to JSON right in your browser, with no data sent to any server. Paste the YAML and copy ready-to-use JSON for APIs, configs and scripts.
INI to TOML Converter
Converts an INI file (with [section] headers and key=value) to TOML — close formats with minor adjustments.
CSV to YAML List Converter
Convert a CSV with a header into a YAML list of objects, preserving numbers and booleans. Useful for building config files and fixtures from spreadsheets.
JSON to TOML
Convert JSON to TOML, the readable config format used by Cargo (Rust), pyproject.toml, Hugo, etc. Supports strings, numbers, booleans, arrays and nested tables. Everything in your browser.