Most image SEO advice starts with alt text. In the sites we audit, alt text is rarely the reason an image is missing from Google. The more common problem sits one step earlier: the image was never placed where Google looks for images. A hero photo added as a section background in a page builder. A gallery whose real file URLs live in a data-src attribute. A product shot that only appears after a slider script runs. Each one looks fine in a browser, and each one can be invisible to Google Images, to the thumbnail beside a text result, and to Discover.
This post explains how Google discovers and reads images, based on Google’s own image SEO best practices documentation, and gives you a check you can run on any page today.
The one rule that decides whether an image can be indexed
Google indexes images it finds in the src attribute of an HTML <img> element, including an <img> nested inside a <picture> element, and it does not index images applied with CSS, such as a background-image style. Google Search supports seven image formats in that src attribute: BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. An image that exists only as a CSS background, or only as a URL in a JavaScript data attribute, has no path into Google Images, no matter how good its filename or surrounding copy is.
That is not an inference from ranking tests. Google Search Central states it directly: “Google doesn’t index CSS images.” The documentation even uses a div with a background-image style as its example of what not to do. Everything else in image SEO, from alt text to file names to structured data, only matters once this first condition is met.
Why images go missing: the four patterns we find most
When an image that matters is absent from Google, the cause is usually one of these:
- CSS background images: page builders commonly place hero and banner photos as section backgrounds, which Google does not index as images.
- Lazy-loaders that never fill
src: older scripts keep a placeholder insrcand the real file indata-src, swapping it only on scroll, and Google Search does not scroll or click. - Responsive markup with no fallback: Google recommends always specifying a
srcURL, because some browsers and crawlers do not understandsrcsetor<picture>. - Images loaded after an interaction: galleries, tabs and carousels that request images only when a visitor clicks are never triggered, because Google does not interact with the page.
The first pattern is the one that surprises site owners most, because it is a design decision, not a bug. A full-width photo with a headline laid over it is far easier to build as a background than as an image element, so many themes default to it. That is a reasonable choice for a decorative texture. It is the wrong choice for the photo of your team, your product or your finished work, which is exactly the image you want people to find.
Lazy loading is not the problem in itself. Google’s guidance on lazy-loaded content names three acceptable methods: the browser’s built-in loading="lazy" attribute, the IntersectionObserver API, or a library that loads content when it enters the viewport. What those methods share is that they do not depend on scrolling or clicking. The same guidance warns against lazy-loading images that are visible as soon as the page opens, because that delays the content the visitor sees first. WordPress has added loading="lazy" to images by default since version 5.5, so a site that also runs an older JavaScript lazy-load plugin can end up with two systems competing for the same image, and the plugin’s version is usually the one that hides the real URL.
How to check what Google sees, in about five minutes
Pick the page whose images matter most and do the following:
- In Search Console, paste the page URL into the URL Inspection bar and click Test live URL.
- When the test finishes, click View tested page and open the HTML tab. This is the rendered HTML, after JavaScript has run.
- Search that HTML for the filename of the image you care about. If the filename appears inside
src="..."on an<img>element, Google can find it. If it appears only insidedata-src, inside astyleattribute, or not at all, it cannot. - Check the Screenshot tab to see whether the image rendered visually.
One detail in Search Console’s URL Inspection documentation is easy to miss: the default result describes the most recently indexed version of the page, not the live one, and a screenshot is only available from a successful live test. If you have just fixed something, the live test is the only view that reflects the fix.
To list every CSS background image on a page in one step, open the page in Chrome, open DevTools, and paste this into the Console:
[...document.querySelectorAll('*')].map(e => getComputedStyle(e).backgroundImage).filter(b => b.includes('url('))
Every URL it returns is an image Google will not index as an image. Most will be decorative, which is fine. Any that show real subject matter are candidates to rebuild as <img> elements.
Once Google can see an image, what it reads
After discovery, Google works out what an image shows from several sources on the page. Google’s documentation names these, and is candid about how much each one counts:
- Alt text: Google calls it the most important attribute for image metadata and uses it alongside computer vision and the page’s content.
- Surrounding text and captions: Google extracts the image’s subject from the page content, so an image placed next to relevant text is easier to understand than one in an unrelated sidebar.
- Filename: Google describes it as giving “very light clues”, so
black-kitten.jpghelps a little more thanIMG00023.JPG, and not much more than that. - A stable URL: referencing the same image with the same URL across pages lets Google cache and reuse it rather than request it repeatedly.
Alt text should describe the image in the context of the page. Google’s own example progression is useful: no alt text is bad, a string of keywords is bad, “puppy” is better, and “Dalmatian puppy playing fetch” is best. Stuffing alt attributes with keywords is called out as a spam risk, and it also degrades the experience for screen reader users, which is the reason the attribute exists in the first place.
If your images are served from a CDN on another domain, an image sitemap is worth adding. Unlike a regular sitemap, an image sitemap can list image URLs on other domains in its <image:loc> elements.
Choosing which image represents the page
The thumbnail beside a text result, or the preview image in Discover, is selected automatically. You can influence the choice with three signals: the Schema.org primaryImageOfPage property, an image property attached to the page’s main entity, or an og:image meta tag. Google asks that the preferred image be relevant to the page, high resolution, not an extreme aspect ratio, and not a generic logo or an image containing text.
That last point creates a real trade-off, and we see it on our own blog. Our cover graphics carry each post’s headline as text, because that works well when a post is shared on LinkedIn or in a message. Google’s guidance for preview images points the other way. Neither choice is wrong, but it should be made deliberately, page type by page type, rather than left to whatever a theme or SEO plugin fills in by default.
File size is where image SEO meets page speed
Google’s documentation notes that images are often the largest contributor to overall page size. Format choice is the cheapest fix. Photographs and gradients compress far better as JPEG, WebP or AVIF than as PNG. When we export the dark gradient covers for this blog, the same 1600 by 900 artwork comes out at roughly 770 KB as a PNG and about 105 KB as a JPEG at 92 percent quality, with no difference we can see at the size it is displayed. PNG and SVG earn their place for flat graphics, logos and diagrams with few colors.
When a page’s largest visible element is an image, its weight feeds directly into how quickly that page appears to load. That is why we treat image handling as part of web design, not something added after launch.
Where to start
Run the URL Inspection check on the three pages whose images matter most to your business: usually the homepage, your main service or product page, and your portfolio or gallery. Fix discovery first, then alt text, then file weight. If you want a second pair of eyes on how your site handles images, crawlability and the rest of technical search, that is a core part of our SEO services. The same discipline, clean markup that machines can read without guessing, also underpins how we approach answer engine optimization.

