All posts
SEO Basics

Should Images Be Included in a Sitemap?

Google can usually find images without help — but an image sitemap still improves Google Images visibility in specific cases. Here's when it's worth adding.

June 30, 2026·4 min read

Short answer: not required for most sites, but worth adding if you rely on Google Images traffic or your images are loaded in a way Google's crawler might miss — lazy-loaded galleries, JavaScript carousels, or CDN-hosted images on a different domain.

What an Image Sitemap Looks Like

Image sitemaps aren't a separate file — they're an extension to your normal URL sitemap. You add <image:image> tags inside a <url> entry to list the images that appear on that page:

<url>
  <loc>https://example.com/product/blue-widget</loc>
  <image:image>
    <image:loc>https://example.com/images/blue-widget-1.jpg</image:loc>
    <image:title>Blue Widget — Front View</image:title>
  </image:image>
  <image:image>
    <image:loc>https://example.com/images/blue-widget-2.jpg</image:loc>
  </image:image>
</url>

The Sitemaps.org image extension allows up to 1,000 images per URL entry, which is far more than any real page needs.

When It Actually Helps

  • Images loaded via JavaScript — infinite-scroll galleries, lazy-loaded product images, or carousels that only render images after user interaction can be missed by a standard crawl. Listing them explicitly guarantees discovery.
  • Images hosted on a different domain or CDN — if your images live on cdn.example.com while your pages are on example.com, an image sitemap makes the association explicit rather than relying on Google to connect the two.
  • E-commerce and photography sites — where Google Images is a meaningful traffic source and every product or portfolio image is worth surfacing individually.

When It's Unnecessary

If your images are simple <img> tags rendered directly in the page HTML on the same domain, Google's crawler finds them during a normal page crawl without any help from a sitemap. For a blog, marketing site, or documentation site where images are purely decorative or illustrative, adding image entries is extra maintenance for negligible benefit.

The Trade-Off

Image entries add weight to your sitemap file and one more thing to keep in sync — every time an image changes or is removed, the sitemap needs updating too. For sites where images aren't a primary discovery channel, that maintenance cost usually isn't worth it. For sites where Google Images traffic matters, it's a low-effort addition with a clear upside.

A Simpler Alternative for Most Sites

If you're not sure whether you need image sitemap entries, start without them. Use descriptive alt text, serve images on the same domain as your pages where possible, and avoid rendering critical images purely via client-side JavaScript. Only add image sitemap entries once you have a specific reason — a Google Images traffic goal, or evidence in Search Console that images aren't being discovered.

Try it free

Generate and check your sitemap in minutes

Crawl up to 2,000 URLs for free — no credit card required. See your health score and download your sitemap XML instantly.

Generate your sitemap →