~/tools / YAML Validator
YAML Validator
Check whether your YAML is syntactically valid and view the equivalent JSON. Uses js-yaml, a widely used YAML parser.
YAML is everywhere in config files — Kubernetes, GitHub Actions, docker-compose — but indentation mistakes are easy to miss. Catch syntax errors here before you deploy.
# Use Cases
- Sanity-checking a Kubernetes manifest or GitHub Actions workflow before you push or deploy it
- Tracking down an indentation mistake in a docker-compose.yml
- Converting a YAML config to JSON to feed into another script or tool
# Usage
- Paste the YAML you want to check into the text area.
- Click "Validate" to see whether it's syntactically valid, along with the equivalent JSON.
- If there's an error, the message js-yaml reports is shown.
# FAQ
- Why use a library instead of a custom parser?
- YAML's spec is complex (indentation rules, anchors, aliases), and a naive hand-rolled parser risks giving a false "valid" result. We prioritize correctness and use the battle-tested js-yaml library.
- Does it support multi-document YAML (--- separators)?
- The current version only validates a single document.