Local text conversion

YAML ↔ TOML

YAML ↔ TOML. Switch direction any time. Your data stays in the browser.

Initializing…

Supported input & limitations

Supports simple flat YAML scalar mappings only. Anchors, tags, arrays and nested objects are rejected.

Input limit: 500,000 characters. Original text stays on your device. Check the output before using it in production.

Browse all text and data converters →

How to convert YAML and TOML

Both YAML and TOML can describe configuration, but their syntax and type systems differ. This tool works for small flat settings blocks such as a flag, a label and a count rather than full application configuration trees.

Example YAML input

title: Example
enabled: true
count: 3

Example TOML output

title = "Example"
enabled = true
count = 3

Select a flat configuration block

YAML → TOML accepts simple key/value pairs and recognizes obvious scalar types. YAML lists, aliases and nested maps are intentionally rejected. If your source has indentation that establishes structure, do not remove the indentation just to force a conversion.

Check strings that resemble numbers

Some YAML scalar spellings are ambiguous across parsers, particularly strings resembling dates, numbers or Boolean values. Quotes make the intended type explicit. TOML → YAML similarly targets simple assignments without tables or arrays.

Use a validator before committing

Compare the generated settings against the target tool's documentation. Test the exported file with the actual consuming program and retain the source so the conversion can be reviewed or replaced if it proves incomplete.

Frequently asked questions

Are YAML lists supported?

No. This interface supports flat scalar mappings, not lists or nested objects.

Does converting YAML to TOML keep comments?

No. Comments and layout are not guaranteed to round-trip.

Related converters