Image Alt Text SEO: Google's Rules, WCAG and What AI Reads
Image alt text helps SEO by telling Google, screen readers and AI systems what an image shows and why it sits on the page. Google says it reads alt text alongside computer vision and the page's content. Write a short, specific description that fits the context, and give purely decorative images an empty alt attribute.
By Raúl Díaz, founder of Slibur
11 min read

In this article
The alt attribute lives in the HTML of each image, for example alt="Dalmatian puppy playing fetch". It was built for accessibility: a screen reader reads it aloud, and a browser shows it when the image fails to load. Search engines use it for a similar reason, since the text says what the image means on this page, something pixels alone rarely make clear.
Alt text now has a third reader besides people and Google: AI assistants that read pages to answer questions. If your aim is to be named in those answers, Slibur's AI search optimization tool shows whether five AI assistants already mention your brand.
What Google's documentation says about alt text
Google's image SEO best practices (opens in a new tab) page, last updated March 2, 2026, calls alt text "the most important attribute" for giving an image extra metadata. Four points on that page matter most:
- It is one input among several. Google uses alt text together with computer vision algorithms and the contents of the page to understand what an image is about. Captions, image titles and text placed near the image also feed that understanding.
- It works as anchor text. When an image is a link, its alt text plays the role that link text would.
- Keyword stuffing is a spam risk. Google warns that filling alt attributes with keywords gives users a poor experience and may cause the site to be seen as spam.
- The image has to be a real image element. Google states that it doesn't index CSS images, so a hero picture set as a CSS background gets no alt text and no place in image results.
A ladder of examples on the same page shows what "specific" means in practice:
| Version | Alt text | Google's verdict |
|---|---|---|
| Missing | No alt attribute at all | Bad |
| Stuffed | puppy dog baby dog pup pups puppies doggies and so on | Bad |
| Generic | puppy | Better |
| Specific | Dalmatian puppy playing fetch | Best |
The jump from "puppy" to "Dalmatian puppy playing fetch" is the whole skill: name the specific thing, then add the one detail that makes this image different from every other puppy photo.
Does alt text help rankings?
Google does not publish a weight for alt text, and its documentation ties alt text to understanding images rather than to ranking the page around them. The clearest payoff shows up in Google Images and in any result that displays a picture. For the page itself, alt text adds context in the same way a caption does. When a page ranks poorly, missing alt text is rarely the cause. When an image never appears in image results, alt text is one of the first things to check.
Alt text vs. caption, title attribute and filename
These four pieces of text get confused, and they do different jobs:
| Element | Who uses it | What the official sources say |
|---|---|---|
| Alt attribute | Screen readers, Google, AI crawlers that read HTML | What Google calls the most important attribute for image metadata; needed on every meaningful image |
| Visible caption | Every visitor | Google extracts the subject of an image from page content, captions included |
| Title attribute | Mouse users who hover | Optional; MDN notes screen readers may read it if the user requests it |
| Filename | Google, lightly | Google calls it a "very light" clue: my-new-black-kitten.jpg beats IMG00023.JPG |
Renaming files is cheap and worth doing on new uploads. It will not stand in for alt text, and as you will see below, some AI models never look at the filename at all.
What WCAG requires, and why it makes better alt text
The accessibility rule behind alt text is WCAG Success Criterion 1.1.1 Non-text Content, a Level A requirement. It asks that non-text content has "a text alternative that serves the equivalent purpose". The key word is purpose. Alt text is not an inventory of every pixel. It is whatever a person needs from the image at that point in the page.
That same criterion lists exceptions. Content that is pure decoration, formatting or invisible has to be implemented so assistive technology can ignore it. In HTML that means an empty attribute, alt="".
The five image types and the alt text each needs
W3C's Web Accessibility Initiative turns the rule into an alt decision tree built around five image types:
| Image type | Typical example | What the alt text should do |
|---|---|---|
| Informative | Product photo, team photo, map | Give a brief description of what the image conveys |
| Decorative | Background texture, divider, ornament | Stay empty: alt="" |
| Functional | Magnifier icon in a search button, logo that links home | Name the action or the destination |
| Image of text | Banner or quote card with words on it | Repeat the text shown in the image |
| Complex | Chart, diagram, infographic | Short description in the alt, full information elsewhere on the page |
Functional images are where many sites slip. W3C's tutorial says the alt for a printer icon should read "print this page" rather than describe a printer, and a linked logo should say where the link goes. Without alt text, a screen reader typically falls back to announcing the file name or the URL.
Complex images get a two-part treatment in W3C's tutorial: a short description in the alt that identifies the image, and a long description, such as a data table or a paragraph, somewhere the reader can reach it.
Missing alt and empty alt are not the same
An empty alt="" tells browsers and screen readers the image is not a key part of the content, according to MDN's reference for the image element. A missing attribute says nothing, and MDN notes that some screen readers then announce the file name instead. In an audit, treat them separately: an empty alt on a decorative image is correct, while a missing attribute almost always needs fixing.
How to write alt text in five steps
- Decide what the image does on this page. WebAIM points out that the same photo may need very different alt text depending on how it is used. A chef's portrait on a recipe page and on a restaurant's About page are telling the reader different things.
- Name the specific thing. "Dalmatian puppy" beats "dog". On product pages, use the real product name, the color you sell it under and the model, the details a shopper compares.
- Add only the detail that matters here. If the caption or the next sentence already describes the image, the alt can be shorter, or empty when the text covers it fully. W3C's tutorial on decorative images uses exactly that case.
- Drop "image of" and "picture of". Screen readers already announce that there is an image, so the phrase only adds noise.
- Read it aloud with the sentence before it. MDN suggests this test: the alt text plus the text that precedes it should make sense as one passage.
How long should alt text be?
Neither WCAG nor Google sets a character limit. WebAIM's guidance is that a few words are usually enough, and occasionally a short sentence or two. The 125-character figure in many guides is a rule of thumb; HubSpot's guide, for one, advises staying under 125 characters because screen-reading tools typically stop there. Treat it as a soft ceiling. If an image needs more than a couple of sentences, it is a complex image, and the long version belongs in the page text.
Where keywords fit
Google asks for alt text that "uses keywords appropriately" and stays in context with the page. Read plainly, that means the keyword appears when it is the honest name of what is pictured. A photo of a trail running shoe on a trail running shoe page will carry the phrase without effort. A team photo will not, and forcing the phrase in turns accessibility text into spam.
Good and bad alt text examples
These cover the image types most sites publish. Each bad version repeats a mistake that the guidance above warns against:
| Image and context | Bad alt text | Better alt text |
|---|---|---|
| Product photo on a shoe page | shoes running shoes best running shoes cheap | Men's trail running shoe in olive green, side view |
| Same shoe, sole close-up | The main photo's alt, copied | Lugged rubber outsole of the trail running shoe |
| Logo linking to the homepage | logo | Acme home |
| Magnifier icon inside a search button | magnifying glass | Search |
| Screenshot in a tutorial | screenshot | Search Console Performance report with the Queries tab open |
| Line chart in a report | chart | Line chart of monthly organic clicks; full data in the table below |
| Quote card | quote | The full quote, word for word |
| Divider or background swirl | decorative swirl line | Empty: alt="" |
| Team photo on an About page | SEO agency team best SEO agency | Support team gathered at the front desk of the Denver office |
Three habits sit behind most of the bad versions: a keyword list instead of a description, one alt text copied onto every image in a gallery, and a description of what an icon looks like instead of what it does.
What AI systems read from an image
AI assistants reach your images in two different ways, and alt text matters in both.
Crawlers that read your HTML. Vercel's analysis of AI crawler traffic, published December 17, 2024, found that none of the major AI crawlers render JavaScript, OpenAI's and Anthropic's crawlers included. On nextjs.org, it also found that Claude's crawler spent 35.17% of its fetches on images, while ChatGPT's put 57.70% of its fetches on HTML.
The practical consequence is simple. Alt text that sits in the server-rendered HTML can be read, while alt text injected later by a script may never be seen. The free AI crawler checker tells you whether GPTBot, ClaudeBot and PerplexityBot are allowed to read your site in the first place.
Models that look at the pixels. Multimodal models can describe an image on their own, but they have blind spots. OpenAI's vision guide (opens in a new tab) lists them: its models don't process original file names or metadata, may struggle with graphs whose line styles vary, give approximate counts and can produce incorrect descriptions. The filename you carefully renamed is invisible to that model, and the numbers in your chart are only dependable if they also exist as text.
Google's documentation closes the loop. Its guide to optimizing for generative AI search (opens in a new tab) says that if you follow its image SEO best practices, "you're already optimizing for generative AI search." Its page on AI features adds that no special machine-readable files or markup are needed to appear in them. There is no separate alt text format for AI Overviews.
Three habits follow from that:
- Put the facts an image carries into text: the alt for the short version, a caption or a table for the detail.
- Keep exact product names, model numbers and color names in both the alt and the visible copy, since text is what an answer engine can quote.
- Render images and their alt text in the page's HTML, not only through scripts or CSS backgrounds.
Should AI write your alt text?
For a large catalog, a vision model can draft alt text quickly. The limits above still apply. The model sees pixels, not purpose: it doesn't know why the image is on your page, it may miss the exact product name you sell under, and it can get details wrong. Use the drafts, then have a person check product names, colors and every functional image. Charts, screenshots and infographics deserve a description written by someone who knows what the data says.
Slibur dataChatGPT, United States, 4 answers, November 17, 2026
What ChatGPT said when we asked about alt text
We asked ChatGPT four questions on November 17, 2026, from the United States: how long alt text should be, whether it helps Google rankings, how to write it for ecommerce product images, and whether AI search tools read it. This is what came back.
- Length. ChatGPT recommended about 5 to 15 words or roughly under 125 characters, then added that there is no strict limit. The word range does not appear in Google's or W3C's guidance.
- Rankings. It said alt text helps mostly indirectly, more in image search than in regular results, and called it one small relevance signal among many. That reading matches how Google's documentation frames alt text.
- Product images. It offered a formula (product type, identifying details, color or material, context) with sample alt texts, and warned against leaving out the alt attribute because screen readers may read the file name, the same warning MDN gives.
- AI tools. It said Google uses alt text with computer vision and page content, and cited Google's AI features page for it. That statement is on Google's image SEO page; the AI features page never mentions alt text. On ChatGPT's own search, it said OpenAI does not publicly guarantee that alt attributes are used.
Two answers cited no sources at all. The other two cited Google's developer documentation, and one of them also cited OpenAI's developer docs. No SEO tool vendor's blog appeared among the sources. On a technical question like this, precise documentation with concrete examples is what ChatGPT leaned on, which is a useful hint if you publish technical guidance and want assistants to use it. It also shows why checking a cited claim against the original page is worth the minute it takes.
How to audit and fix alt text on an existing site
- Crawl for missing attributes. Site crawlers such as Screaming Frog or Sitebulb can list every image without alt text and export the list, as Search Engine Journal's alt text guide shows.
- Start with pages that earn traffic. Sort pages by clicks in Search Console and fix the top ones first, then product and category templates.
- Fix functional images before anything else. A linked logo or an icon button without alt text breaks navigation for screen reader users.
- Check every empty alt. An empty alt on a product photo hides it from screen readers and gives Google nothing to read, so confirm each one really is decoration.
- Replace duplicates. Identical alt text across a gallery tells nobody which angle or detail each photo shows.
- Translate it with the page. Google also recommends translating image filenames when you localize images. The international SEO audit guide covers the rest of that checklist.
On a store, this is one line of a wider ecommerce SEO audit, and on most sites it belongs on the list of quick SEO wins because each fix takes minutes. To check whether a single page can be reached, read and quoted by answer engines, run it through the free AEO checker.
Where alt text stops and AI visibility starts
Alt text makes each image understandable to people using screen readers, to Google and to AI systems that read your pages. It won't decide, on its own, whether an assistant recommends your brand. That depends on what the pages AI cites say about you and your competitors.
Slibur measures that side. It asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask, and shows which brands appear, in what position and which sources each AI cites. On paid plans, ChatGPT and AI Overviews are checked every day and the other three every week. You can start a 7-day free trial with no credit card.
Frequently asked questions
Is alt text a ranking factor in Google?
Google doesn't publish a weight for it. Its image documentation says it uses alt text, together with computer vision and the page's content, to understand what an image shows, and that alt text works as anchor text when an image is a link. The clearest benefit is in Google Images and other results that show pictures. For a page's regular ranking, alt text adds context but rarely makes the difference on its own.
How many characters should alt text have?
There is no official limit in WCAG or in Google's guidance. WebAIM says a few words are usually enough, sometimes a short sentence or two. Many guides suggest staying under 125 characters as a rule of thumb. If you need more than that, treat the image as complex: keep a short alt and put the full description or the data in the page text.
Does every image need alt text?
Every image needs an alt attribute, but not every image needs a description. Decorative images, such as dividers or background textures, should use an empty attribute (alt="") so screen readers skip them. W3C's tutorial on decorative images also allows an empty alt when the adjacent text already describes the image fully.
Should I put my keyword in alt text?
Only when it honestly describes the image. Google asks for alt text that uses keywords appropriately and warns that stuffing alt attributes with keywords may cause a site to be seen as spam. A product photo will often contain the product name naturally; a team photo or an icon should not carry it.
What is the difference between alt text and the title attribute?
Alt text replaces the image when it can't be seen, and screen readers and search engines read it. The title attribute usually appears as a tooltip on hover; MDN notes that screen readers may read it if the user requests it. It is optional and does not replace alt text.
Can I use AI to generate alt text?
As a first draft, yes, especially for large catalogs. Check the output before publishing: OpenAI's documentation says its vision models may generate incorrect descriptions, don't process file names or metadata, and can struggle with some graphs. A model also can't know why the image is on your page, which is what good alt text describes.
Do AI assistants read alt text?
Crawlers that read your HTML see the alt attribute like any other text in the source, as long as it is in the server-rendered HTML; Vercel's analysis found that the major AI crawlers don't render JavaScript. Google says that following its image SEO best practices already optimizes for its generative AI features.

Raúl Díaz is the founder of Slibur, the tool that asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and shows which brands they recommend. He writes about answer engine optimization from the data Slibur collects.