YAML Validator (Syntax, Duplicate Keys, Tabs)

Parses YAML and reports syntax errors with line numbers, then scans for tabs used as indentation and duplicate keys.

Use the tool

Why this tool exists

A YAML file can parse and still do the wrong thing. Two keys with the same name in one mapping silently overwrite each other in many parsers, and tabs break indentation.

This page first parses the text with the site YAML parser. If that works it runs a line scan for tabs and repeated keys and lists them as items to review. The scan is a heuristic and does not look inside flow style braces, so treat the list as hints. Nothing leaves your browser.

How to use it

  1. Paste the YAML.
  2. Read the verdict and the top-level summary.
  3. Fix any lines in the review list.
  4. Run again until it is clean.

Frequently asked questions

Does it cover all of YAML 1.2?

No. It covers common block and flow syntax, anchors and multiple documents, but not every corner such as complex keys or all tags.

Why is a duplicate key only a review item?

Some tools reject it and some keep the last value. The scan is also line based, so it can be wrong.

Can it fix the file?

No. Use the YAML formatter after fixing the problems.

Is my YAML uploaded?

No.