Nifty / Tools / YAML

YAML Formatter

Tidy YAML indentation while keeping every comment. Lists can be indented under their key, Kubernetes style.

yaml-formatter
YAMLDrop a file here
Formatted
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the YAML Formatter

  1. Paste YAML on the left.
  2. Choose the indentation and whether lists are indented.
  3. Copy the formatted YAML.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

Are comments kept?

Yes. Unlike converting to JSON and back, formatting keeps comments, anchors and document markers.

Related tools