Code · Made a little simpler

YAML to TOON

Convert YAML mappings, sequences and scalars to Token-Oriented Object Notation. Keep string, number, Boolean and null types and choose comma, tab or pipe output.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

YAML to TOON: how to use it

  1. Open a YAML file or load the typed inventory example. Pick a TOON delimiter.
  2. Select Convert to TOON. Fix reported duplicate keys, unsupported types or numbers that would lose precision.
  3. Preview the header and values, then download the TOON file. Reopen it in TOON Validator to inspect the decoded data.

Limits and notes

Accepts up to 250,000 UTF-16 code units. Reads UTF-8 and Unicode files with a byte-order mark. Processes one YAML 1.2 core document, with string mapping keys and up to 128 levels. Acyclic aliases expand into ordinary values. The intermediate data must fit the 250,000-code-unit TOON input limit. Rejects NaN, infinity and numbers that cannot round-trip exactly.

How your privacy works →

YAML to TOON: common questions

How do I preserve a number-like identifier?

Quote the source value, for example "0012". The string keeps all four characters. Plain 0012 is a YAML integer and becomes the number 12.

Are anchors and aliases kept in the TOON file?

An alias to an earlier anchor expands into the referenced value. Anchor names and shared references are omitted. A cyclic reference triggers a conversion error.

Can a numeric YAML key be converted?

Quote a numeric key to make it a string. For example, "42" is accepted as a key while plain 42 is an integer key.

Guides