YAML Validator
Find bad indents, duplicate keys and other YAML errors, with the line of each one.
Enter YAML data and click "Validate" to check for errors.
How YAML Validator works
Checks if your YAML is valid. If it is not, you see the line and column of the first error, a short reason and the code on that line. Click show me to jump to the error in the input.
Checks YAML 1.1, the version Kubernetes and many other tools still read. Duplicate keys count as errors. Words like yes, no, on and off are read as true or false, as YAML 1.1 says.
Input to YAML Validator
- Paste or type YAML into the input box, or upload a .yaml or .yml file.
- Check one YAML document at a time. Several documents split by --- show an error.
Output from YAML Validator
- Valid YAML message when there are no errors.
- Warning when your YAML is valid but holds only one value, like a single string, number or true, or no data at all. A missing colon after a key often causes this.
- Error details with line, column and reason when your YAML is not valid. Use YAML Formatter to clean up valid YAML.