When editing Kubernetes manifests, Docker Compose files, OpenAPI specs, or GitHub Actions workflows, inconsistent spacing and unordered keys make Git diffs noisy. This YAML formatter validates YAML 1.2.2 syntax and normalizes structure without converting it to another format.
For example, if you paste unsorted YAML with comments:
# Server config
port: 8080
host: localhost
logging:
level: info
enabled: true
and enable recursive key sorting with 2-space indentation, the output becomes:
host: localhost
logging:
enabled: true
level: info
port: 8080
All parsing, key sorting, and serialization happen locally in your browser.