Image SEO for product photos: file names, alt text and speed

Google understands a product photo mostly from the words around it: the file name, the alt text, the caption and the page it sits on. Name files plainly, write alt text that describes the exact product, use a normal img tag, serve light modern formats, and mark up your product images, and your photos can show up in Google Images, Search and Lens.
Why image SEO matters for sellers
Shoppers don't only search with words. They scroll Google Images, tap a product in a photo, or point their camera with Lens. Each of these needs Google to know what is in your photo and which page sells it. Google can't read a picture the way a person does, so it leans on clues you give it. The good news: the clues are simple, free, and done once per product.
Everything below follows Google Search Central's image guidance, which is the most reliable source on what Google actually uses.
1. Use a normal image tag
Google finds images in the src of an <img> element, including one inside <picture>. It does not index images set as CSS backgrounds. Some store themes show product photos as backgrounds for styling. If your main product photo is a CSS background, Google may never index it. Most Shopify, WooCommerce and Wix themes use proper image tags for product galleries, but check custom sections and banners.
2. Name the file for what it shows
Google recommends short, descriptive file names over generic camera names. Compare:
- Weak:
IMG_20261104_183022.jpg,photo1.jpg,final-final2.jpg - Good:
brass-diya-with-peacock-handle.jpg,blue-block-print-cotton-kurta-front.jpg
Rename before you upload, because many platforms keep the original name in the image URL. Use hyphens between words. If you sell in another language, Google suggests translating file names too.
3. Write alt text that describes this exact product
Alt text is the short description in the alt attribute. Google calls it the most important piece of image metadata, and it is also what screen readers speak aloud to blind shoppers. Write it for a person first: what would you say if you described the photo over the phone?
Good and bad alt text for products
- Missing:
<img src="ring.jpg">Google and screen readers learn nothing. - Stuffed:
alt="ring gold ring diamond ring buy ring online best ring cheap ring"Google warns against keyword stuffing like this, and it is useless to a listener. - Vague:
alt="ring"True, but it could be any ring. - Good:
alt="18k yellow gold solitaire ring with round lab-grown diamond, side view"
More examples in the same spirit:
- A kurta:
alt="Indigo block-print cotton kurta with mandarin collar, back view" - A lamp:
alt="Handmade terracotta table lamp with cream linen shade, switched on" - A shoe:
alt="Tan leather brogue shoe, right foot, seen from above"
Tips: mention colour, material and the view (front, back, detail) because shoppers search with those words. Give each angle its own alt text rather than repeating the same line on every photo. Don't start with "image of"; screen readers already say it's an image. If a photo is purely decorative, an empty alt="" is correct.
4. Put the photo near words about it
Google also reads the text around an image: captions, the product title, headings and nearby paragraphs. A product photo on a page that names and describes that product sends a much stronger signal than the same photo in a slider of unrelated items. Keep each product's main images on its own product page, close to the title and description.
5. Add Product structured data with images
Product structured data (schema.org markup, usually JSON-LD) tells Google which images belong to which product, with price and availability. For merchant listings, image is a required property. Google recommends several high-resolution images in 16:9, 4:3 and 1:1, each at least 50,000 pixels when you multiply width by height, and says clear shots on a white background are preferred. The image URLs must be crawlable and indexable.
Shopify and most WooCommerce SEO plugins add this markup automatically. Check yours with Google's Rich Results Test. If you also have a 3D model, the markup can point to it, but it doesn't take embedded viewers, so keep your normal photos in the image list.
6. Help Google find every image
An image sitemap lists images Google might otherwise miss, such as photos loaded by a script in a gallery. Each page entry can list up to 1,000 images, and the images can sit on another domain such as a CDN, as long as you verify that domain in Search Console. Google has retired the old caption, title, licence and location tags, so you only need the image address. Many store platforms generate this for you.
Also, if the same photo appears on several pages (a product page and a collection page), use the same image URL everywhere so Google can reuse what it has already crawled.
7. Make images light and fast
Images are often the biggest part of a page's weight, and slow product pages lose mobile shoppers. Four habits:
- Use modern formats. Google Images supports WebP and AVIF. Google's Lighthouse guidance says both compress better than JPEG and PNG, with AVIF usually smallest; keep a JPEG or PNG fallback for older browsers.
- Serve the right size. Use
srcsetandsizes, or<picture>, so phones get a smaller file than desktops. Always keep a plainsrcas a fallback, as Google asks. - Lazy-load only what's below the fold. Add
loading="lazy"to images further down the page, but never to the main product photo, which should load at once. - Set width and height on every image so the page doesn't jump as photos load.
Test a product page in Google's PageSpeed Insights to see which images slow it down. For sizes per platform, see the product image size guide.
8. Choose the photo Google shows
When Google picks a thumbnail for your page in search, you can steer it with the og:image meta tag or with structured data. Google advises against generic logos, images with lots of text and very wide or tall shapes, and favours sharp, relevant, high-resolution photos.
What about 360° views and videos?
An embedded 360° viewer or video helps the shopper on your page, but Google indexes your still images, not the viewer. Keep normal product photos in the page and in your markup, and add the viewer alongside. With Spinvas, the angle photos from the same turn give you those still images, which you can rename and add alt text to like any other photo.
Questions
How long should alt text be?
Long enough to describe the product and view, usually one short sentence. Google gives no fixed limit; aim for what a person would say to describe the photo.
Should I put my keyword in every image's alt text?
Only where it describes the photo truthfully. Repeating the same keyword on every image is keyword stuffing; describe each angle instead.
Is WebP or AVIF better for product photos?
Both compress better than JPEG. AVIF is often smaller but supported by fewer older browsers, so serve it with a JPEG fallback, or use WebP if your platform only offers one.
Does Google read text inside my product photo?
Don't rely on it. Google advises against images with lots of text, and Merchant Center rejects promotional text on product images.
Sources
- Google Search Central: Image SEO best practices
- Google Search Central: Image sitemaps
- Google Search Central: Merchant listing (Product) structured data
- Chrome for Developers: Serve images in modern formats (Lighthouse)
- web.dev: Browser-level image lazy loading
- Google Merchant Center Help: Image link [image_link]

