Skip to content
ToolInstant

YAML Formatter & Validator

Local

Format YAML with consistent indentation, find syntax errors by line and column, sort keys and expand inline lists. Keeps comments and multi-document files.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the yaml formatter & validator for free

  1. 1Paste YAML or open a .yml file.
  2. 2See errors with their line number, or the neatly formatted result.
  3. 3Choose indent, sorting and quoting, then copy or download.

Also useful for: yaml formatter, yaml validator, yaml beautifier, format yaml online, yaml lint, validate yml.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this YAML formatter free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Are comments kept?+

Yes. Comments stay with the keys they belong to. Sorting keys moves comments along with their key.

Why does it say tabs aren't allowed?+

The YAML spec doesn't allow tab characters for indentation. Replace them with spaces; this formatter always outputs spaces.