TOML to YAML

Converts TOML configuration into YAML, for migrating between configuration formats.

Parse and convert TOML to YAML.

Steps and notes

What is TOML to YAML?

Convert TOML into YAML — the direction you need when a Rust or Python project file must become a CI variable file, a Kubernetes-adjacent config, or simply a format your teammates can eyeball. TOML tables map to nested YAML mappings, arrays of tables to YAML lists.

  1. Paste the TOML
  2. Get the YAML result
  3. Copy and use it

Frequently asked questions

What happens to [tool.x] style table headers?
Each dotted header becomes the equivalent nested mapping, so [tool.pytest] turns into tool: pytest: {...}. Round-tripping back to TOML reproduces the original structure.
Are arrays of tables supported?
Yes — [[products]] style arrays become YAML lists of mappings, which is the standard way to express the same data in YAML.
Why does the YAML output quote some values?
YAML has many implicit-type pitfalls (the Norway problem: "no" parses as false). Emitting quotes where the type could be ambiguous keeps the converted document faithful to the TOML types.

Read the full step-by-step guide for this tool

Category: Converter

YAML & TOML workflow

YAML Formatter & Validator — Format YAML Online → YAML to JSON converter → JSON to YAML converter → YAML to TOML → TOML to YAML