YAML to TOML

Parse and convert YAML to TOML.

About YAML to TOML

Converts a YAML document directly into TOML, without going through JSON by hand. Handy when a project moves from a YAML configuration to a TOML one, or when a tool only reads TOML.

When you would use it

How to use it

  1. Paste the YAML into the left field.
  2. Read the TOML on the right.
  3. Copy the result.

Things worth knowing

Frequently asked questions

The error says my JSON is not valid, but I pasted YAML?
The message is generic: it means the YAML could not be parsed. If the YAML is valid but the output stays empty, the document is probably a list or a scalar at the top level, which TOML cannot represent.
Why are some keys missing from the TOML?
Keys whose value was null (or an empty value in YAML, which parses to null) are omitted because TOML cannot represent null.

All the tools