YAML Validator
runs in your browserno sign-upfree
Check YAML syntax and find indentation errors, tabs and duplicate keys by line and column.
Valid YAML
Details
- Documents
- 1
- Keys
- 12
- in all mappings
- Depth
- 4
- nesting levels
- Anchors
- 0
- &name to reuse
- Indentation is consistent (no tabs)
- No duplicate keys
About this tool
This YAML validator checks your YAML as you type and shows exactly what is wrong and where — wrong indentation, tabs, a missing space after a colon, an unclosed quote or bracket, or the same key twice. The problem is underlined in the editor. Valid YAML gets a summary of its documents, keys, nesting depth and anchors. It works for Docker Compose, Kubernetes, GitHub Actions, Ansible and any other YAML file.
How to use
- Paste or type your YAML. It is checked as you type.
- Read the status line: "Valid YAML" or the first error with its line and column.
- Fix the error (it is underlined in the editor) until the YAML is valid.
- Press Format to re-indent valid YAML in place.
FAQ
What are the most common YAML errors?
Indenting with tabs (YAML only allows spaces), items at the wrong indentation level, a missing space after the colon in key: value, the same key twice in one mapping, and unquoted values that contain ": " or start with special characters such as @, ` or *.
Does it check my Kubernetes or Docker Compose schema?
No. It checks the YAML syntax — whether the file is valid YAML. Whether the keys are the ones Kubernetes or Docker expect is checked by those tools (for example docker compose config or kubectl apply --dry-run).
Which YAML version is used?
YAML 1.2, the current version, used by most modern tools. In YAML 1.2, words like yes, no, on and off are plain text, not true/false as in the older YAML 1.1.
Is my YAML uploaded?
No. Everything runs in your browser, so config files, secrets in environment variables and other data never leave your device. Your last input is saved only in this browser; press Clear to remove it.