Skip to contentAltstamp
Menu

Alt text check

Alt text is judged by what the image is for, not by how well the words describe it. Paste one image's alt text, say whether the image informs, decorates, works as a link or button, or carries a chart, and the check applies W3C's rules for that role. It runs in your browser and sends nothing anywhere.

Line drawing of a picture placeholder with the blank line under it ringed in orange

What WCAG asks

  • 1.1.1Non-text ContentA
  • 2.4.4Link Purpose (In Context)A
  • 1.4.5Images of TextAA

What it checks

The check reads one image at a time: its alt text, the role you say it plays, and the words around it. It then runs the rules below and reports each problem as a word, with the reason and a better pattern. The role matters most. The same alt can be right on a photo and wrong on a logo that links home, and W3C's alt decision tree starts from that question, not from the words.

The rules this check runs, and where each one comes from
RuleApplies toBased on
No alt attribute at allEvery imageW3C decorative images: some screen readers read the file name
Empty alt on an image that carries meaningInformative, chart1.1.1 and the decision tree
Empty alt in a link or button with no other textLink or buttonW3C functional images
Words in the alt of a decorative imageDecorative1.1.1, decoration ignored by assistive technology
A space between the quotesEvery imageW3C tips
A file name, a camera name or a placeholder wordEvery image with alt1.1.1, equivalent purpose
The same word three times or moreEvery image with alt1.1.1, equivalent purpose (our test)
Opens with "image of", "picture of" and similarEvery image with altW3C tips
Repeats the text beside itEvery image with altThe decision tree
Says what an icon looks like, not what it doesLink or buttonW3C functional images
Says "link", "button" or "click here"Link or buttonW3C tips
No long description for a chartChart, graph, mapW3C complex images
Longer than 150 charactersEvery image with altHouse style (W3C sets no number)

What it cannot do is look at the picture. It cannot tell you that "red brick shop front" is really a blue door, or that the photo you called decorative is the only place your opening hours appear. Those two judgements stay with whoever knows why the image is on the page. Site-wide scanners share the limit from the other side: as GitHub's engineers put it, most alt text checkers test whether an image has a name at all, not whether the name says anything useful. Our testing tools comparison sets the scanners side by side.

How to use it

  1. Pick what the image does. Ask in the decision tree's order: is it in a link or button, does it add meaning the text does not, and is that meaning a chart or map? If none of these, it is decorative. A picture with words in it lands on the same four answers: decorative when the words are already on the page, link or button when it is an icon with a job, and otherwise informative, with its words in the alt. Our guide to decorative images and empty alt covers the borderline cases.
  2. Paste the alt text from your site builder's image settings, or from the page source between the quotes of alt="". If the image has no alt attribute at all, tick the box instead.
  3. Add the caption or sentence beside the image, or for a linked image the link's own text. That is what lets the check catch repetition, and an empty alt that is correct because the link text already names it.
  4. Read the findings worst first, rewrite, and check again. For worked rewrites of product photos, logos, charts and icon buttons, see alt text examples.

What WCAG asks

What WCAG asks: 1.1.1 Non-text Content, Level A

All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for the situations listed below.

Controls, Input If non-text content is a control or accepts user input, then it has a name that describes its purpose.

Decoration, Formatting, Invisible If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it is implemented in a way that it can be ignored by assistive technology.

"Equivalent purpose" is the phrase that does the work. The alt is not a caption and not a description for its own sake; it does the job the image does. That is why a logo in a link becomes its destination, a chart gets a short name plus its data in text, and an ornament gets nothing. It is a Level A criterion, the first line of the WCAG 2.2 AA checklist, and images of text are a separate line there (1.4.5).

What a fail usually looks like

WebAIM's 2026 scan of the top million home pages found 16.2% of images with no alternative text at all (not counting alt=""), and 45% of those were linked images, which leaves the link with no name. Of the images that did have alt, 10.8% had questionable or repetitive text: "image", "graphic", a file name, or the same words as the text beside it. Those are the patterns this check looks for.

Five small-business images, before and after
ImageBeforeAfter
Product photo on a bakery pagePicture of sourdough bread, best sourdough bread PortlandRound loaf with a dark blistered crust, cut open to show an airy crumb
Logo that links to the home pageHarbor Plumbing logoHarbor Plumbing home
Search icon buttonmagnifying-glass.svgSearch
Divider between sectionsdecorative flourish divider(empty: alt="")
Bookings chart on a results pageChartBar chart of bookings by month, with the figures in the table below

The same rules hold outside the website. A newsletter's images need alt for readers whose mail app blocks pictures (see accessible email), and an image in a PDF needs its alt set in the document itself (see how to make a PDF accessible). To hear your own alt text in place, try a screen reader for ten minutes with our screen reader testing guide.