YAML Validator

How it works
Indent
Valid YAML

Input YAML

No problems found. This is valid YAML.

About YAML Validator

In YAML, one wrong indent can change what a file means or stop a deployment. This validator parses your YAML the same strict way a program would and lists every error and warning with the line and column where it happens.

Typical finds are bad indentation, a missing space after a colon, unclosed quotes or brackets, tabs used for indentation, and duplicate keys. Each problem line is highlighted in the editor.

How to use it

  1. Paste your YAML into the Input panel.
  2. Check the status badge for Valid YAML or a count of errors and warnings.
  3. Click an entry in the Problems panel to move the cursor to that line and column.
  4. Edit until the badge turns green. Validation re-runs as you type.

Frequently asked questions

Does it check Kubernetes or Docker Compose rules?

No. It checks YAML syntax only, not whether the fields match a particular schema.

Why is a duplicate key an error?

YAML requires every key in a mapping to be unique. Tools that allow it usually keep only one of the values, which hides mistakes.

Is my file kept private?

Yes. Validation happens in your browser and the YAML is never uploaded.

Related tools