YAML Formatter

Use YAML Formatter, review the result, and keep the original until the output is checked.

Input YAML
YAML Formatter
Formatted YAML
Formatted Output
Click "Format" to see formatted YAML here...
100% browser-side processing — your data is never uploaded to any server. · Per-tool input limit: 1 MB
100% browser-based No upload to server Free to use

Frequently Asked Questions About YAML Formatter

Why does my version number lose its trailing zero?

An unquoted scalar is parsed as a number. Quote it, and the value survives round-tripping.

Are comments preserved when I format YAML?

Comments are not part of the data model, so a re-serialised document drops them. Keep your original file if the comments carry documentation.