SEO

Image Sitemap

Also called image XML sitemap

An XML sitemap, or an extension to one, that lists the images on each page so search engines can discover them.

Quick facts: Image Sitemap

Category
SEO
Also called
image XML sitemap
Level
Intermediate
Affects
Discovery of images by Google, indexing of images loaded by JavaScript, coverage of large image libraries
Where to see it
XML sitemap files, SEO plugins, Google Search Console Sitemaps report, SEO crawlers
In this article4
  1. How an image sitemap works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

An image sitemap is an XML sitemap, or an extension added to an existing one, that lists the images on each page so search engines can find them. It is most useful when images would not otherwise be discovered by crawling the page, for example when they are loaded by JavaScript after the page opens.

How an image sitemap works

An ordinary XML sitemap lists page URLs. Google’s image extension lets each page entry also list the images that appear on that page. Inside each url entry, an image:image element wraps an image:loc element holding the image’s address. One page entry can list up to 1,000 images, and the file must declare Google’s image namespace at the top so the extra tags are understood.

There is no need for a separate file. Image entries can sit in the same sitemap as the pages, and most SEO plugins and ecommerce platforms add them automatically. Larger sites often split sitemaps by type and group them under a sitemap index.

In 2022 Google stopped using several optional image tags, including caption, title, geographic location and licence. At the time of writing (October 2026) only the image location is used, so older guides that tell you to fill in captions in the sitemap are out of date. Descriptions belong on the page, in alt text and captions, where both visitors and Google can read them.

The image URL can be on a different domain from the page, such as a content delivery network, as long as Google is allowed to crawl it.

Why it matters

For most small sites, Google finds images by crawling the pages, and an image sitemap adds little. It earns its place in particular situations: product galleries that load extra photos with JavaScript, sites with large image libraries such as photographers and estate agents, and online shops with thousands of products. For a UK retailer with several photos per product, listing all of them makes it more likely that the alternative angles are indexed, not just the first image.

Being listed does not guarantee indexing. The sitemap helps discovery; whether an image appears and ranks still depends on image SEO signals and the quality of the page it sits on.

Common mistakes

  • Listing images that robots.txt blocks, so Google is told about files it cannot fetch.
  • Including image URLs that redirect or return errors after a redesign or CDN change.
  • Listing images on pages that are noindexed or missing from the sitemap themselves.
  • Spending time on caption and title tags Google no longer reads.
  • Generating two image sitemaps from two plugins, with different URL formats for the same images.

How to act on it

Check what your platform already produces. Open your sitemap in a browser and look for image entries under each page. WordPress SEO plugins and Shopify generally include images automatically. If yours does not, and your images load through JavaScript or there are a great many of them, add image entries.

Submit the sitemap, or the sitemap index that contains it, in Google Search Console, then watch the Sitemaps report for errors. Spot-check a handful of image URLs from the file to confirm they load, are not blocked and match the images on the live page. After any redesign or move to a new CDN, check again, because image URLs are often the part that changes without anyone noticing. Keeping sitemaps accurate is routine within my technical SEO work.

Do and do not

Do

  • Check whether your platform already adds images to your sitemap
  • List only crawlable images on indexable pages
  • Submit the sitemap in Search Console and watch for errors

Do not

  • Fill in caption and title tags Google no longer uses
  • List images that redirect, error or are blocked by robots.txt
  • Generate competing image sitemaps from two plugins

Questions people ask about this

Do I need an image sitemap?

Usually not, if your images sit in normal HTML on pages Google can crawl. It helps when images are loaded by JavaScript, when a site has a very large number of images, or when you want to be sure alternative product photos are found. Check whether your platform already adds images to your sitemap before building anything.

Can an image sitemap include images hosted elsewhere?

Yes. The image URL can be on another domain, such as a CDN, as long as Google is allowed to crawl it. Check that the other domain's robots.txt does not block Googlebot from the image files.

Will an image sitemap get my images into Google Images faster?

It can help Google find them sooner, especially on large sites, but it does not control when or whether they are indexed or how they rank. Discovery is only the first step; the page and the image still need to be worth showing.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.