Every Drawer
All tools

YAML Formatter

Re-indent YAML with 2 or 4 spaces, with optional sorted names.

How it works

Re-indent YAML with 2 or 4 spaces, with optional sorted names.

  1. Paste your YAML in the box.
  2. Pick an Indent, and tick Sort the names A to Z.
  3. Press Copy or Save.

Good to know

Can it format several YAML documents?

Yes. Documents separated by --- are each formatted and kept separate.

More like this