Technical SEO

image sitemap

Also called: image site map, xml image sitemap

An image sitemap is an XML sitemap that lists image URLs so Google can find and index images it might otherwise miss (for example, images loaded by JavaScript). It uses Google's sitemap-image namespace with <image:image> and <image:loc> tags, up to 1,000 images per page.

Google finds most images by crawling standard <img> tags on your pages, so an image sitemap is a supplement, not a replacement. It earns its keep when images are hard to reach: rendered by JavaScript, served from a separate media or CDN domain, or hidden behind galleries and lazy-loading a crawler may not trigger.

How the syntax works

Image tags nest inside each page’s <url> entry, and you declare the namespace on the <urlset>:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>https://example.com/product/</loc>
    <image:image>
      <image:loc>https://cdn.example.com/photo.jpg</image:loc>
    </image:image>
  </url>
</urlset>

Each <url> can hold up to 1,000 <image:image> entries. Cross-domain image URLs are allowed here (unlike regular sitemaps) as long as both the page domain and the image or CDN domain are verified in Search Console and robots.txt permits crawling.

One thing that trips people up: the older <image:caption>, <image:title>, <image:geo_location>, and <image:license> tags are no longer supported, so <image:loc> is effectively the only tag that still does anything. Alt text and captions belong in the page HTML, not the sitemap. Because it is a plain sitemap extension, all the usual sitemap rules apply (valid XML, submitted in Search Console or referenced in robots.txt).

How it affects your traffic

Google Images and Lens are real discovery channels, especially for ecommerce and visual niches, and an image that never gets crawled can never rank or drive clicks. If your product shots or hero images load via JavaScript or sit on a separate CDN, an image sitemap is often the difference between them being indexed and being invisible. Fixing this kind of crawl-and-indexation plumbing, alongside rendering and internal linking, is core to our Technical SEO work.

Get Technical SEO that moves the needle

We turn terms like this into ranked pages and qualified pipeline. Start with a free Initial SEO Strategy.