YAML formatter
Format one YAML 1.2 document, choose list layout, and optionally remove comments. Aliases, custom tags and YAML 1.1 are not supported.
How to use
YAML formatterPaste one YAML document or open a local UTF-8 file.
Choose the list style and indentation (2 spaces by default), and whether to remove comments.
Review the result and validation messages before copying or saving.
Supported YAML
This formatter accepts one YAML 1.2 document. The format is defined in the YAML 1.2 specification.
This tool does not support aliases, custom tags, multiple documents or YAML 1.1.
Tool limits: 500,000 UTF-16 code units of input and 1,000,000 of output.
List layout and comments
- Keep list style preserves the existing layout.
- Lists · separate rows uses block lists.
- Lists · inline [a, b] uses brackets.
Remove comments is optional. Review configuration changes with Text diff before using the result.