Convert YAML data structures, dictionaries, and arrays into valid TOML documents.
Loading tool
About YAML to TOML
Convert a YAML mapping into a TOML v1.0 document. Nested mappings become [tables] and sequences of mappings become [[arrays of tables]], with an option to sort keys alphabetically. Null values are omitted because TOML has no null type, and the tool notes how many were dropped.
Common uses
- Port a YAML config to a TOML-based tool
- Create a pyproject.toml or Cargo.toml section from YAML data
- Check how a YAML structure maps to TOML tables
FAQ
- Why are null values missing in the TOML?
- TOML has no null type, so keys with null (or ~) values in YAML cannot be represented and are left out.
- Can a YAML list at the top level be converted to TOML?
- A TOML document must be a table, so a top-level sequence or scalar is placed under a key. The tool shows a note when that happens.