YAML to TOML Converter - Paste YAML text and convert it to TOML with nested tables, arrays and common scalars. Free, browser-only.
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Structure | YAML mappings to TOML tables; sequences to arrays | YAML 1.2 / TOML v1.0.0 |
| Root requirement | TOML root must be a table; sequence roots cannot convert | TOML v1.0.0 |
| Null handling | TOML has no null; omit the key or use a placeholder | TOML v1.0.0 |
| YAML | TOML |
|---|---|
| key: value | key = "value" |
| list:\n - a\n - b | list = ["a", "b"] |
| [a, b, c] | arr = ["a", "b", "c"] |
| parent:\n child: 1 | [parent]\nchild = 1 |
本工具支持常见子集(映射、列表、标量、注释、嵌套小节);极复杂 YAML 建议先用 JSON 中转。