YAML Validator
Validate YAML 1.2 core documents locally. Locate duplicate keys and unresolved aliases, trace anchor definitions and download the validation report.
Checking YAML mapping keys and anchor references
YAML Validator: how to use it
- Paste a YAML stream or choose a UTF-8 file. Run Validate YAML.
- Read the diagnostic location or inspect the document, anchor and alias counts.
- Download the report to see which earlier anchor each alias uses.
Limits and notes
UTF-8 files up to 4 MiB or pasted text up to 4,194,304 UTF-16 code units. Checks YAML 1.2 core syntax and mapping-key equality. Custom tags and cyclic mapping keys require separate handling. Supports up to 128 nesting levels and 250,000 nodes in the stream. Application-specific schemas require their own checks.
How your privacy works →YAML Validator: common questions
Can one document use an anchor from a previous document?
Anchor bindings start over at each document boundary. An alias must refer to an earlier anchor in its own document.
Is a cyclic alias invalid YAML?
YAML can describe a value that refers to itself. The validator accepts value cycles. Converting such a graph into a finite JSON tree would require changing the data.