An image sitemap helps Google find your images, not rank them. It is worth having when Google might miss an image otherwise: one your page loads with JavaScript, one that lives on a CDN or another domain, or one among thousands of pages. If every image already sits in an ordinary img tag on a page Google crawls, an image sitemap changes little. Only two tags still count, image:image and image:loc; the caption, title, location and license tags stopped doing anything in 2022.
What does an image sitemap actually do?
It tells Google which images belong to which page. Google's own documentation calls image sitemaps "a way of telling Google about other images on your site, especially those that we might not otherwise find (such as images your site reaches with JavaScript code)".
That is discovery. Nothing in Google's documentation says an image ranks higher because a sitemap names it. What decides how an image does in search is the page around it: its alt text, the words near it, its size and the page's own quality, as Google's image SEO best practices explain.
Do you need one?
| Your site | Image sitemap |
|---|---|
A few pages, every image in an img tag in the HTML |
Little to gain, though it does no harm |
| Images that scripts insert after the page loads | Worth it |
| Images served from a CDN or another domain | Worth it |
| Thousands of pages with images, such as a shop or a gallery | Worth it |
| Images set as a CSS background | A sitemap will not fix this; use an img tag |
That last row matters more than any sitemap. Google says it finds images in the src of an img element, even inside a picture element, and that "Google doesn't index CSS images".
Which tags does Google still read?
Just two, per Google's image sitemap documentation:
| Tag | What it holds |
|---|---|
image:image |
One image; up to 1,000 of them inside one url |
image:loc |
The image's address |
In May 2022 Google announced it would drop four image tags: image:caption, image:title, image:geo_location and image:license. They have had no effect on indexing or search features since Aug 6, 2022. Google says you can leave them in place without harm, but they do nothing. For a credit or license, it points to IPTC metadata instead, and the words that used to go in a caption belong on the page, in alt text and nearby text.
What does one look like?
Here is a single entry, the shape every photo page on Heart Photos uses:
<?xml version="1.0" encoding="UTF-8"?>
<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/photo/sunset</loc>
<lastmod>2026-11-28</lastmod>
<image:image>
<image:loc>https://images.example.com/sunset.avif</image:loc>
</image:image>
</url>
</urlset>
A few rules worth knowing:
- The
locis the page; theimage:locis the image. The page is what appears in search, so it is the page you list. - The image may live on another domain. Google's best practices page says image sitemaps, unlike regular ones, may name URLs from other domains, and its sitemap page adds that this is fine "as long as you verify both domains in Search Console".
- One file or two is your choice. Google says a separate image sitemap and image tags inside your existing sitemap are "equally fine".
- Set
lastmodto the real change date. Google uses it only if it is "consistently and verifiably" accurate, and Bing wrote on Feb 1, 2023 that if every date is always today, it may disregard them. Google ignorespriorityandchangefreqaltogether.
How big can an image sitemap get?
One sitemap may hold 50,000 URLs or 50 MB uncompressed, whichever comes first. Past that you split it into several files and list them in a sitemap index.
Image tags add up. We measured the Heart Photos sitemap on Nov 28, 2026, by downloading https://heart.photos/sitemap.xml and counting its entries:
| Measured | |
|---|---|
| Pages listed | 19,637 |
| Pages with an image entry | 19,533 |
| File size, uncompressed | 3.63 MB |
| Bytes the image tags take | 1.76 MB, about 90 bytes per image, 48% of the file |
| File size, gzip level 9 | 208 KB |
So one image per page nearly doubled the file, yet at this rate 50,000 pages would still be about 9 MB. For a site like this, the 50,000 URL limit arrives long before the 50 MB one. Compression shrank the file to under 6% of its size, which is why serving it gzipped is worth the one setting it takes.
Frequently asked questions
Does an image sitemap improve rankings?
No. It helps Google discover images and connect them to their pages. How an image ranks depends on the page, its alt text and the text around it. Our post on how to write alt text for images covers that part.
Should I still use image:caption and image:title?
They do no harm, but Google has ignored them since Aug 6, 2022. Put that text on the page instead.
Does Bing read image sitemaps?
We could not find Bing's own documentation saying either way on Nov 28, 2026. Bing does read standard sitemaps and their lastmod, so an image sitemap is still a normal sitemap to Bing, whatever it does with the image tags.
Do I need a separate sitemap for images?
No. Adding image:image tags to the sitemap you already have works just as well for Google.
Will a sitemap get Google to index images inside a CSS background?
No. Google does not index CSS images at all. Put the image in an img tag, with alt text, and give it sensible sizes; our guide to what size images should be for a website shows how.
What Heart Photos does
Heart Photos lists every public photo's page in its sitemap together with its image, which lives on a separate host, i.heart.photos, the case Google's documentation names. Each photo page also carries its image in an ordinary img tag with alt text, as its share image and in structured data, so the sitemap is one way in among several, not the only one. Unlisted and private photos are never in the sitemap, since they are meant only for the people who hold the link or for their owner; our post on private vs unlisted explains the difference. Each page's lastmod is the day it last changed, where that is known, never the day the sitemap was built.
To share your own images publicly and let search engines find them, open Heart Photos and upload one.