YAML Validator
Find out whether your YAML parses, and exactly where it breaks. Bad indentation, tabs and duplicate keys are pinpointed with a code excerpt. Your file never leaves your browser.
- No registration
- No server involved
- Line and column errors
- Handles multi-document YAML
- Runs on your device. Files are never uploaded.
- Free and unlimited. No sign-up, no watermark.
YAML validator in three steps
No account, no email, no waiting for an upload.
- STEP 01
Load your YAML
Use .yaml, .yml or .txt files.
- STEP 02
Run the check
The file is parsed, including every document separated by ---.
- STEP 03
Read the report
A valid file lists its documents. An invalid one shows the line, column, reason and a code excerpt.
What YAML validator does, and what it doesn't
We'd rather tell you up front than surprise you after the download.
What you get
- Exact error positionSee the line and column, with the offending line and a caret.
- Plain-English reasonsMessages such as 'bad indentation of a mapping entry' or 'duplicated mapping key' tell you what to fix.
- Multi-document awareEach document is described: a list of N items, or a map with N keys.
- Formatted copyA cleaned, consistently indented version is included when the YAML is valid.
- Detects duplicate keysA key repeated in the same map is an error here, because most programs would silently keep only one.
Good to know
- Syntax onlyIt does not know about Kubernetes, GitHub Actions or Compose rules. A file can parse and still be wrong for its tool.
- Comments in the formatted copyThe copy has no comments, so keep your original for editing.
- First error onlyFix it and run again to find the next one.
Your data never leave your device
The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.
Typical online tool upload
Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.
Mediaextractr no upload
The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.
When people use YAML validator
Debug a failing pipeline
Find the indentation slip before pushing.
Check a manifest
Confirm that a manifest parses before applying it.
Review a hand-edited config
Catch a tab or a missing colon.
Learn YAML
Test how small changes affect structure.
Mediaextractr vs typical upload tools
| MediaextractrPrivate | Typical upload tools | |
|---|---|---|
| Your file is uploaded | Never | Yes |
| Sign-up needed | No | Often, after a few files |
| Daily file limit | None | Often 1–2 free files |
| Watermark | Never | Sometimes |
| Wait for upload & download | No | Yes |
| Speed on very large files | Depends on your device | Depends on their servers |
Why YAML errors happen
YAML uses indentation to show structure, so a single misplaced space can change the meaning or break the file. Tabs are not allowed for indentation. A colon followed by a space starts a key, so text containing ': ' needs quotes.
The message and the code excerpt usually point to the line after the real mistake, because the parser notices the problem only when it reads something unexpected. Look one or two lines above.
Common fixes
Try these first:
- Replace tabs with spaces.
- Line up all siblings at the same indentation.
- Quote strings that contain a colon followed by a space, a # or leading special characters.
- Remove duplicate keys.
- Tidy the file with the YAML formatter, or see how it reads as data with YAML to JSON.
Reading an error properly
Take the reported line as a starting point and look at the lines above it. A mapping that suddenly becomes a list, or a value that begins with a special character, can cause an error many lines away from the real slip. Fix the first error, and run again, since later messages often disappear once the first is solved.
Questions, answered
How do I validate YAML?
Paste it here. If it is valid you see a summary; if not, the line and column of the error.
Does it check Kubernetes or CI schemas?
No. It checks that the YAML parses, not what the tool expects inside it.
Can I check a YAML file that includes secrets?
Yes. It is parsed by script in your browser tab and never transmitted, so keys and passwords stay on your device.
Why is the error line not exactly where I made the mistake?
YAML parsers notice problems when they hit the first unexpected token, which can be a line or two later.
Can it handle several documents?
Yes. Documents separated by --- are all checked.
Can I lint YAML on my phone?
Yes, on current mobile browsers. Tabs and odd spacing show up clearly in the code excerpt.