HTML Formatter
Beautify and indent HTML markup.
OpenFind out whether a YAML file parses before your pipeline or deployment does.
Add a workflow, values file or any single YAML document.
js-yaml is fetched from a CDN the first time you type.
A success message, or the error with line and column.
Edit the input; it is parsed again on every change.
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
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.