YAML Formatter & Validator
Format and validate YAML — catch the indentation mistakes that break CI pipelines.
To format YAML, paste your document and it is parsed and reprinted with consistent indentation and spacing. Because it parses first, an invalid document fails with the location of the error rather than being silently reindented into something different.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Why does YAML break so easily?
How to use the yaml formatter & validator
- 1Enter or paste your yaml.
- 2Set the line width.
- 3Set the indent size.
- 4Turn "Indent with tabs" on or off as needed.
- 5The result appears immediately — copy or download it.
Embed this tool
Put the working yaml formatter & validator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Data Format ConverterConvert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.JSON Formatter & ValidatorFormat, validate, repair and analyse JSON — with errors that point at the exact line.CSS, SCSS & Less FormatterFormat stylesheets with consistent indentation, spacing and property ordering.HTML FormatterFormat and indent HTML properly, preserving inline elements and whitespace sensitivity.JavaScript & TypeScript FormatterFormat JavaScript, TypeScript, JSX and TSX properly with Prettier.Markdown FormatterTidy Markdown — normalise headings, lists, tables and emphasis markers.
Last updated
More data & format tools