YAML Formatter

Tidy up YAML text with consistent indentation and spacing. The text never leaves your device.

1 Paste your text and pick the options

2 Your answer

Press Tidy YAML and your answer shows here.

How to use the YAML Formatter

  1. Paste your YAML into the box and choose how many spaces to indent by.
  2. Press Tidy YAML.
  3. Copy the result, or press Download to save it as formatted.yaml.

Frequently asked questions

Will my comments stay?

No. The formatter rebuilds the YAML from its data, so comment lines are removed. Keys keep the order you wrote them in.

Is my YAML uploaded anywhere?

No. It is tidied in your browser and never leaves your device.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.