YAML Validator

Check YAML before it breaks your deploy: syntax errors with their line and column, duplicate keys, tabs, and the values different parsers read differently, with a JSON preview.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste YAML

    Paste the file content.

  2. 2
    Read errors

    Fix any syntax error at its line and column.

  3. 3
    Review warnings

    Quote ambiguous values.

  4. 4
    Check the JSON

    Confirm the structure is right.

  5. 5
    Fix and repeat

    Paste the corrected file.

  6. 6
    Apply

    Use the file with its tool.

About this tool

YAML runs Kubernetes, GitHub Actions, GitLab CI, Docker Compose, Ansible and countless application configs, and a single indentation mistake can stop a deployment. Worse, some YAML is valid but means something unexpected: country: NO becomes the boolean false in parsers that follow YAML 1.1, version: 1.10 becomes the number 1.1, and timeout: 1:30 is read as 90 by some tools. This validator parses your YAML with a YAML 1.2 parser and reports errors with their exact line and column and a snippet of the surrounding text. It treats duplicate keys as errors, flags tabs in indentation and trailing spaces, and warns about the YAML 1.1 traps that make the same file behave differently in PyYAML, Ruby and older tools than in modern parsers. Multiple documents separated by --- are supported, and you can see the parsed result as JSON to confirm the structure is what you intended.

Checks

- Syntax: indentation, missing colons, unclosed quotes and brackets, with line and column. - Duplicate keys: the second value would silently replace the first in many parsers. - Tabs used for indentation, which YAML forbids. - Trailing spaces and lines over 120 characters. - YAML 1.1 booleans: yes, no, on, off, y and n unquoted. - Leading zeros that YAML 1.1 reads as octal, such as 0755. - Values like 1:30 that YAML 1.1 reads as base-60 numbers. - Version-like numbers such as 1.10 that lose trailing zeros. - Indentation that is not a multiple of two or four spaces.

Why quote values

When in doubt, quote strings: "NO", "1.10", "0755", "1:30". Quoted values are strings in every YAML version and every parser, which removes the ambiguity.

Reading the JSON preview

The preview shows how a YAML 1.2 parser understands the file. If a value you meant as text appears as a number or boolean, quote it.

Typical uses

- Checking Kubernetes manifests, Helm values and Compose files before applying them. - Debugging CI pipeline files that fail with vague errors. - Reviewing configuration changes in pull requests.

Anchors and aliases

YAML lets you define a block once with an anchor (&defaults) and reuse it with an alias (*defaults) or merge it with <<. The JSON preview shows the expanded result, so you can check what each section really contains after merging, without running the application.

Limits

This checks YAML itself, not the schema of a particular tool: a valid YAML file can still be an invalid Kubernetes object. Custom tags are not resolved. It is a linting aid, not an official conformance test.

Worked example

A config with dark_mode: yes, country: NO, version: 1.10 and timeout: 1:30 is valid YAML 1.2, but the linter warns on four lines: two YAML 1.1 booleans, a version that becomes 1.1, and a base-60 time, each with the advice to quote the value.

Quick facts

Frequently asked questions

What does it check?

Syntax, duplicate keys, tabs, trailing spaces and values that parsers read differently.

Why is yes a problem?

YAML 1.1 parsers read it as true; YAML 1.2 parsers read it as text.

Does it support several documents?

Yes, separated by --- lines.

Does it validate Kubernetes schemas?

No. It checks YAML itself; use kubectl --dry-run for schema checks.

Is my file uploaded?

No. Validation runs in your browser.

Can I see the result as JSON?

Yes, tick Show as JSON.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages