Alternative text must describe the image, not name the file
Alternative text that is a file name, a camera code or a placeholder such as “image” or “logo” technically exists but describes nothing. Replace it with words that convey what the image shows or does.
Readabler check
| Rule ID | rdb-alt-suspicious |
|---|---|
| Impact | Serious |
| Success criterion | 1.1.1 Non-text Content · A |
| Standards | WCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549 |
| Fixed with a text: from the page or written by AI |
Example
<img src="/uploads/IMG_2041.jpg" alt="IMG_2041.jpg">
<img src="/uploads/team.jpg" alt="image">A screen reader announces “IMG underscore 2041 dot jpg, image” and “image, image”.
<img src="/uploads/IMG_2041.jpg" alt="Oak dining table set for six in a sunlit kitchen">
<img src="/uploads/team.jpg" alt="Our five-person support team outside the Leeds office">A screen reader describes the dining table and the support team.
Why it matters
This kind of alt text usually comes from a CMS that fills the field automatically, an upload tool that copies the file name, or a developer adding a placeholder to silence a warning. It passes a simple “alt is present” test, so it is easy to miss. For blind and deafblind visitors the result is the same as no alt text at all: they hear a camera code, a hash or the word “image” and learn nothing.
It is often worse than an empty alt, because the noise is read aloud every time. Search engines also get no useful signal from it.
How to fix it
Read each flagged alt text and decide what the image is for.
Informative image. Replace the placeholder with a short description of what matters in it:
<img src="/uploads/dsc_0042.jpg" alt="Walnut bookcase with five adjustable shelves">
Logo. Use the organisation's name, and the destination if it is a link:
<a href="/"><img src="logo.svg" alt="Oakline Furniture home"></a>
Decorative image. If the image adds nothing, make the alt empty so screen readers skip it:
<img src="/uploads/spacer.gif" alt="">
Fix the source. Check your CMS or upload plugin. Turn off any setting that copies the file name into the alt field, and make editors write alt text when they insert an image. Clean up the media library: alt text stored there is often reused on many pages.
Renaming files does not help. A readable file name like “blue-armchair.jpg” is still not a description.
Checklist
- Replace file names and camera codes with real descriptions.
- Replace placeholders such as “image”, “photo” or “logo”.
- Use alt="" for decorative images instead of a placeholder.
- Turn off CMS settings that copy file names into alt text.
How the check works
The check reads the alt of every <img>, <input type="image"> and <area> with a non-empty alt. It fails when the text is a generic word such as “image”, “photo”, “logo” or “placeholder” (optionally with a number), starts like a camera file name (“IMG_”, “DSC”, “Screenshot”), ends with an image extension, or repeats the file name in its raw form, such as “hero_2x”. Missing alt is left to the image alt check. Generic descriptions in other words still need a manual review.
Resources
- Understanding 1.1.1 Non-text Content W3C
- An alt decision tree W3C WAI
- Images tutorial W3C WAI
Updated October 27, 2026