Technical SEO & AI Search

Image SEO for eCommerce: File Names, Alt Text and Google Images

How online stores get product images found in Google Images: file names, alt text, formats, speed, sitemaps and product schema, with a checklist.

TL;DR
  • Product images only earn search traffic if Google can find, understand and load them. Use real img elements, descriptive file names, specific alt text and fast, responsive files.
  • Write alt text the way a shopper would describe the photo: brand, product type, key attribute and angle. Google warns that stuffing keywords into alt text hurts users and can look like spam.
  • Speed matters as much as labels. Compress images, use modern formats such as WebP or AVIF, set width and height, and never lazy-load the main product image.

Why does image SEO matter for an online store?

Shoppers search with their eyes. Many product searches end in Google Images, Shopping results and visual search features, where a clear product photo is the entire listing. The same images also feed your product detail pages, your Shopping product feed and the previews Google picks for your pages.

The profit case is simple. Traffic from image and product search costs nothing per click, and it lands on a page already showing the item the shopper wanted. Well-optimized images also load faster, which helps conversion on every visit, paid or organic. Image SEO is low-cost work with a long shelf life: a good file name and alt text keep working for years.

How does Google find and understand product images?

Google’s image SEO guidance sets out the basics. Each one is a yes or no check for your theme.

  • Use standard HTML image elements. Google finds images in the src attribute of img elements, including inside picture. Google does not index CSS background images. If your product gallery loads images as backgrounds, those images are invisible to image search.
  • Use supported formats. Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. The file extension should match the real file type.
  • Place images near relevant text. Google uses captions, nearby text and the page content to understand what an image shows. A product photo next to the product name and description is in the ideal spot.
  • Keep one URL per image. Reference a shared image with the same URL across pages so Google can cache it instead of fetching duplicates.
  • Submit image information in sitemaps. An image sitemap, or image entries in your XML sitemap, helps Google find images it might otherwise miss. Image sitemaps can list images hosted on a CDN domain.
  • Tell Google which image represents the page. Use the image property in your structured data or the og:image meta tag. Google prefers representative, high-resolution images, not logos or text-heavy banners.

How should you name image files?

File names are a small signal, but they are free, and they help Google understand the image when other context is thin. Google recommends short, descriptive file names and warns against generic ones like image1.jpg.

Weak file name Better file name Why
IMG_4471.jpg womens-merino-crew-sweater-navy.jpg Product type, material and color
DSC0012-final-v3.png ceramic-pour-over-coffee-dripper-white.png Says what the item is
hero-banner.webp fall-hiking-boots-collection.webp Matches the page topic
product-2.jpg leather-card-holder-tan-open.jpg Includes the angle or state

Practical rules:

  • Use lowercase words separated by hyphens.
  • Lead with the product type, then the key attribute (color, material, size), then the angle if you have several shots.
  • Rename files before upload. On many platforms, changing a file name later means re-uploading the image, which also changes its URL.
  • On localized stores, translate file names for each language version, following URL encoding rules for non-Latin characters.

Do not stop to rename thousands of legacy images in one go. Rename new uploads from today, and fix legacy names on your top-selling products when you next refresh their photos.

Google calls alt text the most important attribute for image metadata. It is also how screen reader users experience your product photos, so good alt text is an accessibility requirement as much as an SEO one.

Write it as if describing the photo to someone on the phone who wants to buy the item. Be specific. Stop when the description is complete.

Image Weak alt text Better alt text
Main product shot “sweater” “Navy merino wool crew neck sweater, front view”
Detail shot “sweater sweater wool sweater cheap” “Close-up of ribbed cuff on navy merino sweater”
Lifestyle shot “image” “Woman wearing navy merino sweater on a mountain trail”
Size chart graphic “” (empty) “Size chart for merino crew sweater, XS to XXL chest measurements”
Decorative divider “beautiful border design” “” (empty, so screen readers skip it)

