All / Developer

YAML Formatter

Normalize YAML indentation so nested keys are easier to read.

Tabs become two spaces. Invalid YAML is reported and left unchanged.

  1. 1Paste YAML.
  2. 2Press Format.
  3. 3Copy the result.

About this tool

Normalize YAML indentation by turning tabs into two spaces. Nested keys get easier to read.

  • Invalid YAML is reported and left unchanged
  • The page doesn't convert YAML to JSON
  • Use JSON formatter when the text is already JSON

Questions

Does it convert to JSON?
Not in this version. Use JSON formatter for JSON.
Broken YAML?
Format reports the parse error and leaves the text as you pasted it.
Why two spaces?
A common convention for YAML.

Ratings

No ratings yet. The average shows after 3 ratings.

Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.

Related tools