TOML to YAML

Convert TOML to YAML locally. Choose 2 or 4 spaces. inf and nan stay as YAML floats and are labeled on the page.

Parsing and conversion on this page run in your browser.

All templates
  • Some types cannot convert without loss: JSON cannot tell a date string from any other string; comments are dropped after parsing; integers outside the safe range are kept as strings.
  • Non-finite floats are written as .inf and .nan when YAML can represent them.

FAQ

Do comments survive?

No. Comments are dropped when the TOML is parsed.

Does the indent switch do anything?

Yes. YAML output uses the selected 2- or 4-space indent. Key order stays unless you enable sort.

Related tools