What is YAML Formatter?
Paste YAML (Kubernetes manifests, CI configs, docker-compose files…) to normalize its indentation, inspect the structure in a collapsible tree, or validate it. Anchors, aliases, multi-line strings and multi-document files (---) are all supported.
The compact button re-emits the document in flow style on one line, handy for embedding. Syntax errors are reported with the line and column.
Frequently asked questions
YAML or YML — which file extension?
Both refer to the same format; .yml is just the short spelling. Paste either one — nothing depends on the extension.
Will indentation changes break my file?
The formatter re-emits the parsed document, so indentation is normalized consistently; block scalars (| and >) keep their content exactly as written.