Your product photos are the first thing a shopper sees, and they are the first thing a system checks. A product image is optimized for AI shopping when it shows the exact product, clearly, in a file a system can fetch, with a name and a description a system can read, and with the same facts in the structured data that the shopper sees on the page.

Google says high quality images belong in valuable, non-commodity content, and following its image SEO best practices already covers generative AI search. It also says generative AI search needs no special markup. The work is the image itself, the words around it, and the markup that says what it shows.

Platform screens change. If a menu name here does not match what you see, check the vendor docs in Sources.

What this guide covers

This guide covers how to optimize product images for AI shopping: the image itself, the filename, the alt text, and the structured data and feed. It covers the size and format rules, the words that go with the image, and the check that ties them together. It does not cover how to shoot product photography, or how to run a Merchant Center account in full. Those are separate jobs.

Who does each step

Owner work is picking the main image that shows the exact product, and writing the alt text that describes it. Staff work, or contractor work, is checking the size and format, renaming the file, and setting the image in the structured data and in the feed. If you are the owner and the staff, pick the image first, then do the technical steps, in that order.

Step 1: show the exact product, whole, on a clean background

Pick the main image that shows the entire product, without staging, without a prop that hides it, and without a promotional overlay. The image has to clearly show the exact item being sold. When a product comes in colors, the main image has to show the color the page is selling, not a different one.

A lifestyle shot shows a mood, not the product itself. A shopper who clicks through expecting the product in the picture, then finds a different color or a different size, will leave, and a system that reads the page will learn not to trust the next image.

Step 2: meet the size and format rules

Check the image against the Merchant Center rules: at least 500 by 500 pixels, around 1500 by 1500 pixels recommended, no image larger than 64 megapixels, no file larger than 16 MB, and a supported format, JPEG, WebP, PNG, GIF, BMP, or TIFF, with the file extension matching the format.

Never scale up a small image, and never send a thumbnail as the main image. A small image cannot be checked, and a thumbnail sent as the main image is a sign the shop did not check its own feed. Google Merchant Center says a product image should not carry promotional text, watermarks, or borders, and a placeholder or generic image should not be submitted.

Step 3: give the image a descriptive filename

Rename the file so it says what the image shows, in short plain words, such as cast-iron-skillet-30cm.jpg, not IMG00023.jpg. Google says a filename can give very light clues about what an image shows, and generic filenames should be avoided where possible.

Keep the name short. A filename that tries to list every keyword is not descriptive. It is keyword stuffing, and Google says to avoid filling alt attributes with keywords, which also applies to the habit of stuffing a filename.

Step 4: write alt text that describes what the image shows

Write alt text that says what is in the image, in useful, information rich words, in context with the page. Google says it uses alt text along with computer vision and the contents of the page to understand the subject matter of the image, and that alt text is the most important attribute for providing more metadata for an image.

Write alt text for a person who cannot see the image, not for a search engine. A good alt text for a skillet says a cast iron skillet with a wooden handle on a plain background. A bad alt text says skillet skillet cast iron skillet buy now.

Step 5: put the image near relevant text, on the right page

Check that the image sits on the product page for that product, near the text that describes it. Google says images belong near relevant text, on pages relevant to what the image shows. An image on a category page, or on a page for a different product, will be read as showing a different product.

What to do this week

Check ten product images, by hand, and it will take about an hour.

First, open ten product pages, and look at the main image on each one. Does it show the entire product, whole, on a clean background? Does it show the exact color the page is selling? If the answer is no, write the product name down. That list is the work, and it is work you can do this week.

Second, check the size of each image. Open the image file, and read its dimensions. Is it at least 500 by 500 pixels? Is it around 1500 by 1500 pixels, as Merchant Center recommends? A small image cannot be checked, and a thumbnail sent as the main image is a sign the shop did not check its own feed.

