Skip to content
DDevToolery

YAML Formatter

Normalise indentation and confirm the document parses.

Loading tool…

About this tool

Normalises indentation, spacing and quoting by parsing the document and printing it back out. Parsing uses the CORE schema, so no custom tag can construct an object.

Limitations

  • Formatting round-trips through a parse, so comments are not preserved. YAML comments live outside the data model.

Questions

My comments disappeared.
Comments are not part of the parsed document, so a round trip through the parser loses them. That is inherent to reformatting this way.

Privacy

This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.