To write useful alt text for a product image, describe the information the image contributes in its particular context: what the product is, the variant shown and any detail that matters to the shopper. Keep the description concise and accurate, use an empty alt attribute when the image is genuinely decorative or redundant, and describe the action or destination when the image itself is a link or button.
Alt text is a text alternative supplied through an image’s alt attribute. It can help people who use screen readers understand images and gives search engines additional context. Google also considers the surrounding page content when interpreting images, so alt text works best as part of a clear product page rather than as a list of search terms.
Start with the image’s purpose
The same photograph can need different alt text in different places. On a product page, a close-up may show the texture of a fabric. In a category listing, the main purpose of a thumbnail may be to identify the item. If the thumbnail and an adjacent product name form one link, repeating that name in both places may add unnecessary speech for a screen reader user.
Before writing, ask what someone would miss if they could not see the image. Include the detail that answers that question, provided you can verify it from the image or reliable product information. Do not infer a material, colour name, feature or compatibility from an uncertain photograph.
| Image purpose | Suitable approach | Illustrative alternative |
|---|---|---|
| Main product photograph | Identify the product and a relevant visible distinction. | Blue ceramic mug with a curved handle |
| Additional product view | Describe the new detail that the view contributes. | Inside of blue mug showing its glazed finish |
| Variant photograph | Identify the variant shown when that distinction matters. | Canvas tote bag in olive green |
| Image-only link | Explain its destination or action. | View olive green tote bag |
| Decorative image | Use an empty alternative when it adds no information. | alt="" |
These are hypothetical examples, not templates to copy into every catalogue. A useful description depends on the actual item, image and surrounding text.
Describe product views without repeating the same phrase
A gallery often contains a front view, a rear view, a close-up and an image of the product in use. Repeating the product name for every image tells a screen reader user little about why those views differ. Instead, describe the distinguishing information in each useful view.
For a hypothetical rucksack, the main image might have the alternative “Navy daypack with two front pockets”. A rear view could say “Back of navy daypack showing padded shoulder straps”, while a close-up could describe a visible zip or fastening. If two images convey the same information, assess whether both need descriptions in that context rather than inventing a difference.
Keep essential facts available as ordinary page text too. An image may help illustrate the size or construction of a product, but a shopper should not need to interpret a photograph to find its stated dimensions. Put verified dimensions in a specification table or product description, using consistent units.
Handle colour and other variants accurately
When a product has several variants, match the alternative text to the image actually displayed. If a shopper selects a green bag and the gallery changes to show it, the corresponding alternative should identify the green item where that is useful. A description left over from a blue variant can create confusion.
Use the retailer’s accurate variant name when it helps identify the item, but avoid relying on a marketing colour name alone if it does not communicate a recognisable colour. For example, if the verified variant is called “Moss” and is green, “Moss green canvas tote bag” may be more informative than “Moss tote bag”. If the product information does not establish the colour, check it before making a claim.
Review images after a variant change, including the main photograph and any thumbnails that update with it. An alternative should describe the image or its function; it should not imply that a shopper has selected an option when the interface has not actually done so.
Know when to leave alt text empty
An empty alternative, written as alt="", tells assistive technology that an image can be ignored in that context. This is appropriate for a purely decorative image or one whose information is already conveyed by nearby text. The W3C’s decision tree treats the purpose and context of the image as central to that choice.
For example, consider a category card with a photograph and the visible text “Canvas tote bags” inside the same link. If the photograph adds no information needed to understand that link, an empty alternative can prevent the category name being announced twice. On a product detail page, a photograph showing the bag’s pockets may contribute information that the text does not, so a descriptive alternative may be appropriate.
Empty alt text is different from omitting the attribute. W3C notes that some screen readers may announce the filename when an image has no alt attribute. Do not mark an informative image as decorative merely to shorten a page’s spoken output.
Write for image links and controls
When an image is the only content of a link or button, its alternative needs to communicate what the control does or where the link goes. “View larger product image” can be more useful than a visual description if activating the image opens a larger view. The appropriate wording depends on the actual action.
Check the complete accessible name of the control, not just the image in isolation. If a link already contains meaningful visible text alongside an image, repeating the same wording in the image alternative may be redundant. Conversely, an image-only control with an empty alternative can leave its purpose unclear. Test representative controls with keyboard navigation and a screen reader, and correct the underlying labels where needed.
Use descriptions, filenames and page text for different jobs
Alt text is not a substitute for a product description, caption or specification. Use the product page to explain verified features and limitations; use a caption when visible context would help all readers; and use alt text to convey the image’s contribution when the image is unavailable or cannot be perceived.
A descriptive filename such as navy-daypack-front.jpg can be easier to manage than an opaque filename. Google says filenames can also provide clues about an image’s subject. However, a filename does not replace a suitable alt attribute, and changing established image filenames solely to add keywords is not a necessary first step. Prioritise accurate product information and alternatives for meaningful images.
The same principle applies to category pages: describe what is actually present and distinguish it from neighbouring categories. For the related task of presenting those pages in search results, see how to write distinctive category page titles and meta descriptions.
A practical review for a large catalogue
- Choose a representative sample. Review a selection of products with different gallery layouts, variant options and category cards. Include images used as links or controls.
- Identify the purpose of each image. Decide whether it supplies product information, repeats nearby text, decorates the page or performs an action.
- Compare alternatives with actual images. Look for incorrect colours, copied descriptions, missing details and alternatives that describe a different variant.
- Check information outside the image. Make sure important specifications and instructions are available as text, not solely inside an image.
- Test common journeys. Navigate a listing and a product gallery with a keyboard and screen reader. Listen for repeated labels, unexplained controls and descriptions that no longer match after a variant changes.
- Fix patterns at their source. If a template inserts the same alternative for every gallery image, adjust the editorial process or template so each meaningful view can be described appropriately. Recheck a sample after the change.
Prioritise errors that prevent someone identifying a product, understanding a control or distinguishing a variant. A catalogue does not need a unique, elaborate sentence for every decorative or redundant thumbnail. Equally, a generated product name alone may miss the detail that makes an additional view useful.
Avoid keyword stuffing and unsupported claims
Write naturally for the image and its context. An alternative such as “cheap blue mug buy blue ceramic mug best blue mug” repeats search phrases without explaining the photograph. “Blue ceramic mug with a curved handle” communicates a visible subject without making a claim about price or quality.
Do not add phrases such as “image of” to every alternative when they contribute nothing useful. Do not claim that a product is waterproof, handmade or compatible with another item unless that information is supported. If an image contains a detailed size chart or other complex information, provide the full information in accessible page text or a table; a short alternative alone is unlikely to convey it adequately.
Good image alternatives improve the clarity of a page for people and give search engines useful context, but they do not guarantee image rankings or sales. Review them whenever imagery, variants or page layouts change, and judge each one by the information it provides in its current setting.