Y2T
YAML to TOML
Convert simple YAML into TOML.
Ad · Large Rectangle (336×280)
How to use YAML to TOML
Convert simple YAML into TOML.
- Paste a basic YAML document — scalars, one level of nesting and simple lists.
- Press Run to convert it to TOML.
- Copy the result into your config file.
Practical note. The converter handles nested maps and lists, and it warns when a YAML feature has no TOML equivalent, such as anchors and tags.
When you actually reach for this
- You are moving a config into a Rust or Go project that prefers TOML (Cargo.toml, pyproject-like setups).
- You need a flatter, comment-friendly config format from an existing YAML source.
Where this tool stops being accurate
- TOML has no direct equivalent of YAML anchors/aliases, so shared structures are duplicated.
- Deeply nested YAML maps become dotted TOML keys; extremely deep trees can exceed TOML's table nesting comfort.
Frequently asked questions
What does YAML to TOML do?
Convert simple YAML into TOML.
My nested YAML became a long dotted key in TOML — is that right?
Yes, TOML expresses nesting through dotted table names like [a.b.c]. It is valid, just flatter than YAML's indentation.
Why did a list of tables not convert as I expected?
TOML distinguishes an array of tables ([[item]]) from a bare array; the tool picks based on your YAML shape, so confirm the output matches the consumer's schema.