YAML Formatter

New

Beautify or minify YAML — pure JS, no dependencies.

100% private — no uploads Developer ToolsFree & unlimited Read tutorial

See how it works

Watch a quick simulation of this tool in action — no file needed.

How to use YAML Formatter

Follow these steps — everything happens instantly in your browser.

  1. 1

    Step 1. Paste your YAML into the input box.

  2. 2

    Step 2. Pick the indent (2 or 4 spaces).

  3. 3

    Step 3. Click Beautify or Minify.

  4. 4

    Step 4. Copy the result.

Why use this tool

Frequently asked questions

Everything you might want to know about yaml formatter.