YAML Validator and Linter
YAML Validator and Linter shows whether YAML is valid, with the exact line and column of any error, and flags classic traps such as unquoted yes and no, leading-zero numbers and versions such as 3.10 that lose a zero. You can see the result as JSON. It runs in your browser.
How to use YAML Validator and Linter
- Paste your YAML, or drop a .yaml or .yml file.
- If it is invalid, read the line and column of the first error.
- If it is valid, read the notes on values that other tools may read differently, and copy the JSON if you need it.
Frequently asked questions
Is my YAML uploaded?
No. It is read in your browser and kept out of the address bar, since YAML files often hold configuration and secrets.
Why does it warn about yes and no?
In YAML 1.1 (used by PyYAML, Ansible, older Kubernetes tooling and others) yes, no, on, off, y and n are booleans. YAML 1.2 treats them as text. A file can mean different things in different tools, so quoting the value removes the doubt. The classic case is the country code NO becoming false.
Which YAML version does the check use?
It follows YAML 1.2 with the standard safe types. Tags that could create functions or objects are refused, so a document cannot run code here.
Does it check my Kubernetes or Docker Compose schema?
No. It checks YAML syntax and common traps, not whether the keys mean anything to a particular tool. Use the tool's own validator for that.
Why is the JSON view missing?
A document that repeats an alias many times can expand into a huge JSON text. When the JSON would be over about 1 MB, the view is hidden and a note says so.
Next step
Need it as JSON? Convert between YAML and JSON. Open JSON to YAML Converter.