Code converter

TOML to YAML converter

To convert TOML to YAML, drop your TOML file in the box below. It converts straight away; press Download to save the YAML. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

TOML to YAMLWhat happens
Read byOur own TOML 1.0 reader, checked against Python’s tomllib
ErrorsA file that breaks TOML’s rules is refused with the line and the reason
TablesBecome nested mappings
Multi-line stringsWritten as | blocks when they round-trip exactly
Dates and timesWritten as quoted text, exactly as in the file

How to convert TOML to YAML

  1. Add your TOML. Drop the file in the box, or click to choose it. It becomes YAML straight away.
  2. Check the result. Look at the preview and the size. The defaults are right for most files.
  3. Download. Press Download to save the YAML.
Why YAML

Move settings from TOML to YAML, for a tool that reads YAML or a file that is easier to read with indentation.

Questions

No. Comments are not part of the data, so neither JSON nor YAML gets them.

No. It is read and converted in your browser and never uploaded.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions