DevTools Hub

Search tools

Search for a developer tool

YAML

YAML Validator

Check YAML for syntax errors, duplicate keys, tab indentation, and YAML 1.1/1.2 boolean ambiguity.

Part of the YAML Toolkit
2 documents 2 notes
  • Document 1: "yes" is read as text here (YAML 1.2 core schema), but a YAML 1.1 parser would read it as a boolean — quote it ("yes") if you mean the literal word.
    line 4, column 10
  • Document 2: "NO" is read as text here (YAML 1.2 core schema), but a YAML 1.1 parser would read it as a boolean — quote it ("NO") if you mean the literal word.
    line 13, column 10

What this checks

Multi-document files (separated by a line containing just ---) are validated document by document, with results numbered accordingly. Merge keys (<<: *anchor) are resolved — a widely-supported extension, though not part of core YAML 1.2 itself.

FAQ

Does this validate against a specific schema (like Kubernetes or Docker Compose)?

No — this checks that the YAML itself is well-formed, not whether it satisfies some application's expected structure. For Kubernetes manifests specifically, see Kubernetes YAML Validator, which checks apiVersion/kind correctness, resource naming rules, and more on top of syntax.

Why does my file parse fine here but fail elsewhere?

Most likely the YAML 1.1 boolean issue above, or a parser-specific extension (custom tags, a non-standard merge key implementation) that this tool — deliberately following the common YAML 1.2 core schema — doesn't special-case the same way.

Try it yourself

For Kubernetes-specific validation, formatting, and diffing, see the Kubernetes Toolkit.

Related tools