Skip to content
xt-tools

YAML formatter

Format and validate YAML streams, keeping comments, with indentation, key sorting, quoting and line width options.

Quote styles apply to values; keys are only unquoted.

Try:

Comments, anchors, aliases and tags are kept. Aliases are never expanded, so the output stays the size of the input.