ToolsDoc

YAML Formatter

Normalize YAML indentation to a consistent 2-space style.

Normalizes indentation only; does not fully validate YAML syntax.

Worth Knowing

YAML uses indentation itself to express structure — there are no braces or brackets — which makes it clean to read but unforgiving, since a single misplaced space can change meaning or break parsing entirely. This tool normalizes indentation to a consistent two-space style, the convention most projects adopt. A notorious YAML gotcha it's worth remembering: unquoted values like 'no', 'yes', and 'off' are interpreted as booleans, and country code 'NO' for Norway has surprised many a configuration file.

How to Use

  1. Paste or type your yaml into the YAML Formatter above.
  2. The output updates instantly and is ready to copy.
  3. Normalizes indentation only; does not fully validate YAML syntax.

Frequently Asked Questions