Dad’s Data formats tools

YAML → TOML Converter

Convert YAML to TOML locally. Comments will be stripped; the root must be a mapping.

YAML Input
TOML Output

TOML output will appear here.

Paste, upload, or drop a file in the input panel to get started.

How YAML maps to TOML

Both YAML and TOML are human-readable config formats, but they have different data models. This converter routes through JSON — YAML is parsed to a JSON object, then serialised as TOML. Comments and anchors in the YAML source are not preserved.

YAML constructTOML equivalentNotes
Mapping (object)[section]Top-level keys become section headers
Nested mapping[a.b]Dot-separated section path
Sequence of objects[[items]]Array of tables syntax
Sequence of scalarskey = [1,2,3]Inline array
Stringkey = "value"Double-quoted in TOML
Integer / Floatkey = 42Unquoted numeric
Booleankey = trueLowercase, unquoted
null❌ not supportedTOML has no null type — conversion fails
YAML comment # …(dropped)TOML has comments but conversion strips them

What gets lost in translation

Warning: Comments are stripped. YAML # comments are not preserved. If you need to carry comments into the output, add them manually to the TOML file after conversion.
Warning: null values fail. YAML ~ or null has no TOML equivalent. Replace null values with "", false, or omit the key entirely before converting.
Note: Anchors and aliases are expanded. YAML &anchor and *aliasare resolved to their concrete values before conversion — the aliasing relationship is not preserved.

Example

Input
# Application config
server:
  host: "0.0.0.0"
  port: 8080
  tls: true

database:
  url: "postgres://localhost/mydb"
  pool_size: 10

features:
  - dark_mode
  - beta_signup
Output
[server]
host = "0.0.0.0"
port = 8080
tls = true

[database]
url = "postgres://localhost/mydb"
pool_size = 10

features = ["dark_mode", "beta_signup"]

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools