Skip to the answer

How to write alt text for product images

By Nation 9 min read

Quick answer

To write alt text for a product photo, describe what a shopper needs to know from the image in one short phrase: the product, its material or color, and the detail the photo shows. The W3C asks for a brief description of the image that conveys its meaning, and Shopify recommends 125 characters or less. Leave the alt text empty for decorative images, and never fill it with a list of keywords.

Nation, an AI store builder, publishes this page. It is open: describe what you make in the app onboarding and the store builds itself. See where Nation fits.

How to write alt text: the short version

Alt text is the written description attached to an image on a web page. Screen readers read it aloud to shoppers who cannot see the photo, browsers show it when the image fails to load, and search engines read it to work out what the image shows.

For a product photo, good alt text answers one question: what would a shopper miss if this picture were gone? Name the product, then the details the photo shows that the product title does not, such as color, material, size on the body or the angle. The W3C Web Accessibility Initiative asks for a brief description of the image that conveys its meaning, and says the text should convey the meaning or content shown, which is usually not a literal description of the image.

Google's image guidance points the same way. Google calls alt text the most important attribute for giving Google metadata about an image, and uses it together with computer vision and the contents of the page to understand what an image shows.

  1. Start with the product type: ring, linen dress, soy candle.
  2. Add the details that matter for buying: material, color, finish, pattern, scent cue or size cue.
  3. Add what this particular photo shows: worn on a model, the back view, the clasp up close, the candle lit.
  4. Stop there. Skip "image of", the shop name and lists of search terms.

Decorative or informative: which images need alt text

Not every image needs a description. The W3C alt decision tree sorts images by what they do on the page, and the answer changes what you write. Most product photos are informative. Background textures, divider graphics and lifestyle banners that only set a mood are usually decorative.

What to put in the alt attribute, by image type (W3C WAI decision tree)
Image typeWhat the alt text should beShop example
Informative photoa brief description of the image that conveys its meaningProduct photo showing color and material
Purely decorative imagean empty alt attributeBackground texture behind a collection title
Image that repeats nearby textan empty alt attributeProduct photo beside a caption that already describes it
Image that contains textthe text shown in the imageSale banner with the offer written in the graphic
Image used as a link or buttonthe destination of the link or the action takenCategory tile that links to the candles collection
Chart or size guideAlt text cannot hold it all: put the information from the image elsewhere on the pageSize chart image; also publish the sizes as a text table

An empty alt attribute is different from a missing one. Empty alt text tells a screen reader to skip the image. If the alt attribute is missing, the W3C notes that some screen readers will announce the file name of the image instead, so every image should have either a description or an empty alt attribute.

What to leave out of alt text

Short alt text is easier to listen to. A shopper using a screen reader hears every word, on every image, so anything that does not help them choose the product gets in the way.

  • "Image of" or "photo of". The W3C notes that screen readers announce the presence of an image, and Squarespace's guide says to leave out "photo" or "picture".
  • The product title word for word, when the title is right next to the photo. Describe what the photo adds instead.
  • Keyword lists. Google warns that keyword stuffing is a negative user experience that may cause your site to be seen as spam.
  • Claims you cannot see, such as "best seller" or "premium quality". Alt text describes the picture.
  • Prices and discounts, unless the image is a graphic whose only content is that offer.

How long alt text should be

Most product photos need one phrase or one short sentence. The W3C says informative images carry information that can be expressed in a short phrase or sentence. The platforms put numbers on it, and they differ a little.

If you need more than that, the information probably belongs in the product description, where every shopper can read it. A detailed size chart or care chart should be written out as text on the page, because the W3C's advice for complex images is to put the information from the image elsewhere on the page.

Alt text length guidance by platform
PlatformRecommended lengthHard limit
Shopify125 characters or less512 characters
Etsyup to 250 charactersNot stated
Squarespaceusually 150 to 200 characters200 characters for product images
WixNot statedNot stated

Shorter is usually better. A phrase that fits Shopify's recommendation also fits every other platform in the table.

Alt text for product images: jewelry, clothing and candles

The examples below are written for made-up products. Each one names the product, the buying details the photo shows, and what is different about that photo. The weak versions show the common mistakes.

Example alt text for product photos (made-up products)
PhotoWeak alt textBetter alt text
Jewelry, main photoringSterling silver stacking ring with a hammered finish, shown on a white background
Jewelry, on the handring silver ring handmade ring jewelry giftHammered silver ring worn on the index finger next to a plain band
Jewelry, detailIMG_2041Close-up of the lobster clasp and maker's stamp on a gold-fill chain
Clothing, frontdressRust linen midi dress with a square neckline and short puff sleeves, front view
Clothing, on a modelimage of model wearing dressModel walking in the rust linen dress, showing the side slit and loose fit
Clothing, fabricfabricClose-up of the washed linen texture and the coconut shell buttons
Candle, main photocandleSoy candle in an amber glass jar with a wooden lid and a kraft label
Candle, litbest candle cozy candle gift for herThe amber jar candle lit, with an even melt pool and a wooden wick
Candle, scalecandle sizeThe candle held in one hand to show its size

Write one alt text per photo, not one per product. If five photos of the same dress all carry the same alt text, a screen reader user hears the same sentence five times and learns nothing about the back view or the fabric.

Where to add alt text on Shopify, Etsy, Squarespace and Wix

Each platform has its own field for image alt text. The steps below follow each platform's own help pages.

  1. Shopify

    In the Shopify admin, go to Products, then the product, then a media item, then Add alt text. Shopify allows up to 512 characters and recommends 125 characters or less. For many products at once, alt text can also be uploaded in a CSV file. Shopify notes that the media editor might suggest alt text for images that have none; read a suggestion before you accept it, because it describes the picture without knowing your product.

  2. Etsy

    On Etsy.com, go to Shop Manager, then Listings, then a listing, then the photo, then the Alt text section, then choose Apply. The field is available to shops whose default language is set to English. Etsy asks you to keep the description to up to 250 characters and to describe describe what the item looks like, its texture and its scale next to other items in the photo. Etsy also says Etsy might add alt text to US sellers' listing images, but does not change images that already have alt text, so check what it wrote on your listings.

  3. Squarespace

    Open the product editor: Images, then the ••• menu on the image, then Edit Metadata, type the alt text, click Apply and then Save. Product images take up to 200 characters. Squarespace suggests short terms that describe the specific image as well as the product, so give each photo of a product its own description.

  4. Wix

    In Wix Stores, go to Products in the dashboard, then the product, then the More Actions icon in Images & Videos, then Edit Alt Text for Images, enter the text and click Done. Wix offers an optional Copy to all images icon applies the same text to every image of the product. Use it only as a starting point, then give each photo its own description.

What Google Search says about image alt text

Google's image SEO documentation on Search Central is the official word on alt text and search. It calls alt text the most important attribute for giving Google metadata about an image and says Google uses it together with computer vision and the contents of the page to understand what an image shows.

Google asks for alt text that is useful, information-rich text that uses keywords appropriately and fits the page. In practice that means the words a shopper would use for the product, written once, in a sentence that describes the photo. The same page recommends image file names that are short but descriptive, so rename IMG_2041.jpg to something like silver-hammered-stacking-ring.jpg before you upload it.

Alt text helps Google understand an image; it does not replace a clear product title, a written description and photos placed near the text they belong to.

Where Nation fits

Nation

Category: an AI store builder

Publisher

Nation says one description of what you make builds the store, then agents handle orders, customers and delivery and run ads, content and social posts, with you approving the work. This page explains alt text on the platforms sellers use today.

Limits today

  • Status: open: describe what you make in the app onboarding and the store builds itself.
  • Pricing and fees: from $39 a month plus a 2% fee per sale, with a 14-day trial for $1.
  • Shopper marketplace: no shopper marketplace has been announced.
  • Track record: no independent reviews or public stores yet.

Nation publishes this page. The guidance comes from the W3C, Google and each platform's own help pages.

Describe what you make

Questions about writing alt text

How do you write alt text for product images?

To write alt text for a product image, name the product, add the buying details the photo shows, such as color, material or fit, and say what this photo shows that the others do not. Keep it to one short phrase or sentence, and skip "image of" and keyword lists.

How long should alt text be?

Alt text should usually be one short phrase or sentence. Shopify allows up to 512 characters and recommends 125 characters or less. If a photo needs a longer explanation, such as a size chart, put that information in the product description or as text on the page.

Do decorative images need alt text?

Decorative images need an empty alt attribute rather than a description. The W3C alt decision tree says that for an image that is purely decorative or not intended for users, you should use an empty alt attribute. Leaving the attribute out is worse, because some screen readers will announce the file name of the image instead.

Does alt text help SEO?

Alt text helps search engines understand images. Google calls alt text the most important attribute for giving Google metadata about an image and uses it with computer vision and the page content. Google also warns that keyword stuffing in alt attributes is a negative user experience that may cause your site to be seen as spam, so describe the photo in plain words.

Where do I add alt text in Shopify?

In Shopify, you add alt text from the product page in the admin: go to Products, then the product, then a media item, then Add alt text, type the description and save it. Shopify also notes that alt text can also be uploaded in a CSV file, which helps when you need to update many products at once.

Describe what you make

Nation is an AI store builder. It is open: describe what you make in the app onboarding and the store builds itself. Describe what you make and continue in the app.