Product Image SEO: Alt Tags, File Names, and Compression That Pull Traffic From Google Images
⏱ 10 min read
Most Shopify stores upload a product photo called IMG_4821.jpg, leave the alt text blank, and push a 3 MB file live. Then they wonder why Google Images sends them almost nothing. Product image SEO is the discipline that fixes all three problems at once, and it is one of the most under-worked levers in ecommerce.
The stakes have grown. Google reports that Lens is now used for nearly 20 billion searches a month, and that 20% of them are shopping-related. Meanwhile, on more than 70% of web pages the largest element in the first screen is an image, which means your product photo usually is your Largest Contentful Paint. Get images right and you win discovery and speed together. Get them wrong and you lose both.
Why Product Image SEO Now Decides Ecommerce Discovery
Image search is a purchase channel, not a vanity metric. A shopper who finds your product in Google Images or through Lens has already seen the item and is deeper in the funnel than a typical text searcher. That intent is why ecommerce has more to gain from image SEO than almost any other content type.
There is a second payoff that most guides ignore: speed. Images routinely make up the largest share of a Shopify page’s weight, and a single uncompressed product photo can weigh several megabytes when it should weigh a few hundred kilobytes. Because the product image is so often the LCP element, compressing it is one of the fastest ways to move Core Web Vitals. Shopify, drawing on its own data across millions of transactions, reports that even a half-second speed improvement can increase conversion, though it does not publish a single fixed figure. If you run a serious catalogue, a proper Shopify SEO agency will treat images as a ranking and a revenue asset, not decoration.
Compress every product image before upload and rename the file. Those two habits improve Google Images visibility and page speed at the same time, and they cost nothing but discipline.
What Google Actually Reads on a Product Image
Google does not “see” your photo the way a human does. It infers meaning from a stack of signals around the image. Understanding that stack tells you exactly where to spend effort.
- The file name. The words in the file become part of the image URL and give Google an early clue about the subject.
- The alt attribute. The primary text description of the image, used for both accessibility and search context.
- Surrounding page content. Google’s image SEO guidelines state plainly that it extracts subject matter from nearby text, captions, and titles, so place images next to the copy that explains them.
- Structured data. Product or ImageObject markup can earn a rich result or badge in Google Images.
- The image sitemap. A dedicated feed that helps Google discover images it might otherwise miss on large stores.
Every section below maps to one of these signals. None of them requires an app. All of them require intent.
How to Label Images for SEO: The Short Version
If you only need the quick answer, labelling an image for SEO means giving it three kinds of text and putting it in the right place on the page. Google’s image guidelines name all three, and the sections below go deeper on each.
| Label | What to do | What Google says (as of October 2026) |
|---|---|---|
| File name | Short, descriptive, hyphenated | Use descriptive file names instead of generic ones like IMG00023.JPG |
| Alt text | Describe the image in context | The most important metadata attribute; informative, no keyword stuffing |
| Nearby text | Place the image beside copy about the same subject | Captions, image titles and surrounding text help Google understand the subject |
Do those three on every product image and you have covered the labelling part of image SEO. The remaining sections cover delivery, markup and discovery.
How to Write Alt Text That Ranks and Stays Accessible
Alt text serves two masters at once. Screen readers read it aloud to describe the image, and search engines use it to understand context. Write it for a person first and the SEO value follows. WebAIM’s alt text guidance is blunt on the core rule: describe the meaningful content or function of the image, and skip filler like “image of” or “photo of” because assistive tech already announces that it is an image. Keep it succinct, and include the product name plus one natural keyword. Around 125 characters is a common rule of thumb rather than a Google limit, so treat it as a guide, not a hard cap.
This matters more than store owners think. In WebAIM’s 2026 audit of the top one million home pages, 16.2% of all images were still missing alt text, which is both a compliance risk under laws like the European Accessibility Act and a wasted ranking signal.
Here is what weak and strong alt text looks like side by side on a real product.
| Context | Weak alt text | Strong alt text |
|---|---|---|
| Main product image | jumper | Navy merino wool crew jumper, front view |
| Detail shot | (left blank) | Close-up of ribbed cuff on navy merino jumper |
| Collection banner | banner | Womens knitwear collection, autumn 2026 range |
| Keyword stuffed | jumper wool jumper buy cheap jumper | Navy merino wool jumper with ribbed cuffs |
Alt Text Patterns for Product Galleries
A product page usually carries several images of the same item. Repeating identical alt text on all of them adds noise for screen reader users and dilutes context for Google. Differentiate by angle or detail instead.
- Main image: “Navy merino wool crew jumper, front view”
- Second angle: “Navy merino wool jumper, back and shoulder seam”
- Detail shot: “Close-up of ribbed cuff on navy merino jumper”
- Lifestyle shot: “Model wearing navy merino jumper with grey trousers”
- Scale or fit: “Navy merino jumper flat lay next to a size guide”
Each description stands alone, names the entity, and reads naturally. That is the pattern that satisfies accessibility auditors and search crawlers together.
The Alt Text Mistakes That Quietly Cost You
- Keyword stuffing. “best running shoes cheap running shoes buy shoes online” hurts accessibility and can be treated as spam.
- Duplicate boilerplate. Every image tagged “Product image” tells Google and users nothing.
- Describing decoration. A purely decorative divider or background flourish should use an empty
alt=""so screen readers skip it.
Alt text at scale is a different job from alt text on ten products. Write a pattern once (product name, colour or material, angle), apply it to the whole catalogue, then hand-edit the best sellers. Our guide to optimising 10,000 products without rewriting every description shows how to template the work without producing duplicate boilerplate.
On Shopify, set alt text in Products, then the image, then Edit alt text. For collection banners and blog images, set it in the theme editor or the media library. These non-product images rank for broader queries and get forgotten most often.
File Naming: The Signal Most Stores Overwrite
Camera and phone exports arrive as DSC_0042.jpg or Screenshot-2026.png. Those names carry zero meaning. Shopify keeps your original filename in the CDN image URL, so a descriptive name becomes a permanent, crawlable signal. Rename the file before you upload. Shopify does let you rename a file later from Content > Files by editing its URL handle, but its Help Center warns that the previous URL then stops working (as of October 2026), so getting the name right at upload is far simpler.
Use lowercase words separated by hyphens, describe what is in the frame, and include the product and one attribute. Keep it short enough that it does not get truncated.
IMG_4821.jpgbecomesnavy-merino-wool-jumper-front.jpgDSC_0042.jpgbecomesoak-dining-table-4-seater.jpgScreenshot-2026-03-11.pngbecomessize-chart-mens-trainers.pngfinal_v2_edited.jpgbecomesceramic-pour-over-coffee-set.jpg
Underscores and spaces are worse than hyphens because search engines read hyphens as word separators. This is a five-second habit that compounds across thousands of SKUs.
Compression and Format: What Shopify Does, and What It Leaves to You
Shopify’s CDN, delivered through a global edge network, does more than most owners realise. When you use the image_url Liquid filter, Shopify’s Help Center says its image service picks the best format each customer’s browser supports (as of October 2026), so modern browsers usually receive a modern format such as WebP or AVIF instead of your original JPEG or PNG. Both are generally much smaller than JPEG at comparable quality. Shopify’s developer documentation adds that the CDN might re-encode an image or negotiate a different output format, so verify the response in DevTools instead of assuming.
Here is the trap almost every competing guide glosses over: Shopify accepts large uploads (up to 20 MB per Shopify Help, as of October 2026) and generates the sizes your theme needs from the file you give it, so a bloated source is a bad starting point. So format conversion is handled for you, but source compression is still your job.
| Format | Best use | Size vs JPEG | What it means for you |
|---|---|---|---|
| JPEG | Photos, product shots | Baseline | Safe source upload; the CDN converts it |
| PNG | Logos, transparency | Larger | Avoid for photographic product images |
| WebP | Almost everything | Smaller | Usually served to modern browsers |
| AVIF | Photos at low bitrate | Often smallest | May be served where Shopify’s format selection chooses it |
An illustrative example (your files will differ) makes the target obvious. A 4000 by 3000 px photo straight off a camera can weigh 6 MB. Resized to 2048 px on the long edge and exported at JPEG quality 82, the same image drops to roughly 180 KB with no visible loss, and Shopify then serves that as an even smaller WebP or AVIF. That is a reduction of roughly 97% in this example before the CDN even gets involved.
As a practical rule of thumb, and not a fixed Google requirement, upload a source no larger than about 2048 px on the long edge, export at JPEG quality 80 to 85, and aim for product images under 200 KB, hero and LCP images under about 150 KB, and thumbnails under 30 KB. Treat these as working targets rather than official limits. Squoosh and TinyPNG handle this for free on smaller catalogues. Larger libraries justify an app that hooks into the upload pipeline. Slow, heavy images are exactly what a Shopify store design review flags first.
If you serve images from metafields or a headless build, Safari can request a WebP URL and still receive a heavier PNG or JPEG. Pipe metafield images through image_url and verify the response content-type in DevTools so a 150 KB file does not silently balloon to over 1 MB.
Shopify Image Limits and Upload Settings (as of October 2026)
Before you tune anything, know the platform’s boundaries. Shopify Help documents these for product images:
- Maximum size: 20 MB per file and 5000 x 5000 px (25 megapixels).
- Recommended size: 2048 x 2048 px for square product images usually displays best.
- Accepted formats: PNG is best for most product images, followed by JPEG. TIFF, BMP, GIF, SVG, HEIC and WebP are also accepted.
- Generated sizes: Shopify creates different sizes of each image for different parts of the theme, such as a large version for the product page and a compact one for collections.
- Width requests: With
image_urlyou can request widths up to 5760 px, and an image is never enlarged beyond its original dimensions.
Two practical points follow. First, the 2048 px recommendation matches the upload target used in this guide, so there is no reason to upload the 5000 px original. Second, because an image is never enlarged, uploading a small file and asking for a large width gives you a soft image, which hurts both thumbnails in Google Images and conversion. For a deeper look at formats and the CDN, see our guide to Shopify image optimisation with WebP and AVIF.
Responsive Delivery, Lazy Loading, and Your LCP Image
Serving one desktop-sized image to every device wastes bandwidth and drags mobile Core Web Vitals down. Modern Shopify themes use the srcset and sizes attributes so a phone downloads a 400 px file while a desktop gets 1200 px from the same source. Request specific widths with the Liquid filter, for example | image_url: width: 800.
Three technical moves separate a fast product page from a slow one:
- Lazy load below-the-fold images with
loading="lazy"so off-screen gallery shots do not block the first paint. - Prioritise the LCP image with
fetchpriority="high"and a preload hint. Never lazy load your main product image, because that delays the very element Google measures. - Set explicit width and height or an aspect-ratio container so the layout does not jump as images load, which protects your Cumulative Layout Shift score.
For example, a product gallery might preload the first image and lazy load the rest:
<img src="navy-merino-jumper-front.jpg" width="1200" height="1200"
fetchpriority="high" alt="Navy merino wool crew jumper, front view">
<img src="navy-merino-jumper-back.jpg" width="1200" height="1200"
loading="lazy" alt="Navy merino wool jumper, back and shoulder seam">
Lazy Loading Without Hiding Images From Google
Lazy loading is safe for image SEO when it is done the browser-native way. Google’s guidance says a lazy-loading implementation must load all relevant content whenever it is visible in the viewport, must not depend on a click or scroll interaction, and should not be applied to content likely to be visible immediately. Google’s recommended test is to inspect the rendered HTML in Search Console’s URL Inspection tool and confirm your image URLs appear in the src attribute of the img elements. web.dev gives the same advice for speed: use loading="lazy" on offscreen images, never on the likely LCP image, and add width and height to every img tag.
The common failure on Shopify is a theme or app that swaps src for a data-src attribute and fills it with JavaScript. Check that the real URL sits in src after rendering. Our guides to lazy loading images on Shopify and the Shopify LCP fix walk through both checks.
If your product pages feel heavy despite these fixes, a focused CRO audit will connect the speed loss to the revenue you are leaving on the table.
Structured Data and Image Sitemaps: The Layer Most Stores Skip
This is where you pull ahead of nearly every competing article. Google can display your images in rich results and with badges in Google Images when you provide structured data, and the image attribute is a required field to be eligible. On a product page, that means Product schema with an image array, or ImageObject markup for editorial images. Add the markup to every page an image appears on, even if it is the same image.
A minimal Product image array looks like this, with several angles referenced by their descriptive URLs:
"image": [
"https://cdn.shop/navy-merino-jumper-front.jpg",
"https://cdn.shop/navy-merino-jumper-back.jpg",
"https://cdn.shop/navy-merino-jumper-cuff.jpg"
]
For large catalogues, discovery is the bottleneck. An image sitemap lists your image URLs so Google can find and index them faster, and it may include URLs on a separate CDN domain. IPTC photo metadata embedded in the file is an alternative route to metadata and can qualify images for the licensable badge. Verify your CDN domain in Search Console so crawl errors surface.
Do not assume Shopify’s automatic sitemap covers every gallery image. Shopify Help describes the generated sitemap as linking to your products and the primary product image (as of October 2026), so additional gallery shots are not listed there. Open your products sitemap and check a product with five photos to see it on your own store. If your gallery images matter for search, an image sitemap app or a custom sitemap is the usual gap-filler.
Structured data does not change how your page looks. It changes how Google understands it. A correct Product image array is the difference between a bare thumbnail and a badged, information-rich result in Google Images.
Google Images SEO: The Technical Rules Google Documents
Google’s image guidance (as of October 2026) is short, and most stores break at least one rule. Use it as a technical checklist next to your theme code.
- Use standard image elements. Google finds images in the
srcattribute ofimg, including insidepicture. It does not index CSS background images, so a hero or product image set with CSS is invisible to image search. - Keep a
srcfallback. If you usesrcsetorpicturefor responsive delivery, always include animgwith asrc, since some browsers and crawlers do not understand the other attributes. - Match the extension to the file. Google supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF, so format is not a barrier, but a
.jpgthat is really a WebP file causes confusion. - Pick a representative preview image. Set the page’s main image with
og:imageor schema.orgprimaryImageOfPage, and avoid logos, text-heavy images, extreme aspect ratios and low resolution. - Reuse the same URL. Referencing an image at the same URL across pages lets Google cache it.
- Use sharp images. Google notes that high-quality images look better as thumbnails and can attract more clicks.
- Use data URIs sparingly. They are supported, but inlining images can significantly increase page size.
Treat the list as a diagnostic. Search your theme for background-image on product or collection imagery, check that your galleries render real img tags, and confirm the preview image is a clean product shot rather than a banner with text on it.
Optimising Product Images for Google Lens and AI Visual Search
Visual search has moved from novelty to mainstream, and it is tightly integrated with Google’s Gemini models. When a shopper points Lens at an object or uploads a screenshot, Google matches the visual to indexed images and leans on the same signals you have been optimising: file name, alt text, page context, and image quality. Multimodal AI systems also read alt text and captions to understand what an image shows, which feeds whether your product gets surfaced or cited.
Three things earn visual-search visibility. Use unique, high-quality product photography rather than the manufacturer’s stock shot that a hundred other stores use. Place each image beside descriptive copy about that exact variant. And keep the surrounding page relevant to the image subject. For example, a shopper photographing a friend’s trainers with Lens is far more likely to reach a store whose image is named white-leather-court-trainers.jpg, sits beside a matching product description, and carries Product schema, than one serving IMG_0099.jpg with no context. If you are building this into a broader programme, our AI SEO services treat visual and multimodal discovery as first-class channels.
A Practical Product Image SEO Audit
Run this on your top revenue pages first, then work down the catalogue. It takes under an hour to audit a template and pays back across every product using it.
- Sample the file names. Open a product page, inspect the images, and check the URLs. If you see IMG or DSC strings, your naming convention never happened.
- Check alt text coverage. Spot-check main images, gallery shots, collection banners, and blog images. Blank or duplicated alt text is the most common gap.
- Weigh the images. In DevTools, sort the network panel by size. Any product image over 300 KB or any hero over 200 KB needs recompression.
- Confirm format delivery. Check the response content-type reads image/webp or image/avif on a modern browser.
- Test the LCP element. Run the page through PageSpeed Insights and confirm the LCP image is preloaded, not lazy loaded.
- Validate structured data. Paste the URL into Google’s Rich Results Test and confirm the Product image field passes.
- Verify the image sitemap. Confirm images appear in a sitemap submitted in Search Console.
Fix the template, not the image. Most Shopify image problems live in the theme’s image tags and the upload habit, so correcting those two places propagates the fix across thousands of products at once.
Auditing one template by hand is realistic. Across a catalogue with several themes, apps and markets, it is work a Shopify agency handles as part of technical SEO and speed projects. When the fix lives in theme code, such as image tags, srcset, preload and lazy loading, it belongs with Shopify theme development rather than with the product team.
Conclusion
Product image SEO is not a single tactic. It is a stack: descriptive file names, human-first alt text, aggressive source compression, responsive and prioritised delivery, structured data, and an image sitemap. Shopify hands you format conversion and a fast CDN for free, but the naming, compression, alt text, and markup are yours to own. Do them well and you win two channels at once, higher Google Images and Lens visibility, and a faster store that converts better.
Turn your product images into a discovery and speed advantage
Shopify Speed Audit
Find the heavy images and LCP bottlenecks slowing your product pages down.
Audit my speed →SEO Audit
Uncover missing alt text, weak file names, and image indexing gaps across your store.
Find the gaps →Shopify Marketing Agency
Tie image SEO into a full organic and paid growth programme built on your data.
See how we work →Frequently Asked Questions
Yes. Alt text is one of the main signals Google uses to understand what an image shows, alongside the file name and surrounding text. Descriptive alt text with the product name and one natural keyword improves your chances in Google Images. It also keeps the page accessible for screen reader users.
As a rule of thumb, aim for product images under 200 KB, hero or LCP images under about 150 KB, and thumbnails under 30 KB. Export sources at JPEG quality 80 to 85 and no larger than roughly 2048 pixels on the long edge. Shopify picks the delivery format for each browser, but it works from your upload, so compress the source first.
You do not need to. Shopify’s image service picks the best format each customer’s browser supports (Shopify Help, as of October 2026), so modern browsers usually receive a modern format such as WebP or AVIF. Upload compressed JPEG sources at quality 80 to 85 and check the response content-type in DevTools. Compressing the original file is still your responsibility.
Keep it concise. Around 125 characters is a common rule of thumb rather than a Google limit. Describe what the image shows, include the product name and one relevant keyword, and skip phrases like image of or photo of. For a gallery, vary each description by angle or detail so no two images share the same alt text.
Use lowercase words separated by hyphens that describe the product, such as navy-merino-wool-jumper-front.jpg. Avoid camera defaults like IMG_4821.jpg, spaces, and underscores. Rename the file before uploading: Shopify lets you rename it later in Content > Files, but the previous URL then stops working (Shopify Help, as of October 2026).
Shopify generates a sitemap.xml automatically, and Shopify Help says it links to your products and the primary product image (as of October 2026), so extra gallery images are not included. An image sitemap app or a custom sitemap can list them, and it may include URLs on a separate CDN domain, which you should verify in Search Console.
Yes. Google Lens matches a photo or screenshot against indexed images using file names, alt text, page context, and image quality. Unique, high-quality product photography placed next to descriptive copy about that exact variant gives Lens the strongest signals to surface your product in visual search results.
No. Purely decorative images such as dividers or background flourishes should use an empty alt attribute, written as alt equals two quotation marks with nothing between them, so screen readers skip them. Informative and product images always need descriptive alt text. Missing alt causes a screen reader to announce the filename instead.
Give every image a short, descriptive, hyphenated file name, informative alt text that describes the image in context, and place it next to text about the same subject. Google calls alt text the most important metadata attribute and warns against keyword stuffing (as of October 2026).
Shopify Help lists a maximum of 5000 x 5000 px and 20 MB per image, with 2048 x 2048 px recommended for square product images. PNG and JPEG are preferred, and TIFF, BMP, GIF, SVG, HEIC and WebP are also accepted (as of October 2026).
Not when done correctly. Google says lazy-loaded content must load whenever it is visible in the viewport without needing a click or scroll, and images likely to show immediately should not be lazy loaded. Keep the real image URL in the src attribute and never lazy load your main product or LCP image.
Yes. Google supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF in the src attribute of image elements (as of October 2026). Make sure the file extension matches the actual file type, and keep a src fallback if you use srcset or picture.