Code Tools

YAML Validator

All tools

Find out whether a YAML file parses before your pipeline or deployment does.

How it works

Four simple steps

1

Paste YAML

Add a workflow, values file or any single YAML document.

2

Parser loads once

js-yaml is fetched from a CDN the first time you type.

3

Read the verdict

A success message, or the error with line and column.

4

Fix and re-check

Edit the input; it is parsed again on every change.

YAML Validator

About YAML Validator

A GitHub Actions workflow or a Helm values file fails with a vague complaint about mapping values, and you need to know whether the YAML itself is the problem. Paste it here and the parser tells you, usually with the exact line.

On first use the validator loads js-yaml 4.1, a widely used JavaScript YAML parser, and then parses your input on every edit. A valid document gets a confirmation; otherwise the status line shows the js-yaml message, which includes the line and column of problems such as bad indentation or a duplicated mapping key. Anchors, aliases, block scalars and flow collections are all understood.

Valid YAML can still be the wrong YAML. A value like 1.10 parses fine but becomes the number 1.1, and an unquoted date turns into a timestamp, so view the parsed values as JSON when types matter. For style problems that do not stop parsing, such as tabs or a missing space after a dash, run the YAML style linter. The code tools hub lists the rest of the YAML set.

Only the parser library is fetched from the jsDelivr CDN; your YAML is checked locally and never sent with that request. If the CDN is blocked, a much simpler built-in reader is used, and it catches far fewer errors.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Your file contains several documents separated by ---, which is common in Kubernetes manifests. The validator parses one document at a time, so paste each section separately.

No. It checks YAML syntax only. A file can be perfectly valid YAML and still be rejected by the tool that reads it because of a misspelled key or a wrong value type.

The same key appears twice at the same level of a map. Some parsers silently keep the last one, but js-yaml treats it as an error, which helps catch copy and paste mistakes.

View more FAQs

Related tools

View all

HTML Formatter

Beautify and indent HTML markup.

Open

CSS Formatter

Format and pretty-print CSS.

Open

JS Formatter

Beautify JavaScript code.

Open

JSON Formatter

Beautify and validate JSON.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools