Home
Tom Utilities

YAML Formatter

XML & YAML Tools

Parse and re-serialise YAML with consistent indentation and validation.

Input

Result

How to use

How to format YAML

Paste YAML and press Format. The document is parsed and written back with standard indentation.

  1. Paste YAML into the input editor.
  2. Press Format.
  3. Copy the normalised document.

Frequently asked questions

Are anchors and aliases supported?

Anchors and aliases are resolved on parse, so the formatted output contains the expanded values.

Will formatting remove comments?

Comments are not preserved because the formatter works from the parsed data structure.