From Indentation to Brackets: What Your Config Gains and Loses
Moving settings into a Cargo.toml, a pyproject.toml, or a Hugo config? TOML wants explicit structure where YAML relies on indentation. Nested maps become [tables], lists of objects become [[arrays of tables]], and YAML anchors and aliases get expanded into plain repeated values.
Watch for three things. TOML has no null, so YAML keys set to null or ~ have no direct equivalent. The root must be a mapping, so a YAML file that starts with a list won't fit. And comments usually don't survive parsing, so copy over any notes you care about.
What are YAML and TOML?
YAML: readable structured data often used for configuration
TOML: fmt.toml
How it works
- Choose your YAML file.
- Check that TOML is selected and press convert.
- Download your new file. We delete both files automatically.