Rules that hold up:

  • Describe what is in the image, not what you want to rank for. If a keyword fits the description naturally, it belongs. If it does not, leave it out.
  • Include brand and model only when they are visible or central. “Acme Trail 2 hiking boot, side view” is useful. Adding your store name to every alt is not.
  • Make variant images different. If each color has its own photo, the alt text should name that color.
  • Keep it short. One sentence is usually enough.
  • Linked images matter more. When an image is a link, Google treats its alt text like anchor text for the target page. Category tiles and featured product images should carry clear alt text.
  • Leave purely decorative images empty with alt="", so assistive technology skips them.

AI tools can draft alt text in bulk, which is useful for large catalogs. Review a sample before you publish: generated text often misses the exact color name, material or product model.

How do you make images fast without losing quality?

Images are often the biggest part of a product page’s weight, and the main product image is often the page’s Largest Contentful Paint element. Slow images hurt Core Web Vitals and conversion together.

  1. Compress every image. Aim for the smallest file that still looks sharp on a retina phone.
  2. Use modern formats. WebP and AVIF are usually much smaller than JPEG or PNG at the same visual quality. Many platforms and CDNs convert automatically. Check that yours does.
  3. Serve the right size. Use srcset and sizes, or a picture element, so phones do not download desktop-sized files. Always keep a fallback src, as Google recommends.
  4. Set width and height. Declared dimensions stop the layout jumping as images load, which protects your layout shift score.
  5. Lazy-load below the fold only. Gallery thumbnails, reviews and recommendation carousels can wait. The main product image should not.
  6. Do not inline large images as data URIs. It cuts requests but can bloat the HTML.

For platform-specific fixes, see our guide to Shopify Core Web Vitals.

How do images connect to product schema and Google Shopping?

Your product images do double duty. On the page, the image property in Product structured data makes the product eligible for rich results and badges in Google Images. In Google Merchant Center, the image_link in your feed is the photo shown in Shopping ads and free listings.

Merchant Center’s image guidelines ask for a clean, unobstructed view of the product, and do not allow promotional overlays, watermarks, borders or overlaid barcodes. Google recommends large images, around 1,500 x 1,500 pixels or more, for the best results across formats.

Keep the feed image and the main page image consistent. A shopper who clicks a white-background product shot and lands on a page led by a lifestyle banner may wonder whether it is the same item. For more on markup and feeds, read our guides to product schema and Google Shopping feed optimization.

Image SEO audit checklist

Work through this on your top 20 products by margin first, then roll it into your upload process.

  • [ ] Product images load in img or picture elements, not CSS backgrounds
  • [ ] File names describe the product, attribute and angle, in lowercase with hyphens
  • [ ] Every product image has specific alt text; decorative images have empty alt
  • [ ] Variant images name the correct color or style in their alt text
  • [ ] Main product image is compressed, served in WebP or AVIF where supported, and not lazy-loaded
  • [ ] srcset or picture serves smaller files to phones, with a fallback src
  • [ ] Width and height attributes are set on all product images
  • [ ] Product structured data includes the image property
  • [ ] Feed images meet Merchant Center rules: no overlays, watermarks or borders
  • [ ] Images appear in your sitemap, including any CDN-hosted files
  • [ ] New uploads follow a written naming and alt text standard

FAQ

Does the image title attribute help SEO?

Google’s image guidance focuses on alt text, file names, surrounding text and structured data. It does not list the title attribute as a signal. Put your effort into alt text and context first. A title attribute can add a tooltip for users, but it is not a substitute for alt text.

Should alt text include the price or “buy now”?

No. Alt text describes what the image shows. Prices change and calls to action do not describe a photo. Put price and offers in visible text and in Product structured data, where Google expects them.

Is it worth renaming images on an existing store?

Usually only for your highest-value products, and best done when you refresh photos anyway. Renaming changes image URLs, so Google has to discover the new files. Fix alt text first, because you can edit it in place without changing anything else.

Turn this into a plan for your store

The Free Profit Audit scans your store, sizes your biggest profit leaks and builds a 90-day plan.

Free Profit Audit