Code · Made a little simpler

YAML Validator

Validate YAML 1.2 core documents locally. Locate duplicate keys and unresolved aliases, trace anchor definitions and download the validation report.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

YAML Validator: how to use it

  1. Paste a YAML stream or choose a UTF-8 file. Run Validate YAML.
  2. Read the diagnostic location or inspect the document, anchor and alias counts.
  3. 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.

Guides