Formatters
YAML Formatter
Clean up messy YAML with consistent indentation and spacing.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the YAML Formatter
- Paste your YAML.
- Choose the indentation and mode.
- Copy or download the formatted YAML.
Frequently asked questions
Are comments kept?
Yes in Format mode. Normalize mode re-creates the YAML from data, which drops comments.
What does normalize do?
It parses and re-writes the YAML with sorted keys and uniform quoting, useful for comparing files.
Is my YAML validated first?
Yes. Invalid YAML shows the line and column of the error instead of output.