To validate a YAML file online, paste it or drop the .yml/.yaml file above: the verdict appears at once, with the line and column of the first error, and a normalised version you can copy. The check uses js-yaml with the YAML 1.2 rules, supports several documents separated by ---, and runs in your browser — your configuration and its secrets are not uploaded. The file can be up to 50 MB.
The errors and traps it reveals
| Error | Example | Fix |
|---|---|---|
| Tab used for indentation | A line indented with a Tab key | YAML only allows spaces: replace tabs with 2 spaces |
| Inconsistent indentation | A child key indented by 3 spaces under siblings at 2 | Align keys of the same level exactly |
| Duplicated key | Two "image:" keys in the same service | Remove or rename one; most tools silently keep the last one, which hides bugs |
| Missing space after a colon (silent trap) | key:value | Not an error: it is read as one piece of text, not a key. The normalised output shows it; write key: value |
| Unquoted special characters | A value starting with *, &, @, ` or containing ": " | Wrap the value in quotes |
| Unclosed quote or bracket | name: "web | Close the quote; the error line points just after it |
Valid YAML is not always a valid config
This tool checks the YAML syntax. It does not know the rules of each program: a Docker Compose file with a misspelled key ("imgae:") or a Kubernetes manifest with a wrong apiVersion is valid YAML, and will only be rejected by Docker or kubectl. After fixing the syntax here, run the program's own check: docker compose config, kubectl apply --dry-run=client, or the GitHub Actions editor.
Beware of YAML 1.1 parsers: some older tools read unquoted no, yes, on and off as booleans (the classic "Norway problem", where the country code NO becomes false). This validator follows YAML 1.2, where they stay text. When in doubt, quote such values.
Useful extras
- Several documents in one file (separated by ---), as in Kubernetes manifests, are each checked.
- Normalised output: the parsed content is re-written with consistent indentation, handy to tidy a messy file.
- Convert once valid: YAML to JSON for APIs and tools that expect JSON.
- Private: API keys, passwords and internal hostnames in your config never leave the browser.
- To convert a valid YAML file to JSON, XML or CSV, use the Data converter.