Skip to content
migration.tools
TOML to YAML

TOML to YAML converter

Convert TOML configuration to YAML when a deploy pipeline, Helm chart or static-site generator expects YAML instead.

Going the other way? YAML to TOML

TOML

YAML

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 TOML or drop a file onto the input panel.
  2. 2Adjust the options — the result updates as you type.
  3. 3Copy the YAML or download it. Drop several files to convert a batch into one ZIP.

How TOML becomes YAML

TOML and YAML 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.

TOML and YAML, briefly

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.

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.

Questions

How are TOML dates and tables converted?

Dates and times are written as ISO 8601 strings. Tables become objects and arrays of tables ([[name]]) become arrays of objects.

Will the YAML be valid for Kubernetes or CI configs?

The output is standard YAML 1.2 with two-space indentation, and strings that could be misread — like "yes", "0123" or "1e3" — are quoted so they stay strings. Key order follows the input.