To write alt text for a Shopify product photo, describe what the photo shows, name the product by its exact title, and add the color or detail that sets this photo apart. Keep it to about 125 characters, as Shopify recommends, and save the brand name for the main shot and the packaging. Add it once, on the image itself, in your Shopify admin.
That one line does three jobs. Screen readers read it out in place of the photo, Google uses it to understand the image, and it's part of the page text that crawlers download, including the ones behind AI search. Here's how to write it, photo by photo, and how to find the photos that still need it.
What alt text is for
The W3C's images tutorial says images need text alternatives that "describe the information or function represented by them." WCAG 2.2 success criterion 1.1.1 asks for one that "serves the equivalent purpose." For a product photo, that purpose is showing the shopper what they would be buying.
Google's image SEO best practices say Google reads alt text alongside computer vision and the rest of the page to understand an image. Google asks for "useful, information-rich content that uses keywords appropriately," and warns that alt text stuffed with keywords can make your site look like spam.
AI search changes less than you might expect. Google says AI Overviews and AI Mode need no special optimization beyond its usual SEO advice. ChatGPT's search reads pages with a crawler called OAI-SearchBot, and alt text is in the HTML it downloads, but OpenAI doesn't say how it uses alt text. Write for people first. Our post on what AI search needs from a Shopify Plus catalog covers the rest.
Where alt text lives in Shopify
Alt text belongs to the image, not the page. Shopify stores each product photo as a file, and says edits made on its Files page apply everywhere a file is used. Write it once and it follows the photo.
To add alt text to a product photo:
- In your Shopify admin, go to Products and open the product.
- Click a photo to open its preview.
- Click Add alt text, enter it, then click Save alt text.
For banners and other section images, go to Content > Files, open the file, fill in the Alt text field under Edit information and click Save.
How to write alt text, photo by photo
Our examples use a made-up product: the Speckled Stoneware Mug from a brand we'll call Harbor Kiln, sold in Sage and Charcoal.
The main shot
Name the brand and the product's exact title, accents and ampersands included, then say what the photo shows.
- Weak: "mug"
- Better: "Harbor Kiln Speckled Stoneware Mug in Sage, front view"
Variant photos
Name the color the photo shows, in the same words your color picker uses. A shopper who picked Charcoal should hear Charcoal.
- Weak: "Speckled Stoneware Mug" on every color
- Better: "Speckled Stoneware Mug in Charcoal, side view of the handle"
Lifestyle shots
Describe the scene with the product in it. The brand can drop out here: the photo is about using the mug.
- Weak: "Harbor Kiln lifestyle"
- Better: "Speckled Stoneware Mug in Sage, full of coffee on a desk beside an open notebook"
Detail shots
Name the detail, because it's the reason the photo exists.
- Weak: "Speckled Stoneware Mug detail"
- Better: "Close-up of the Speckled Stoneware Mug's matte glaze with brown speckles"
Packaging
When the box or label is the subject, the brand is part of what the photo shows.
- Weak: "box"
- Better: "Harbor Kiln gift box with the Speckled Stoneware Mug inside, label facing forward"
Images with text in them
The W3C's alt decision tree says that when text appears only in the image, the alt should include it. A badge reading "Dishwasher and microwave safe" needs those words in its alt. If the same words already appear next to it as real text, the badge can take an empty alt.
A dimensions drawing holds too much for alt text. The W3C's advice is to put that information on the page as text and keep the alt short: "Speckled Stoneware Mug dimensions, listed below."
Decorative images
The W3C describes decorative images as ones that "don't add information to the content of a page." They get an empty alt (alt=""), so screen readers skip them. Leaving alt out of the code is different: some screen readers read the file name instead.
In Shopify, decorative images are usually theme graphics, such as a background texture or an icon beside its own label, and your developer sets the empty alt in code. Product photos are almost never decorative.
What not to do
- Don't start with "image of" or "photo of." Screen readers already announce an image, and the W3C's tips say words like "image" and "picture" are usually unnecessary.
- Don't use the file name. "IMG_4821.jpg" tells nobody anything. Google says a descriptive file name gives it "very light clues," so name files well, but write the alt separately.
- Don't list keywords. "mug, coffee mug, stoneware mug, gift" is the stuffing Google warns about.
- Don't repeat one alt on every photo. Six photos that all say "Speckled Stoneware Mug" don't tell a screen reader user how they differ.
- Don't put the brand on every image. Your whole site is your brand; the main shot is enough.
Why a blank alt can look filled in
Shopify's Horizon theme passes each product photo's own alt text to the page, on product pages and in product cards. When that alt is blank, Liquid, Shopify's theme language, returns the product title instead.
We saw this on a live store this month, on a theme that reads alt the same way: a product whose photos all had blank alt in the admin showed its title on every photo. A scan that only checks whether alt exists passes it, but every photo reads the same. So check alt text in your admin, where a blank field looks blank.
How to find photos with missing alt text
Start with your best sellers, clicking through each one's photos in the admin. Content > Files has an Alt text filter too, but Shopify notes that photos uploaded straight to a product might not appear there.
A developer can list every product photo and its alt text with a read-only GraphQL Admin API query, using the read_products scope:
query MissingAlt($cursor: String) {
products(first: 50, after: $cursor) {
nodes {
title
media(first: 20, query: "media_type:IMAGE") {
nodes {
... on MediaImage { id alt }
}
}
}
pageInfo { hasNextPage endCursor }
}
}
Any alt that comes back empty or null needs writing. Pass endCursor back in as $cursor for the next page.
To write the alt text, use the fileUpdate mutation with the write_files scope. It works on product photos and Files images alike, and Shopify points developers to it in place of the deprecated productUpdateMedia.
Shopify's product CSV also has an image alt text column. Test an import on a few products first: Shopify says a blank column that isn't required overwrites the value already in your store.
Questions we hear
How long should alt text be?
Usually one sentence. Shopify recommends 125 characters or fewer and allows 512. The W3C's tips ask for "the most concise description possible of the image's purpose," with the most important information first.
Can I let AI write my alt text?
As a first draft. Shopify's media editor might suggest AI-written alt text for an image that has none, and you can accept, edit or replace it. Look at the photo, then check that the suggestion uses the exact title and the color shown.
Does every photo of a product need different alt text?
Yes, if they show different things. Name what changes: the color, the angle, the detail or the setting.
Do product videos need alt text?
Shopify lets you add alt text to videos too, but it doesn't replace captions for what's said, or a text description of what a silent video shows. Our guide on how to add captions to a Shopify video covers the captions.
Braun Design Co is a boutique Shopify Plus partner in Austin. Custom themes, migrations, and accessibility and ADA compliance work for brands that already sell.
If your catalog has hundreds of photos with blank or repeated alt text, we can find them and write alt text that describes each one. Book a 30-minute call.