Convert TOML configuration documents into clean, human-readable YAML.
Loading tool
About TOML to YAML
Convert a TOML document into block-style YAML. Tables become nested mappings, arrays of tables become sequences of mappings, and dates are written as ISO 8601 strings. You can choose 2 or 4 space indentation and sort keys alphabetically.
Common uses
- Move configuration from a TOML file into a YAML-based tool
- Compare a TOML config with an equivalent YAML layout
- Convert a TOML example from documentation into YAML
FAQ
- Are comments preserved when converting TOML to YAML?
- No. The TOML is parsed into data first, and comments are not part of that data, so they are not carried into the YAML.
- How do TOML tables look in YAML?
- A [server] table with keys under it becomes a server: mapping with those keys indented beneath it. Dotted table names like [a.b] become nested mappings.