Check B2.5 · Images with alt text and resolution

Give product images alt text, enough resolution and open access

How the scanner checks that the primary product image resolves, carries alt text, meets Google Merchant Center's 500 px minimum and is not blocked by robots.txt.

By · Updated · Markdown

Check 5 of 6 in Product structured data · 64 of 87 overall
Priority
Nice to have Weight 1. Helps agents, rarely decisive on its own.
Readiness level
Not a level gate. It counts toward its section score.
The question
Is the primary product image usable by an agent?
Runs after
B2.1. When a dependency fails, this check is skipped rather than guessed.
On this page

In short

The primary product image is how shoppers and agents confirm they found the right item. It must load, it needs alt text that describes it in words, and it must be large enough for shopping surfaces. This check tests the main image named in your Product markup on each sampled page. It warns when the image is small or blocked for Google's crawlers and fails when it does not load at all.

What this check looks at

The scanner starts from the image property of the Product or ProductGroup node in your JSON-LD, which the Product JSON-LD check already found. It takes the first image and checks four things:

  • It resolves. The URL is absolute and the image loads.
  • It is rendered with alt text. The scanner finds the img element on the page that shows the same image and reads its alt attribute.
  • It is large enough. The longest side is at least 500 pixels.
  • Google's crawlers may fetch it. The store's robots.txt (the file that tells crawlers what they may fetch) does not disallow Googlebot or Googlebot-Image, Google's page and image crawlers, from an image on the store's own domain.

Matching the markup image to the rendered img is tolerant. The scanner compares URL paths without query strings and without size suffixes, such as Shopify's _1080x or &width=1080 and WordPress's -300x200. It looks in src, srcset, data-src, data-srcset and picture sources. One-pixel tracking images and images marked aria-hidden are ignored.

Why it matters for AI agents

Many agents work from text. Alt text is how they learn what an image shows, and it is also what screen readers announce to people who cannot see the page. An alt text like "Blue stoneware mug, 350 ml, side view" confirms colour and size. A file name like "IMG_4412" confirms nothing.

Resolution matters for shopping surfaces. Google Merchant Center's image requirements set a minimum of 500 by 500 pixels for all products from 31 January 2027 and recommend 1500 by 1500 pixels or more. Google also says products whose images are blocked by robots.txt stop showing in free listings. Its guidance is to allow both Googlebot and Googlebot-Image.

This check has weight 1, nice to have, and gates no level. It is usually quick to fix, and a broken image is worth finding early.

How the scanner decides

Each sampled product image gets its own verdict.

  • Fail for that image when the markup has no image, when the image URL is not an absolute http or https URL, or when the image request answers with an error status.
  • Warn for that image when it is not rendered as an img on the page, when the rendered img has no alt text, when its longest side is under 500 px, or when robots.txt blocks Googlebot or Googlebot-Image from it.
  • Inconclusive when the scanner's request for the image got no response at all, and that is the only issue. Inconclusive images are not scored.
  • Otherwise the image passes. An image between 500 and 1500 px passes with a note that Google recommends 1500 px.

The scanner reads the size from the JSON-LD ImageObject width and height, or from the img element's attributes and srcset. Only when neither gives a size does it send a HEAD request (a request for the headers only) to confirm the image resolves. So when a size is known, a broken image URL is not caught.

The overall result is a fail when any image fails, a warn when any image warns, and a pass otherwise. It is a skip when no product markup was found or when no image could be checked.

How to fix it

Fix the source images once in your media library or product admin. Themes then generate the smaller sizes from them.

WordPress and WooCommerce

  • The Product image set in the product editor becomes the image in WooCommerce's markup. Upload originals of at least 1500 px on the longest side.
  • Set alt text in the Media Library, under Alternative Text for each image. WooCommerce gallery templates output it on the rendered img.
  • Lazy-loading plugins sometimes move the URL to data-src and leave a placeholder in src. The scanner reads data-src, but make sure the placeholder is not the only img with alt text.
  • Check robots.txt for rules like Disallow: /wp-content/uploads/. Some security plugins add them. Remove them.

Shopify

  • Upload product media of at least 1500 px. Shopify's CDN serves resized versions to the theme.
  • Add alt text in the product admin: open the image under Media and use Add alt text. Themes output it on the product image.
  • Shopify's default robots.txt does not block product images. Check robots.txt.liquid if your theme has one.

Any other stack

  • Serve the full-size image at a stable absolute URL and use that URL in the JSON-LD.
  • Render the same image as an img element on the page with a descriptive alt attribute. Responsive srcset variants are fine.
  • Add width and height to the JSON-LD image, which also saves the scanner a request:
"image": {
  "@type": "ImageObject",
  "url": "https://example.com/images/mug-blue-1600.jpg",
  "width": 1600,
  "height": 1600
}

The fix on this page aims for 800 px, a comfortable margin above the 500 px minimum. 1500 px is Google's recommendation for the best results.

Verify it yourself

Find the image URL in the markup, then check that it loads and how large it is:

curl -sI https://example.com/images/mug-blue-1600.jpg | head -n 5
curl -s https://example.com/images/mug-blue-1600.jpg -o /tmp/mug.jpg && file /tmp/mug.jpg

file prints the pixel dimensions for JPEG and PNG images. To check alt text, inspect the product image in your browser's developer tools. Google Search Console's URL Inspection tool and the robots.txt report show whether Googlebot may fetch the image.

Common mistakes

  • Alt text that repeats the file name. "DSC_0042.jpg" tells an agent nothing about the product.
  • A thumbnail in the markup. The JSON-LD points to the 300 px catalogue thumbnail instead of the full image.
  • An image CDN on a host that blocks crawlers. The image lives on a separate host whose robots.txt or firewall rejects Googlebot.
  • Upload folders disallowed in robots.txt. A rule meant to hide private files also hides product photos.
  • A markup image that never appears on the page. The JSON-LD names a photo the theme does not render, so there is no alt text to read.

FAQ

What size should product images be for Google Shopping?

Google Merchant Center requires at least 500 by 500 pixels for all products from 31 January 2027 and recommends 1500 by 1500 pixels or larger. Uploading 1500 px originals covers both.

Does alt text help AI agents?

Agents that read the page as text cannot see the image. Alt text is the only description they get from it. It also makes the page accessible to people using screen readers.

Should I block Googlebot-Image in robots.txt?

Not for product images. Google says products whose images are blocked stop showing in free listings, and recommends allowing both Googlebot and Googlebot-Image.

Why is my image marked inconclusive?

The scanner sent a request for the image and got no response at all, for example a timeout or a URL its fetch policy would not request. That says nothing about the image itself, so it is not scored.

The fix in one step

Give every product a primary image of at least 800 px on its longest side with descriptive alt text.

Prompt for a coding agent

The primary product image named in the Product JSON-LD of sampled pages on this store is missing, does not load, is not rendered as an img with alt text, is under 500 px on its longest side, or is blocked for Googlebot or Googlebot-Image by robots.txt. Audit the primary image of every product (the product sitemap or catalog API lists the products, and the media library or the files give the dimensions). Use an absolute image URL in the JSON-LD, render the same image on the page with a descriptive alt attribute (the product, colour and size, not the file name), and replace images smaller than 800 px on their longest side, aiming for 1500 px. Add width and height to the JSON-LD ImageObject. Remove robots.txt rules that disallow image or upload folders. Verify that the image URL from the markup answers `curl -sI` with HTTP 200 and that the rendered img carries the alt text.

Sources and specifications

See how your store does

One scan runs every check in this knowledge base against your site and ends with a prioritised fix list.

Scan a store