Reference guide · images · Published 2026-08-15 · 3 min read

Image sitemaps: what they do

What an image sitemap does, the image XML namespace, when it helps, submitting it, and common validation errors.

Why it works

A regular sitemap lists pages a crawler should index. An image sitemap lists images individually, inside the sitemap, using a second namespace. It tells the engine where each image lives and which page it belongs to. The engine can still discover images by crawling the page HTML, but an image sitemap is a direct pointer that helps pages where images are hard to reach: lazy-loaded galleries, lightboxed overlays, or images only injected from scripts.

It is a supplementary signal, not magic. On-page alt text and context from the image SEO guide still do the ranking; the sitemap does the discovery. Use it where you have a large, structured image set: e-commerce product photos, galleries, media pages.

The XML structure

The file is a normal sitemap with an extra namespace declaration, xmlns:image="http://www.google.com/schemas/sitemap-image/1.1", and <image:image> blocks inside each <url>:

<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/products/coastal-hoodie</loc>
    <image:image>
      <image:loc>https://example.com/media/coastal-hoodie-front.webp</image:loc>
    </image:image>
    <image:image>
      <image:loc>https://example.com/media/coastal-hoodie-detail.webp</image:loc>
    </image:image>
  </url>
</urlset>

Rules for the values:

When it pays

It costs little and occasionally rescues discovery. Where the site already exposes all images in static HTML, the benefit is smaller.

Submitting and referencing

  1. Create sitemap-images.xml in the server root.
  2. Reference the regular page sitemap, the image sitemap, or both in robots.txt:
Sitemap: https://example.com/sitemap-images.xml
  1. In Google Search Console, submit the sitemap URL under Indexing and watch the Image coverage line.

Common validation errors

The report tool shows the errors:

ErrorCauseFix
image:loc missingImage block without required URLadd <image:loc>
Unsupported image formatengine ignores non-web formatscheck for .webp, .jpg, .png
Too many URLs per sitemapdefault cap 50000split into index
Image URL redirectsevery image:loc should 200 OKremove redirect chains in the CDN
Relative URLimage:loc uses an absolute URLprefix with scheme and host

Re-submit after large changes. The full picture of image search signals is in the image SEO guide. Serve the images the sitemap points to from a cached CDN with stable URLs, which the image optimisation guide covers under delivery.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services