How to validate YAML
Indentation mistakes break YAML files for CI, Docker and Kubernetes. The validator parses your YAML and shows the data it contains.
Step by step
- Paste your YAML. Paste it into the left box.
- Read the verdict. You see Valid or Invalid, and the parsed data as JSON.
- Fix and recheck. Edit the text; the result updates immediately.
Tips for better results
- YAML uses spaces for indentation. Tabs are not allowed.
- Multiple documents separated by --- are all parsed.
- The JSON preview shows how values were understood, for example numbers and booleans.
Limits to know
- Formats: YAML
- Size: Limited by browser memory
- Notes: Checks syntax and shows the parsed data. It does not validate against a schema such as Kubernetes or GitHub Actions.
At a glance
| Tool | YAML Validator |
|---|---|
| Category | Developer Tools |
| Works with | YAML |
| Size limit | Limited by browser memory |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, no sign-up |
Frequently asked questions
What YAML version is supported?
The open-source js-yaml parser is used, which follows YAML 1.2 for most cases.
Does it run code?
No. Only safe, plain data types are loaded.
If something does not work
- The result is empty. Check that you typed or pasted text into the input box and that the options are not hiding everything.
- The page feels slow. Very large text slows any browser tool. Work on smaller parts.
- Characters look wrong. Make sure the text is saved as UTF-8 in the program you copied it from.
- Copy does not work. Some browsers block automatic copying; select the result and copy it yourself.
Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.
Related tools and guides
- JSON Formatter: Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem. Read the guide
- JSON Validator: Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason. Read the guide
- HTML Formatter: Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too. Read the guide
More tools like this are in Developer Tools, or browse all tools.