YAML Validator & Linter
DataValidate YAML syntax with detailed errors, find duplicate keys that most parsers silently accept, and expand anchors, aliases and merge keys
About YAML Validator & Linter
Paste a Kubernetes manifest, GitHub Actions workflow or any other YAML file and check it three ways. Validate confirms that it parses, with errors that pinpoint an indentation mistake or invalid character, and a stats panel of key counts and nesting depth. Duplicate keys lists every mapping key repeated within the same scope, with line and column, which matters because most YAML parsers silently keep the last value instead of failing. Anchors & aliases expands every anchor, alias and merge key (<<) inline so you can see the document a parser actually receives, and lists anchors that are defined but never used. All three check YAML structure, not a specific tool's schema: a Kubernetes manifest missing a required field still passes and needs kubectl apply --dry-run. Nothing is sent to a server.
How to use YAML Validator & Linter
- 1.Paste a YAML file (like a Kubernetes manifest or GitHub Actions workflow) to check it parses correctly before committing it.
- 2.Use the detailed error messages to pinpoint an indentation mistake or invalid character that a generic parser error wouldn't explain clearly.
- 3.Check the stats panel to see key counts and nesting depth as a quick sanity check on a large config file's structure.
- 4.Switch to Duplicate keys before merging a large config: a repeated key usually means one of the two values is silently ignored.
- 5.Use Anchors & aliases to expand <<: *defaults style merges and confirm what each section really contains.