YAML Validator

Check YAML for errors such as bad indentation and duplicate keys, with line numbers, and see it as JSON. For Docker, Kubernetes and CI files.

Runs in your browserNo sign-upWorks offline
Ctrl+Enter to run
Input121 characters
Output
✓ ReadySample content shown

What the YAML Validator does

The YAML Validator checks YAML files such as docker-compose.yml, Kubernetes manifests, GitHub Actions workflows and app config, and points to the exact line and column of each problem. It catches wrong indentation, tabs, unclosed quotes or brackets, and duplicate keys, which many tools silently accept by keeping the last value. Valid YAML is shown as JSON, so you can see exactly how it will be read, or as cleaned-up YAML.

How to use it

  1. Paste YAML on the left.
  2. Read the status: Valid YAML, or the first problem with its line and column.
  3. Check the JSON view to see how values are read.
  4. Switch to Cleaned YAML to copy a tidied version.

Example

The sample app config is valid and reads as JSON with port 4343 as a number and debug false as a true/false value. Changing it so the key a appears twice gives “Line 2, column 1: Map keys must be unique”.

The usual YAML mistakes

Indentation decides structure in YAML, so one extra space can move a setting into the wrong section. Tabs are not allowed for indentation at all. A value with a colon followed by a space, such as a time like 10: 30, needs quotes.

Values that look like numbers, dates or true/false are converted. Check the JSON view: a version written as 1.10 becomes the number 1.1, and some older tools read yes and no as true and false. Quote such values to keep them as text.

Questions people ask

Is my code or data uploaded?

No. Everything runs in your browser, so config files, queries, logs and keys stay on your device. That makes it safe to use with work data.

Does it check Kubernetes or Compose rules?

It checks YAML syntax, not each tool’s settings. A syntactically valid file can still have a misspelled key.

Can I paste several documents?

Yes. Documents separated by --- are each checked and shown together.

Which YAML version is used?

YAML 1.2, the current version, with duplicate keys treated as errors.

Related tools