SEO
Image Alt Text for SEO: What Google Actually Says
Key takeaways
- Google calls alt text the most important attribute for image metadata and prefers useful, information-rich descriptions.
- Keyword stuffing in alt text is a spam risk; a short, accurate description beats a keyword list.
- Decorative images and images that repeat nearby text should use an empty alt attribute.
- Use real img elements, short descriptive file names, and lazy loading that works without user interaction.
How should you write image alt text for Google?
Write a short, accurate description of what the image shows, in the context of the page it sits on. Google's image guidance calls alt text the most important attribute for giving an image metadata, and says good alt text is useful and information-rich, uses keywords naturally, and fits the surrounding content. The same text also serves people using screen readers, which is why accessibility and search guidance largely point the same direction.
What does Google's own example look like?
Google's image best-practices page ranks three versions of alt text for a photo of a puppy. A specific phrase such as "Dalmatian puppy playing fetch" is labeled best. A single word, "puppy," is labeled better than nothing but weaker. A long string of puppy-related keywords is labeled bad and flagged as a possible spam signal. The practical lesson is that specificity helps and repetition does not.
A useful test: read the alt text aloud as if the image were missing. If a listener would understand what the image contributed to the page, the alt text is doing its job. If it sounds like a search query, rewrite it.
When should alt text be empty?
The W3C Web Accessibility Initiative publishes an alt decision tree that separates images by purpose. Based on that tree:
- Informative images get a brief description that conveys their meaning in context.
- Decorative images get an empty alt attribute (alt=""), so assistive technology skips them. The same applies when an image only repeats text that already appears nearby.
- Functional images, such as an icon inside a link or button, get alt text describing the destination or action, not the picture.
- Images of text get that text in the alt attribute only if the words are not available elsewhere on the page.
- Complex images, such as charts, should have their information presented as text elsewhere on the page, with a shorter alt that summarizes or points to it.
The W3C notes the tree does not cover every case, so judgment still applies. Leaving alt empty on a decorative image is intentional and correct; omitting the attribute entirely is different and is generally avoided.
Do file names, captions and placement matter?
Google recommends short but descriptive file names and gives my-new-black-kitten.jpg as better than IMG00023.JPG. It also says it draws information about an image's subject from the page content, including captions and image titles, and advises placing images near relevant text on pages related to the image's subject. Google does not publish separate formatting rules for captions, so treat them as ordinary, useful page copy rather than a place for keywords.
Google also says it does not index CSS images, so images that carry meaning should be standard HTML img elements. For a preview image preference, it points to og:image or the schema.org primaryImageOfPage property, and suggests a relevant, high-resolution image rather than a generic logo.
Can lazy loading hide images from Google?
It can if implemented poorly. Google's lazy-loading guidance says the implementation should load content whenever it becomes visible in the viewport, and that loading should not depend on scrolling or clicking because Google Search does not interact with pages. It also advises against lazy-loading content that appears above the fold. To check your setup, Google suggests the URL Inspection Tool in Search Console and looking for image URLs in the src attribute of img elements in the rendered HTML.
What about image sitemaps and formats?
Google says an image sitemap can list images it might not otherwise discover, and that image locations may sit on other domains, which helps for CDN-hosted images. Supported formats in img src include BMP, GIF, JPEG, PNG, WebP, SVG and AVIF, and file extensions should match the actual file type. If you use srcset or picture, Google advises keeping a fallback src.
What is still uncertain?
Google's documentation explains how it uses alt text for image understanding, but it does not quantify how much alt text affects rankings, and none of these sources claims a specific ranking boost. Treat alt text as a clarity and accessibility practice that also supplies a search signal, not as a lever to pull in isolation.
Frequently asked questions
Is alt text a Google ranking factor?
Google calls alt text the most important attribute for image metadata, but its documentation does not quantify any ranking effect. Write it for clarity and accessibility first.
How long should alt text be?
Google's guidance does not set a length. Its examples favor a short, specific phrase over either a single word or a list of keywords.
Should every image have alt text?
Every informative or functional image should. Purely decorative images, or images that repeat adjacent text, should use an empty alt attribute according to the W3C decision tree.
Does lazy loading hurt image indexing?
Not if images load when they enter the viewport without needing a scroll or click. Google suggests checking the rendered HTML in Search Console's URL Inspection Tool.
Sources
- Google Images best practices — Google Search Central
- Images Tutorial: Alt Decision Tree — W3C Web Accessibility Initiative
- Fix lazy-loaded content — Google Search Central
Keep reading
See how AIrecommend.ai helps businesses get found and recommended by AI assistants.