Skip to main content
Workbench

YAML Validator

Validate YAML against the 1.2 specification and see exactly where issues occur. The validator understands multiple documents, anchors and aliases, tags, and block scalars, and guards against malicious alias-expansion inputs.

Inputyaml
Loading editor…
YAML○ Not checked0 lines0 chars0 B

How to use the yaml validator

  1. Paste or upload YAML.
  2. Validation runs as you type and on demand with the Validate button.
  3. Errors include the exact location the parser reports.
  4. Multiple documents, anchors, and block scalars are all understood.

Example: Catching bad indentation

Input
a:
  b: 1
   c: 2
Output
Error: bad indentation of a mapping entry (line 3).

Frequently asked questions

Which YAML version is validated?
YAML 1.2 by default, with an option for 1.1. Validation is based on the well-tested `yaml` library.
Are malicious YAML inputs handled safely?
Yes. The parser caps alias expansion to protect against “billion laughs”-style denial-of-service documents.
Does it support multiple documents?
Yes. Documents separated by --- are each validated, and errors are reported per document.