YAML to TOON converter

YAML and TOON share indentation-based nesting, so converted output stays familiar to read. The difference is arrays: where YAML repeats keys on every list item, TOON declares fields once and streams rows like a table — that is where the token savings come from.

Paste any YAML document (config files, fixtures, API payloads). Anchors and aliases are resolved during parsing, and the result is plain TOON you can drop straight into a prompt.

YAML TOON

TOON out
Convert something to print your token receipt.

Questions

What's the difference between YAML and TOON?
Both use indentation-based nesting, so they read similarly. The difference is arrays: YAML repeats every key on each list item, while TOON declares the fields once and streams rows like a table — that is where the token savings come from.
Are YAML anchors and aliases supported?
Yes. Anchors and aliases are resolved when the YAML is parsed, so the TOON output contains the fully expanded data.
Is the YAML to TOON conversion lossless?
Yes for the YAML data model — decoding the TOON returns the same structure. Convert it back with the TOON to YAML tool to confirm.