YAML Validator
Find out whether a YAML file is valid before a deployment or build fails because of it, and see exactly where any problem is.
or drop a file here · .yaml, .yml, .txt · up to 20 MB
About the YAML Validator
A single misplaced space can stop a deployment, a CI pipeline or an app from starting, and the error message is often far from the real cause. This validator parses the file as strict YAML 1.2 and points to each problem with its line and column, so you can fix it before it reaches a server.
When to use it
- A Kubernetes, Helm or Docker Compose command failed with “error converting YAML”.
- A GitHub Actions or GitLab CI pipeline will not start and the job log blames the workflow file.
Worked example
Load the sample with Try an example, then press Validate YAML. Its last list item has its “roles” key shifted one space to the left, so it no longer lines up with “name” above it. The validator reports a problem at line 10, column 1. Indent the line by one more space so that “roles” sits under “name”, validate again, and the page confirms valid YAML with the number of documents and keys.
Problems it catches
- Indentation that does not match the surrounding block.
- Tab characters used for indentation, which YAML forbids.
- The same key written twice in one mapping. Many tools silently keep only the last value, which hides mistakes.
- Unclosed quotes, brackets and braces.
- An alias such as *defaults that refers to an anchor that does not exist yet.
- Alias chains that would expand into an enormous structure.
Warnings, for example about unusual tags, are listed separately and do not make the file invalid.
What it does not check
It confirms the file is valid YAML, not that it is a valid Kubernetes object or pipeline. A misspelled key such as “contianers” is still valid YAML. Use your tool’s own dry run or schema check for that.
Related tools
- Fix indentation in one step with the YAML formatter.
- Inspect the parsed data with YAML to JSON.
- For JSON, use the JSON validator.
How to use YAML Validator
- Paste YAML or open a .yaml or .yml file.
- Select Validate YAML.
- Fix each reported problem, then validate again.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
What does it check?
The YAML 1.2 syntax: indentation, tabs used for indentation, unclosed quotes and brackets, duplicate keys, and aliases that point to a missing anchor.
Does it check my Kubernetes or GitHub Actions settings?
No. It checks that the file is valid YAML. Whether the keys and values are right for a particular program is a separate check that this tool does not do.
Why are tabs an error?
YAML does not allow tab characters for indentation. Replace them with spaces; the formatter can do this for you once the file parses.