YAML is the config-file format behind Docker Compose, Kubernetes manifests, GitHub Actions, and countless application settings files — and it's whitespace-sensitive, so a single misaligned line breaks the whole file. This formatter normalizes indentation, validates the syntax, and flags exactly where a file breaks.
YAML uses indentation, not brackets, to represent structure — which makes it readable but fragile. The two most common failure modes: mixing tabs and spaces (YAML requires spaces only), and indenting a sibling list item or key by a different amount than the one above it.
YAML is a superset of JSON in terms of what it can represent, but trades JSON's explicit brackets and quotes for indentation and unquoted strings — more readable for humans hand-writing config files, less forgiving for a parser. Need to move between the two? Use the JSON ↔ YAML Converter.
• CI/CD pipelines: GitHub Actions, GitLab CI, CircleCI
• Container orchestration: Kubernetes manifests, Docker Compose
• Application config: Spring Boot, Ansible playbooks
• API specs: OpenAPI/Swagger definitions
Use Format to clean up indentation for readability.
Use Validate before committing a config file to catch errors early.