Language: EN
Start free

Alt text

A short written description attached to an image on a web page. Screen readers read it aloud, and search engines use it to understand the image.

Also called alternative text · alt attribute · image description

With Herofab Product studio

Model wearing the ecru T-shirt with dark trousers, full length on white
Source photo. Made with Herofab · Virtual try-on

Alt text stands in for the image wherever the image cannot be seen: for a shopper using a screen reader, on a slow connection where pictures fail to load, and for a search engine indexing the page. In a webshop it is a field of its own beside each product image.

Useful alt text says what the picture shows, in a plain sentence: the product, its colour and material, and the view, such as a navy wool coat seen from the front on a model. It does not repeat the product title word for word, and it is not a list of keywords.

Each image of a gallery deserves a description of its own, because the front view, the back view and the detail of a cuff show different things. On marketplaces the field is often missing, and the title and attributes do this work; in a seller's own shop the alt text is the seller's to write.

Where alt text is stored

Alt text is an attribute of the image element in the HTML of a page, not a part of the image file. A shop system shows it as a field beside each picture in the product editor or the media library. Because it belongs to the page, it does not travel with the file when the picture is downloaded, sent to a marketplace or used on another site.

What happens when the field is empty depends on the system. Some shop themes insert the product title; others leave the attribute out, and a screen reader may then read the file name aloud. Neither tells a shopper what this particular picture shows.

What to write for each kind of image

The view decides the wording. For an on-model image the text says how the product is worn and where it ends on the body, and leaves the model's appearance aside unless it matters for the product. For a detail shot it names the detail, such as the brass zip on the cuff. For a colour variant it names that colour, since colour is exactly what a shopper who cannot see the picture has to be told.

Images that contain words need more than alt text. A size table or a care instruction saved as a picture cannot be read by a screen reader, and a long table read out as one sentence helps nobody. Such content belongs on the page as real text, with a short alt text that says what the image is.

Common mistakes and how to find them

The frequent mistakes are mechanical. Every image of a gallery carries the same text; the text is a file name left over from the camera; a picture was replaced and the old description stayed; the shop was translated and the alt texts were not.

Alt text is not shown on the page, so it has to be looked for. The screen reader built into a phone or a computer reads it aloud, and the developer view of a browser shows the attribute. The small label that appears when the pointer rests on a picture is a different field, the title attribute, and says nothing about the alt text.

Alt text and related terms

Product feed
A product feed sends product data to marketplaces and comparison sites, with each image given as a web address. Alt text is part of the shop's page and a feed usually has no field for it; there the title and the attributes describe the product.
Text on product images
Text on product images is lettering inside the picture itself, which a screen reader cannot read. Alt text sits outside the picture and can be read aloud, which makes it, and the page around it, the place for words that matter.
IPTC metadata
IPTC metadata is stored inside the image file and moves with it, while alt text is stored in the page. The IPTC standard has a field for an accessibility description, but a web page uses it only if the shop system copies it into the alt attribute.
Thumbnail
A thumbnail is the small version of an image in lists and carts. Where the thumbnail is itself the link to the product, its alt text is what a screen reader announces as that link, so an empty one leaves the link without a name.

A checklist for product image alt text

  • Every product image on the page has an alt text, and none of them shows a file name or the shop system's default.
  • The images of one gallery carry different texts, each naming its own view or detail.
  • The text names the colour of the variant shown, not the colour of another variant.
  • Words that appear inside an image, such as a size table, are also given as real text on the page.
  • The alt text is in the language of the page, including on the translated versions of the shop.
Questions

Alt text, answered.

Does alt text help product images show up in search?

It helps, as one signal among several. Search engines read alt text together with the page around the image, the file name and the image itself to decide what a picture shows, and an accurate description supports that. A list of keywords does not, and it makes the page worse for shoppers who hear the text read aloud.

How long should the alt text of a product image be?

One short sentence or phrase is enough. A screen reader reads the whole text aloud in one go, so the product, its colour and the view should come first and anything beyond that be left to the product description. Phrases such as image of or picture of add nothing, because the screen reader already announces that it is an image.

What is the difference between alt text, a title and a caption?

Alt text replaces the image where it cannot be seen and is read by screen readers and search engines. The title attribute is an optional label that some browsers show when the pointer rests on the picture; screen readers do not read it reliably. A caption is visible text under the image that every visitor sees. Of the three, a product image needs only the alt text.

Do decorative images need alt text?

They need an empty alt attribute, which tells a screen reader to skip them. That is right for a divider, a background pattern or an icon that repeats a word standing next to it. A product image is never decorative: it is the content of the page, and leaving its alt text empty hides the product from anyone who cannot see the picture.

Can alt text for product images be written automatically?

A draft can. Shop systems and image-description software can produce a text from the picture or from the product data. A draft made from the picture alone tends to be generic and cannot know what is not visible, such as the material or the exact colour name; product data knows those but not the view. A draft that combines both and is read by a person before publication is the workable route.

Free tools
Get started

Your next collection, shot this week.

20 credits at sign-up, no card required. Images made with free credits carry a watermark. Herofab also removes the watermark from those images once credits are purchased.