YAML Formatter

Clean up YAML indentation and style in one click.

● Your files are processed locally in your browser and are not uploaded to our servers.

How it works

The YAML is parsed with js-yaml and written back with consistent indentation. Multi-document files (separated by ---) are supported. Note that comments are not preserved — YAML parsers don't keep them.

FAQ

Where did my comments go?

YAML comments aren't part of the data, so they're lost when re-formatting. Keep a copy if you need them.