Home / Developer Tools / YAML Formatter

YAML Formatter

Re-indent and normalize YAML documents.

How to use

  1. Paste your YAML.
  2. Click format.
  3. Copy the normalized result.

Frequently asked questions

Will comments be kept?

No - YAML is parsed and re-emitted, which drops comments. Validate first if comments matter.

Related tools

  • YAML Validator — Check YAML syntax - catch indentation errors fast.
  • YAML ↔ JSON — Convert YAML to JSON and JSON to YAML.
  • XML ↔ JSON — Convert XML to JSON and JSON back to XML.
  • CSV ↔ JSON — Convert CSV to a JSON array and JSON back to CSV.
  • CSV ↔ XML — Convert CSV rows to XML elements and back.
  • Markdown Editor — Write Markdown with a live side-by-side preview.

See all developer tools