Third, check the filename and the alt text. Is the filename short and descriptive, such as cast-iron-skillet-30cm.jpg, or is it IMG00023.jpg? Does the alt text say what is in the image, in plain words, for a person who cannot see it? If the answer is no, write the new filename and the new alt text next to the product name.

Fourth, check the structured data and the feed for the same ten products. Open the page source, and read the Product image field. Open the feed, and read the image_link. Are all three the same image? If they disagree, write the disagreement down. When an image matches in all three places, page, block, and feed, it is an image a system can trust.

Machine-readable version you can copy

This block is a Product description in JSON-LD, using the vocabulary at schema.org, with an image. Replace the example values with your own product facts, and only use values that match the page a shopper sees. The image URL has to point to the same image the shopper sees on the page.

code
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Example Cast Iron Skillet",
  "image": "https://[yourdomain.com]/images/cast-iron-skillet-30cm.jpg",
  "description": "A cast iron skillet with a wooden handle, 30 centimetres across, for cooking on a hob or in an oven.",
  "brand": {
    "@type": "Brand",
    "name": "Example Cookware Brand"
  },
  "offers": {
    "@type": "Offer",
    "price": "79.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}
</script>

This is the same image in a Merchant Center feed row. Swap the placeholders for your own values, and keep the image URL identical to the one in the block above.

code
id, title, link, image_link, availability, price
SKU-SKILLET-30, Example Cast Iron Skillet, https://[yourdomain.com]/products/cast-iron-skillet-30cm, https://[yourdomain.com]/images/cast-iron-skillet-30cm.jpg, in_stock, 79.00 USD

After you publish them, check both again. Open the page and make sure the image matches the block and the feed. Then test the page with the Rich Results Test and fix whatever error it shows. When an image matches in all three places, page, block, and feed, it is an image a system can trust.

Worked example: a cookware shop that fixed its main image

Take a cookware shop that sells skillets, saucepans, and baking trays. The owner checked the main image on every product page. The skillet page showed a lifestyle shot of a full kitchen, with the skillet half hidden behind a saucepan. She replaced it with a clean shot of the skillet alone, on a plain background, at 1500 by 1500 pixels, named cast-iron-skillet-30cm.jpg, with alt text that says a cast iron skillet with a wooden handle on a plain background.

She set the Product image field and the Merchant Center image_link to the same URL, and checked that robots.txt allows Googlebot-image. A shopper asks an assistant for a cast iron skillet, and the assistant can find the page, read the image and the text together, and name the shop with the product as shown. The image did not sell anything on its own. It showed the exact product, clearly, in a form a system could check.

Frequently Asked Questions

What size should a product image be?

At least 500 by 500 pixels, and around 1500 by 1500 pixels recommended, according to Google Merchant Center. No image larger than 64 megapixels, and no file larger than 16 MB.

What file formats are accepted?

JPEG, WebP, PNG, GIF, BMP, and TIFF, with the file extension matching the format, according to Google Merchant Center.

Can I use a lifestyle shot as the main image?

No, not as the main image. The main image must clearly display the exact item being sold. Use a lifestyle shot as a second or third image, not as the first one.

What should alt text say?

What is in the image, in useful, information rich words, in context with the page. Write alt text for a person who cannot see the image, not for a search engine.

What if my supplier gives me the images?

Supplier images can be a good start, but they are not a finished product page. Check each one the same way you would check your own photo: does it show the exact product you sell, in the exact color you sell, whole, on a clean background? If the supplier image shows a different color, a different size, or a logo that is not yours, do not use it as the main image. Use it as a second image, or take your own photo, and keep the main image as the exact product a shopper will receive. A supplier image that is used by ten shops is also an image a system has seen ten times, so your own photo, even a simple one, tells the system more about your shop.

Should the image in the structured data match the page?

Yes. The Product image field, the Merchant Center image_link, and the image on the page must all be the same image. If they disagree, a system will not trust the next fact on the page.