Skip to content
migration.tools
YAML to TOML

YAML to TOML converter

Move configuration from YAML to TOML — for example when migrating a Jekyll site to Hugo, or consolidating Python tool settings into pyproject.toml.

Going the other way? TOML to YAML

YAML

TOML

The result appears here as soon as there is input.

Processed on this device. Nothing you paste or drop is uploaded.

How to use it

  1. 1Paste your YAML or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the TOML or download it. Drop several files to convert a batch into one ZIP.

How YAML becomes TOML

YAML and TOML both describe nested data, so structure carries over directly: objects stay objects, lists stay lists, and key order is kept.

The differences are in the details each format can express — comments, nulls, dates and attributes — and the notes under the output tell you whenever something had to be adapted.

YAML and TOML, briefly

YAML is the configuration format of Kubernetes, Docker Compose, GitHub Actions, Ansible and OpenAPI. It expresses the same structures as JSON with indentation instead of brackets, plus comments and anchors.

TOML is a configuration format built to be obvious to read: pyproject.toml, Cargo.toml, Netlify and Hugo all use it. It has real dates and typed values, but the top level must be a table and there is no null.

Questions

Are anchors, aliases and multiple documents supported?

Yes. Anchors and aliases (&name, *name) and merge keys (<<) are resolved, and a file with several documents separated by --- becomes an array. Comments can't be carried over because the target format has nowhere to put them.

What happens to null values and top-level lists?

TOML has no null, so empty values are left out. It also requires a table at the top level, so a list is placed under an "items" key. The tool tells you whenever it does either.

Guides that use this tool