TOML to YAML Converter (Cargo.toml, pyproject.toml)

Parses TOML and writes it as block-style YAML, with an error message that names the line when the TOML is invalid.

Use the tool

Why this tool exists

Config moves between ecosystems: a Cargo.toml or pyproject.toml fragment may need to become YAML for a CI file or a Kubernetes style tool.

The page parses the TOML (tables, arrays of tables, inline tables, dotted keys, dates) and writes the same data as YAML. Types are kept: a quoted number stays a string. Comments are not carried over because the data model has none.

How to use it

  1. Paste the TOML.
  2. Pick the indent.
  3. Read the YAML or the error.
  4. Copy the result.

Frequently asked questions

Are comments kept?

No. Comments are not data, so they are dropped.

How are dates written?

As the parsed value, shown as text in YAML.

Can I go back?

Yes, use YAML to TOML.

Is it uploaded?

No.