SEO

Image SEO: What Google Says to Do for Search Visibility

By · · 3 min read

Short answerGoogle's image guidance comes down to a few steps: use standard HTML img elements, because Google says it doesn't index CSS images; write useful alt text and descriptive filenames; place images near relevant text; provide a fallback src for responsive images; and use an image sitemap if images are hard to discover.

Key takeaways

  • Use HTML img elements; Google says it doesn't index CSS images.
  • Alt text is described as the most important image attribute; keep it useful, not stuffed.
  • Descriptive filenames and nearby relevant text help Google understand the image.
  • Always include a fallback src when using srcset or picture.
  • Don't lazy-load images likely visible on load, and set width and height.

What does Google actually say about image SEO?

Google's "Image SEO Best Practices" documentation splits the job into two parts: helping Google discover and index your images, and optimizing the pages those images live on. In short, use standard HTML image elements, write useful alt text and filenames, keep images near relevant text, and make sure images load quickly. None of this is a guarantee of ranking; the documentation describes how to make images understandable and eligible, not a formula for position.

Why do HTML img elements matter?

According to Google's documentation, standard HTML image elements help its crawlers find images, and Google reads the src attribute of an img element, including one nested inside a picture element. The same page states plainly that Google doesn't index CSS images, and shows a div with a CSS background-image as the bad example. If an image carries meaning, such as a product photo or a storefront, put it in an img tag rather than a stylesheet.

How should you write alt text and filenames?

Google calls alt text the most important attribute for providing image metadata, and notes it also serves accessibility. It says Google uses alt text together with computer vision and page content, and that alt text works like anchor text when the image is a link. The guidance is to write useful, information-rich text in context and to avoid keyword stuffing. Its examples rank a missing alt as bad, "puppy" as better, and "Dalmatian puppy playing fetch" as best.

For filenames, Google recommends short, descriptive names, preferring something like my-new-black-kitten.jpg over IMG00023.JPG, and avoiding generic names such as image1.jpg. It also advises keeping the file extension consistent with the real file type.

Where should images go on the page?

Google says it extracts subject matter from page content, including captions and image titles, and recommends placing images near relevant text on pages relevant to the image subject. A photo dropped onto an unrelated page gives the crawler little context. To influence which image appears as a preview, the documentation says you can use schema.org primaryImageOfPage, an image property on BlogPosting, or an og:image tag, and suggests choosing an image that is relevant and representative of the page rather than a logo or a graphic with text. The selection itself remains automated.

What about formats, responsive images and sitemaps?

Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF images referenced in img src. For responsive images, the documentation says some browsers and crawlers don't understand srcset or picture, so always specify a fallback src.

Google's image sitemap documentation says these sitemaps tell Google about images it might not otherwise find, such as images reached through JavaScript. You can use a separate image sitemap or add image tags to an existing sitemap, and the page says either approach is fine. Each URL can list up to 1,000 images. Google has removed the image:caption, image:geo_location, image:title and image:license tags from its documentation. The page does not say a sitemap is required.

Should you lazy-load images?

Google's image page does not discuss lazy loading, so this part comes from web.dev, which recommends loading="lazy" only for images outside the initial viewport and advises against lazy-loading images likely to be visible on load, especially the largest content image. It also recommends width and height attributes on img tags to reserve space and reduce layout shift. Those are performance recommendations from a different source; they are not stated as Google Search ranking requirements.

What is uncertain?

The documentation does not quantify how much any of these steps affects rankings or traffic, so treat them as good hygiene that supports discovery and understanding rather than as a guaranteed lift.

Frequently asked questions

Does Google index CSS background images?

No. Google's image documentation states that Google doesn't index CSS images, so meaningful images should use an HTML img element.

Is alt text important for image SEO?

Google describes alt text as the most important attribute for providing image metadata. It advises writing useful, in-context text and avoiding keyword stuffing.

Do I need an image sitemap?

Google's documentation does not say one is required. It says image sitemaps help Google find images it might not otherwise discover, such as those loaded with JavaScript.

Which image formats does Google Search support?

Google lists BMP, GIF, JPEG, PNG, WebP, SVG and AVIF for images referenced in an img src attribute.

Sources

  1. Image SEO Best Practices — Google Search Central
  2. Image sitemaps — Google Search Central
  3. Browser-level image lazy-loading for the web — web.dev (Google)
KC
Kathy P. Carr

CEO of AIrecommend.ai and Skyview Business Consulting. Writes on answer engine optimization, franchising and building AI-first companies.

Connect on LinkedIn

Keep reading

Want to be the answer AI recommends?
See how AIrecommend.ai helps businesses get found and recommended by AI assistants.