YAML Validator

The YAML Validator answers one question: is my YAML correct? Paste it in and you get a pass or fail in real time. When it fails, you get the exact line and column of the first parse error, the parser's reason (tab in indentation, unclosed quote, bad flow collection, inconsistent indent), and the surrounding snippet so you can see exactly what tripped the parser. The validator uses js-yaml with the JSON_SCHEMA — the YAML 1.2 subset that matches modern Kubernetes, GitHub Actions, Docker Compose, and Ansible — so quirks like 'yes'/'no' being implicit booleans are treated the way today's tooling treats them: as strings. Nothing leaves your browser.

Built by Bob QA by Ben Shipped

How to use

  1. 1

    Paste your YAML into the input box. Indentation matters in YAML — spaces only, never tabs, and consistent at every nesting level.

  2. 2

    If the YAML parses, you'll see a green Valid status with the root type (object, array, string, number, boolean, null) and the top-level key or item count. The parsed structure preview shows you what your YAML evaluates to — useful for confirming the shape matches what you intended.

  3. 3

    If the YAML fails, you'll see a red error block with the line and column of the first problem (1-based, matching what your editor shows). The reason explains what the parser expected; the snippet underneath shows the exact location with an arrow pointing at the offending character.

  4. 4

    Multi-document YAML streams (separated by ---) are supported — the validator parses every document and reports how many it found.

  5. 5

    Try the broken sample to see what an error looks like; try the valid sample to confirm the tool works.

Frequently asked questions

Ratings & Reviews

Rate this tool

Sign in to leave a written review.
Loading reviews…