YAML Formatter

Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.

Reformat YAML while preserving comments, anchors, and scalar types.

Result

     

Loading the tool…

How to use YAML Formatter

How do I use it?

Input
  • YAML
Settings
  • Indent
Run
Format

How it works and examples

Reformat the inline mapping under root. The string "001" keeps its leading zeros.

Input limits

Search tools