Tools / YAML Formatter
YAML Formatter
Paste YAML on the left, get a formatted (or validated) result on the right. Errors include line and column.
Runs entirely in your browser
Mode:
Indent:
YAML Input
Formatted Output
YAML Input
Formatted Output
How to use YAML Formatter
Paste or drop YAML
Paste YAML text into the left pane, or click Load file to open a .yaml or .yml file from disk.
Pick a mode
Format normalises whitespace and indentation, Sort keys produces a canonical form for diffing, and Validate just reports whether the input parses.
Choose indentation
Pick two- or four-space indentation. The setting controls block-style nesting in the output.
Read the result
Parse errors appear above the panes with line and column. The Valid / Invalid badge tracks the current input.
Download or copy
Click Download .yaml to save the formatted result, or use the Copy button on the right pane.