Alt text for product images: how to write it, with examples
A formula for product image alt text, 12 before and after examples, when alt stays empty, and what the HTML standard, W3C, Google and EU law say.
On this page
- The formula for product image alt text
- 12 before and after examples
- When alt text stays empty
- Images of text: size charts and infographics
- What the standards and the search engines say
- How long alt text should be
- Where alt text lives in shop systems and feeds
- One alt text per language
- The EU accessibility law for e-commerce
- Alt text for thousands of images
- Common mistakes
- Where Central helps
In short
- Alt text for a product image names the product (brand, model, product type), the variant shown and the view or detail this image adds, without phrases such as "image of" and without a list of keywords.
- The HTML standard requires an alt attribute on images that carry content and an empty alt attribute (alt="") on purely decorative images.
- WCAG success criterion 1.1.1 (Level A) asks for a text alternative that serves the equivalent purpose for all non-text content, with listed exceptions such as pure decoration.
- Google Search Central calls alt text the most important attribute for image metadata and warns that filling it with keywords may cause a site to be seen as spam.
- No standard sets a maximum length for alt text: W3C advises keeping it as concise as possible, and a shop system may set its own limit.
- The European Accessibility Act, Directive (EU) 2019/882, has covered e-commerce services provided to consumers since 28 June 2025 and exempts microenterprises that provide services.
The formula for product image alt text#
Alt text for a product image has four parts, in the order a shopper would say them:
| Part | Where it comes from | Example |
|---|---|---|
| Brand and model | The product record | Northpeak Trail Runner 2 |
| Product type | The product record | men's trail running shoe |
| The variant shown | The variant this image belongs to | in forest green |
| The view, or what this image adds | The image itself | side view; outsole with 4 mm lugs; worn on a wet trail |
Put together: Northpeak Trail Runner 2 men's trail running shoe in forest green, side view.
Four rules keep it useful:
- No "image of" or "photo of". W3C's tips for text alternatives say such words are usually superfluous, because a screen reader already announces that this is an image.
- No keyword list. Google's image documentation warns that filling alt attributes with keywords makes for a bad experience and may cause a site to be seen as spam.
- The most important words first. W3C advises putting the key information at the beginning. On a product page that is the product name on the main image and the detail on a detail image.
- Say only what the image shows. Price, availability and claims belong in the text of the page. The HTML standard says alt text should never contain what could be the image's caption, title or legend.
The free image alt text generator at the top of this page applies the formula for you. It looks at an image you upload or link with a small AI model, says what the image shows (color, material, view) and writes alt text in 12 languages. You can run 5 images a day for free.
12 before and after examples#
All examples use the fictional outdoor brand Northpeak. "Before" is what shops often carry today.
| Image | Before | After | Why |
|---|---|---|---|
| Main packshot | image of shoe | Northpeak Trail Runner 2 men's trail running shoe in forest green, side view | Names the product, the variant and the view |
| Variant color | Trail Runner 2 (the same on every color) | Northpeak Trail Runner 2 men's trail running shoe in slate gray, side view | Each variant image says which variant it shows |
| Detail: outsole | IMG_4821.jpg | Outsole of the Northpeak Trail Runner 2 with 4 mm lugs | The detail comes first; the product is named once |
| Detail: fabric | rain jacket women waterproof rain coat buy rain jacket | Taped seam on the slate blue fabric of the Northpeak Stormline rain jacket, with water beading on the surface | A sentence in place of a keyword list |
| In-use scene | lifestyle image | Woman wearing the Northpeak Stormline rain jacket in slate blue on a wet forest trail, hood up | Says what the scene shows that the packshot does not |
| In-use scene | Picture of a headlamp being used | Runner at dusk wearing the Northpeak Beam 400 headlamp, its beam lighting the trail ahead | No "picture of"; names the product |
| Size chart | size chart | Size chart for the Northpeak Stormline women's rain jacket, sizes XS to XL. The same table follows as text below | Identifies the chart and says where the data is as text |
| Infographic with text | infographic | Northpeak Beam 400 headlamp: 400 lumens, USB-C charging, IPX4 water resistant, 78 g | Repeats the text that is in the image |
| Packaging | box | Northpeak Beam 400 headlamp in its retail box, with headband and USB-C cable next to it | Says what is in the picture, so the shopper knows what is included |
| 360 degree view | spin_frame_07.jpg on each of 24 frames | 360 degree view of the Northpeak Camp One gas stove once for the viewer; the single frames stay empty | One group of images that conveys one thing gets one alt text |
| Color swatch (a button) | swatch | Show the Stormline rain jacket in moss green | An image in a button says what the button does |
| Background graphic | green mountain line graphic banner | Empty: alt="" | Decoration is skipped |
The last three rows follow W3C's tutorial: for a group of images that conveys one piece of information, one image carries the text and the others have an empty alt; an image inside a link or button describes the destination or the action.
When alt text stays empty#
An image that adds no information gets an empty alt attribute: alt="". W3C's page on decorative images says a null alt lets assistive technologies ignore the image, and names four cases:
- Visual styling such as borders, spacers and corners.
- An image next to link text that only improves its look or enlarges the clickable area.
- An image that illustrates adjacent text without adding information.
- An image that the surrounding text already identifies and describes.
Empty is not the same as missing. The same W3C page says that when the attribute is not provided, some screen readers announce the file name of the image. The HTML standard treats a missing alt attribute as an error that conformance checkers must report, with a few listed exceptions.
W3C's alt decision tree settles most cases with four questions: does the image contain text, is it inside a link or button, does it add meaning to the page, is it purely decorative. On a product page, the product photos add meaning. A badge that repeats a line of text next to it does not.
Images of text: size charts and infographics#
If the text in an image is not available anywhere else on the page, the alt text has to contain it. W3C's page on images of text says the text alternative must contain the same text as the image, and that real text styled with CSS is the better design, because it can be resized and recolored. The HTML standard says the same for text rendered as a graphic.
Two product page cases:
- Infographic with a few facts. Put the facts in the alt text, as in the headlamp example above, and make sure the same facts are in the product's attributes or description, where shoppers, search engines and channels can read them.
- Size chart or comparison table. A table holds more than a short phrase can carry. W3C treats this as a complex image with a two-part alternative: a short alt text that identifies the image, and a long description, for example a real HTML table on the same page. The alt text can say where that table is.
What the standards and the search engines say#
| Source | What it says | Link |
|---|---|---|
| HTML standard (WHATWG) | An image that carries content needs an alt attribute that is not empty. The intent is that replacing every image with its alt text does not change the meaning of the page. A purely decorative image has an empty alt attribute | Section 4.8.4.4 |
| W3C WAI images tutorial | Sorts images into informative, decorative, functional, images of text, complex images and groups, with the right alternative for each, and offers a decision tree | Decision tree |
| WCAG 2.2, success criterion 1.1.1 (Level A) | All non-text content has a text alternative that serves the equivalent purpose, with exceptions. Pure decoration is implemented so that assistive technology can ignore it | Understanding 1.1.1 |
| Google Search Central | Alt text is the most important attribute for image metadata. Google uses it to understand the image, and as anchor text when the image is a link. Its example improves a missing alt to "puppy" and then to "Dalmatian puppy playing fetch" | Image SEO |
| Bing Webmaster Guidelines | Images should reinforce the text of a page and not be the only source of information. Bing asks for descriptive file names, alt text and captions, transcripts or structured data | Guidelines, section 12 |
Alt text is one of several image signals. File names, formats, sitemaps and structured data are covered in the guide to image SEO for product pages.
How long alt text should be#
There is no official limit. The HTML standard, WCAG 1.1.1 and Google's image documentation state no maximum number of characters. What the sources do say:
- W3C: keep the text alternative as concise as possible. If more than a short phrase or sentence is needed, use a long description.
- Shop systems set their own limits. Shopify's help page gives a maximum of 512 characters and recommends 125 or fewer. That is one vendor's limit and advice, not a web standard.
- Screen readers: the standards read for this page state no length at which a screen reader stops reading alt text. A figure such as 125 characters appears in none of them.
The examples above have between 50 and 110 characters. That is enough for brand, model, type, variant and view.
Where alt text lives in shop systems and feeds#
On the page, alt text is the alt attribute of the img element:
<img src="/images/northpeak-trail-runner-2-forest-green-side.jpg"
alt="Northpeak Trail Runner 2 men's trail running shoe in forest green, side view"
width="1500" height="1500">In a shop system you do not write that attribute by hand. In general terms the field sits in one of three places:
| Place | What to look for | Example from a vendor's own page |
|---|---|---|
| The image or media record of a product | A field "alt text" or "alternative text" on each image | Shopify: "Add alt text" on the product's media item |
| The product import and export file | One alt text column next to each image URL column | Shopify's CSV column "Image alt text"; see the Shopify product CSV |
| A marketplace's product data | An alt text field per picture, where the marketplace offers one | Kaufland's picture.alt_text next to picture.url |
Shopping feeds are different. As of November 2026, Google's product data specification has attributes for the image URLs (image_link, additional_image_link, lifestyle_image_link) and none for alt text. What Google asks of the image file itself is in Google Shopping image requirements, and the rules of other channels are compared in product image requirements.
Two checks before you fill thousands of fields: whether your theme prints the field into the alt attribute (view the page source), and whether variant images carry the alt text of their own variant. How variants and their images hang together is explained in product variants.
One alt text per language#
Alt text is content of the page, so each language version of a product page needs its own. A German page with English alt text reads in two languages to a screen reader user. Translate the alt text together with the title and description, and keep model names and color names consistent with the rest of that language version. If you run several language versions, the guide to hreflang for online shops explains how to mark them up. The generator on this page writes each alt text in 12 languages from the same image.
The EU accessibility law for e-commerce#
The European Accessibility Act is Directive (EU) 2019/882. What its text says about online shops:
| Question | What the directive says | Where |
|---|---|---|
| Does it cover online shops? | It applies to e-commerce services provided to consumers after 28 June 2025 | Article 2(2)(f) |
| What is an e-commerce service? | A service provided at a distance, through websites and mobile device-based services, by electronic means and at the individual request of a consumer, with a view to concluding a consumer contract | Article 3(30) |
| Since when? | Member States apply their national measures from 28 June 2025 | Article 31(2) |
| What does it ask for? | Services must supplement any non-textual content with an alternative presentation of that content, and make websites and mobile applications perceivable, operable, understandable and robust | Annex I, Section III (b)(vi) and (c) |
| Who is exempt? | Microenterprises providing services: fewer than 10 persons and an annual turnover or balance sheet total of no more than EUR 2 million | Article 4(5), Article 3(23) |
| What content is left out? | Among others, third-party content that the operator neither funds, develops nor controls, and archives not updated after 28 June 2025 | Article 2(4) |
| Is there a hardship clause? | The requirements apply only as far as they do not impose a disproportionate burden; the operator has to assess and document this | Article 14 |
The directive does not use the words "alt text". An alt attribute is the usual way to give an image on a web page an alternative presentation. A directive binds Member States, so the law that applies to your shop is the national law of the country you sell in. Marketplaces have started to ask for the field: Kaufland's product data guideline says alt text for product images has been a legal requirement since June 2025. This page explains the text of the directive; it is not legal advice.
Alt text for thousands of images#
Nobody writes 20,000 alt texts by hand. Split the work the way the formula is split: three parts come from data you already have, and one part needs a look at the image.
- Take brand, model, product type and variant from the product record. A template such as
{brand} {model} {product type} in {color}fills these for every image of a variant. - Classify each image. Main packshot, alternative angle, detail, in-use scene, packaging, chart or infographic. Many shops already encode this in the image position or the file name.
- Add what the image shows. The view for packshots, the part for details, the scene for in-use images. This is the step where a model that looks at the image helps; the generator on this page does it for single images.
- Copy text out of text images. For infographics, take the facts from the product record, not from a guess at the pixels, and check that image and record agree.
- Set decoration to empty and give functional images (swatches, zoom buttons) the action as alt text.
- Review a sample per image type before you import, then spot-check the page source after the import.
To see where a shop stands before starting, the product page checker scores up to 30 of a shop's products on the data channels and assistants need, alt text included.
Common mistakes#
- The same alt text on every image of a product. A screen reader user hears the product name eight times and learns nothing about the eight images.
- The product title pasted in as alt text. It names the product and misses the view.
- File names as alt text.
IMG_4821.jpgdescribes nothing. - Keyword lists. Google names this as a practice that may get a site treated as spam.
- No alt attribute at all on decorative images. Use
alt="", so that the file name is not read out. - Text only in the image. A size chart without a text table leaves out screen reader users, search engines and every channel that reads your product data.
- Alt text in the wrong language on translated pages.
How alt text fits with the other parts of a product page is covered in product page SEO.
Where Central helps#
Central researches the product data a listing needs from your own data, the open web and verified databases, and backs every value with sources you can check. Texts for a listing are written from that verified product record within each channel's limits, so the brand, model, product type and variant that an image description starts from are facts with a source. What the sources do not support is held back, and when a fact behind a text changes, Central flags the text.
Questions
How do you write alt text for a product image?
Name the product with brand, model and product type, add the variant the image shows (for example the color) and end with the view or the detail this image adds, such as side view or outsole. Leave out "image of" and do not list keywords. Example: Northpeak Trail Runner 2 men's trail running shoe in forest green, side view.
How long should alt text be?
There is no official limit. The HTML standard, WCAG and Google's image documentation state no maximum. W3C advises keeping alt text as concise as possible and using a longer description elsewhere when a short phrase or sentence is not enough. A shop system may set its own limit: Shopify allows 512 characters and recommends 125 or fewer.
When should alt text be empty?
When the image is purely decorative or repeats what the text next to it already says. The HTML standard and W3C both ask for an empty alt attribute (alt="") in that case, so that assistive technology skips the image. Leaving the attribute out is different: W3C notes that some screen readers then announce the file name.
Does alt text help SEO?
Google says it uses alt text, together with the content of the page, to understand what an image shows, and uses it as anchor text when an image is a link. Google also warns against filling alt attributes with keywords. Bing's guidelines list alt text among the things that help it understand images.
Is alt text required by law for online shops in the EU?
Directive (EU) 2019/882 has applied to e-commerce services provided to consumers since 28 June 2025. Its Annex I asks services to supplement non-textual content with an alternative presentation and to make websites perceivable, operable, understandable and robust. Microenterprises that provide services are exempt. The national law of each Member State sets the details; this is not legal advice.
Sources
- HTML Standard: Requirements for providing text to act as an alternative for images (4.8.4.4)WHATWGchecked 23 November 2026
- Images Tutorial: An alt Decision TreeW3C Web Accessibility Initiativechecked 23 November 2026
- Images Tutorial: Decorative ImagesW3C Web Accessibility Initiativechecked 23 November 2026
- Images Tutorial: Images of TextW3C Web Accessibility Initiativechecked 23 November 2026
- Images Tutorial: Complex ImagesW3C Web Accessibility Initiativechecked 23 November 2026
- Images Tutorial: Groups of ImagesW3C Web Accessibility Initiativechecked 23 November 2026
- Images Tutorial: Tips and TricksW3C Web Accessibility Initiativechecked 23 November 2026
- Understanding Success Criterion 1.1.1: Non-text Content (WCAG 2.2)W3Cchecked 23 November 2026
- Image SEO best practicesGoogle Search Centralchecked 23 November 2026
- Bing Webmaster GuidelinesMicrosoft Bingchecked 23 November 2026
- Directive (EU) 2019/882 on the accessibility requirements for products and services (European Accessibility Act)EUR-Lexchecked 23 November 2026
- Adding alt text to product mediaShopify Help Centerchecked 23 November 2026
- Using CSV files to import and export productsShopify Help Centerchecked 23 November 2026
- Product data guidelineKaufland Global Marketplacechecked 23 November 2026
- Product data specificationGoogle Merchant Center Helpchecked 23 November 2026