YAML validator
Paste a YAML file, such as a Docker Compose file, a Kubernetes manifest or a GitHub Actions workflow, and see every error with its line and column.
How to use it
- Paste YAML or open a
.yamlor.ymlfile. The sample has two typical mistakes to try. - Read the list: each problem shows its line, its column and the line itself with a mark under the spot.
- If tabs are used for indentation, press Replace tabs with spaces. Fix the rest in the box; the check runs again as you type.
- Once the YAML is valid, copy it reformatted with 2-space indentation, or see the same data as JSON.
The errors it finds most often
These are the mistakes that break YAML files in practice:
- Tabs for indentation. YAML allows only spaces, and a tab is invisible in most editors.
- Indentation that does not line up. A key two spaces off belongs to a different parent, or to none.
- Duplicate keys. Many parsers silently keep the last value; this validator reports it.
- Unclosed quotes, brackets or braces, often in inline lists such as
[a, b. - Values that start with a special character, such as
@or a backtick, which must be quoted.
Formatting keeps your comments
The formatted YAML is written from the parsed document, so comments stay where they were and only spacing and indentation change. Viewing as JSON shows the data a program would read: comments dropped, aliases expanded, several documents gathered into one array.
Related tools
Questions people ask
Is my YAML uploaded?
No. It is checked in your browser and never sent to a server, so configuration files with secrets stay on your device.
Which YAML version does it check?
YAML 1.2, the version used by Kubernetes, Docker Compose, GitHub Actions and most current tools.
Does it check Kubernetes or Compose schemas?
No. It checks that the file is valid YAML: syntax, indentation and duplicate keys. Whether a field name is right for Kubernetes or Compose is not checked.
Can it fix my YAML?
It replaces tabs used for indentation with spaces, and reformats valid YAML. Other errors need a decision only you can make, so it points to the exact spot instead.