YAML Tools
YAML Validator
Full YAML 1.2 validation with the exact line and column of every error — catch the indent bug before your pipeline does.
In short
A YAML validator parses a document with a full YAML 1.2 parser — anchors resolved, scalars typed — and reports the exact line and column of the first error. That matters more in YAML than in JSON because indentation is the syntax: a mis-indented key does not error, it silently attaches to the wrong parent, and a tab breaks the parse entirely.
By NaveenKumar T · Updated
Learn: YAML Multi-line Strings: | vs > vs Quoted (Indentation Rules)
- Exact error line & column
- Full YAML 1.2 parsing
- Anchors & aliases resolved
Runs entirely in your browser — nothing you paste or open here is uploaded, logged, or stored.How we handle data →
Example
YAML Validator: input and output
A GitHub Actions-style CI pipeline — the kind of file where a single misplaced space silently breaks a job trigger.
name: build-and-test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: npm ci
- run: npm test
env:
NODE_ENV: testname: build-and-test
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: npm ci
- run: npm test
env:
NODE_ENV: test
Validation re-serializes in canonical block style — the flow-style on: [push, pull_request] list comes back as two dashed lines — proof the document parsed cleanly.
Learn more
Why YAML validation matters more than most
YAML powers the configs that break deployments: Kubernetes manifests, GitHub Actions, docker-compose, Ansible. Unlike JSON, where errors are loud, YAML often fails SILENTLY — a mis-indented key doesn't error, it just attaches to the wrong parent and your option is quietly ignored. Validating before committing catches both loud and silent failures.
This validator runs a complete YAML 1.2 parse — the same operation your tooling performs — with anchors resolved and scalars typed, so a green badge here means the document will load everywhere.
The errors that bite in practice
Tabs in indentation (invisible and illegal), a colon inside an unquoted value (image: nginx:latest needs no quote, but title: Deploy: prod does), unquoted values that change type (country code NO becoming boolean false in YAML 1.1 tooling), and block scalars (| and >) indented one space off. Each produces a precise position here instead of a cryptic CI failure.
Help
Frequently asked questions
Everything you need to know about the YAML Validator.
01How do I use the YAML Validator?
Paste your YAML — a Kubernetes manifest, CI pipeline, docker-compose file — and click Validate. Valid documents get a green badge and normalized output; broken ones report the precise position of the first problem.
02My YAML looks fine but the validator rejects it — why?
Ninety percent of the time: a tab character used for indentation (YAML forbids tabs — they look identical to spaces), inconsistent indent depth within one block, or a missing space after a colon (key:value instead of key: value). The reported column points at the exact offending character.
03Why is the error position so important in YAML validation specifically?
Because whitespace IS the syntax, so a validator that only says 'invalid' leaves you re-reading the whole file. A single space too many silently reassigns which mapping a key belongs to; a tab breaks the parse entirely. This validator reports the exact line and column of the first problem and underlines it in the editor, so a 400-line manifest with one bad indent is a one-glance fix instead of a search.
Keep working
Related tools
YAML Formatter
YAML Tools
YAML Viewer
YAML Tools
YAML to JSON
Full YAML 1.2 parsing — anchors resolved, types preserved, errors pinpointed — straight into clean JSON.
Docker Compose Validator
YAML Tools
Base64 to YAML
The Kubernetes-secret decoder — Base64 to clean, validated YAML and back, entirely in your browser.
JSON to YAML
Re-express JSON as clean, human-friendly YAML — smart quoting, two-space indentation, list dashes done right.
Learn the format
Related guides
YAML Multi-line Strings: | vs > vs Quoted (Indentation Rules)
How YAML literal | and folded > block scalars differ, what -, + and a digit change, when to quote instead, and why a run: block loses its line breaks.
9 min readGuide · Data FormatsYAML Anchors, Aliases and Merge Keys Explained (With Real Config Examples)
How &anchor, *alias and the <<: merge key work in YAML, where docker-compose, GitLab CI and Helm use them, the override order, and the errors they cause.
7 min readTutorial · Data FormatsYAML Tutorial: Read and Write It Without Fear
Learn YAML properly: mappings, lists, multi-line strings, anchors — and the indentation and typing pitfalls that break Kubernetes and CI configs.
2 min read