YAML Validator
Validate YAML syntax and pinpoint errors with clear line references.
Format and validate YAML with consistent indentation and optional key sorting.
YAML Formatter reformats YAML into a clean, consistently indented structure. It can also sort keys alphabetically and validates syntax at the same time. Useful for tidying up Docker Compose, GitHub Actions, Kubernetes, and other configuration files.
Yes. If you enter invalid YAML, a parse error message is displayed.
No. Comments are removed during the parse and re-dump process.
Anchors and aliases are expanded and inlined in the output.
No. All processing happens in your browser.