Convert TOML to YAML

Turn TOML files into YAML. The same tables and keys in their written order; dates and times become ISO 8601 text, infinity and NaN become null, and comments are dropped.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TOML files on the dialor turn it to pick what to do

Your TOML config as YAML.Tables and keys keep their written order. Comments do not come along.

  1. What you get

    One YAML file with the same tables and keys as the TOML file, in the order they were written. Nothing is reordered.

  2. What changes

    TOML has its own date and time values. YAML output holds them as ISO 8601 text, so a date becomes a string in that form.

    Infinity and NaN become null.

    Comments are dropped. If the notes in a config matter to you, keep the original TOML file next to the YAML.

  3. When it stops

    A file that cannot be parsed as TOML stops the conversion with input_corrupted. The file needs to be valid TOML before it can be converted.

    To go the other way, use YAML to TOML.

TOML and YAML.What each format is.

The formats

From · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data
To · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data

In your code.The same TOML to YAML conversion through the API, for your app or your agent.

terminal
$ cv convert report.toml report.yaml
$ cv convert report.toml report.yaml

Questions.What people ask about TOML to YAML.

01OF 04

Yes. Tables and keys come out in the order they are written in the TOML file.

They become ISO 8601 text in the YAML file.

No. Comments are dropped, and only the tables and keys are converted.

The file could not be parsed. The conversion stops with input_corrupted when the TOML is not valid.

More conversions.Other ways in and out of TOML and YAML.