By the ImageSEO Team · updated October 2026 · about 7 min read
Quick answer: an image sitemap is a list of the image URLs on each page of your site, added to an XML sitemap with <image:image> tags. It helps Google find images it might otherwise miss, such as images loaded by JavaScript. It does not help them rank. If your images are normal <img> tags in the HTML, Google usually finds them anyway. On WordPress you rarely need to build one yourself: Yoast SEO and Rank Math add image entries to their sitemaps automatically. What matters more is that your sitemap actually updates, which we learned the hard way with this very article.
An image sitemap isn’t a special file type. It’s a normal XML sitemap with extra tags for the images on each page:
<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/blue-ceramic-vase/</loc>
<image:image>
<image:loc>https://example.com/images/blue-ceramic-vase-front.jpg</image:loc>
</image:image>
<image:image>
<image:loc>https://example.com/images/blue-ceramic-vase-side.jpg</image:loc>
</image:image>
</url>
</urlset>
The rules, from Google’s image sitemap documentation:
<image:image> and <image:loc>. Google removed image:caption, image:title, image:geo_location and image:license from its documentation in 2022, so there’s no point filling them in.Google says image sitemaps help it discover images it might not otherwise find. In practice that means:
<img> elements in the page HTML. Google says standard image elements help crawlers find and process images, including images inside a <picture> element.One thing a sitemap can’t fix: CSS background images. Google says it doesn’t index CSS images. If a product photo or hero image is set with background-image, listing it in a sitemap won’t make it show up in Google Images. Use a real <img> element with alt text instead.
This article was published on 3 September 2026, and at first Google didn’t know it existed.
Our blog sitemap had been frozen since 27 August. It still returned a normal page, so nothing looked broken, but anything published after that date was missing from it. The cause turned out to be a cache: our SEO plugin cleared its cached sitemap with a database query that does nothing on servers running a persistent object cache (Redis), so the old version was kept.
The result, measured in Google Search Console:
Same template, same blog, one week apart. The difference was the sitemap. Once we fixed the cache, the sitemap updated within minutes and we asked Google to crawl the article. The lesson isn’t really about image tags: check that your sitemap actually changes when you publish. If it doesn’t, your images and pages are both invisible, however well they’re optimised.
Yoast’s XML sitemaps include the images on each post and page automatically. Since Yoast SEO 18.8 they contain only the image:loc tag, matching Google’s current rules. If a theme or page builder outputs images Yoast can’t see, developers can add them with the wpseo_sitemap_urlimages filter.
Rank Math adds images to its post and page sitemaps when the Include Images option is on in its sitemap settings. Our own blog sitemap is generated this way: 133 of its 147 posts carry image entries.
Dedicated sitemap plugins and online generators can create a standalone image sitemap. Only use one if your SEO plugin doesn’t already add images, otherwise you’ll list the same images twice.
/sitemap_index.xml (Yoast and Rank Math), and click a post or page sitemap.<image:loc> entries inside the URLs. View the page source if your browser shows a styled table.To audit the whole sitemap rather than one page (deleted URLs still listed, wrong lastmod dates, pages missing from it), we recommend SitemapFixer.
A sitemap gets an image discovered. Whether it then shows up for a search depends on what Google can read about it: alt text (which Google calls the most important attribute for image metadata), the text around the image and, to a lesser degree, the file name. In our crawl of 306,634 images on the most-visited homepages, 11.3% had no alt attribute at all, so a sitemap would have sent Google to images it couldn’t describe. The image SEO guide covers the full list, and the ImageSEO plugin writes alt text and file names for a WordPress media library automatically.
No. Adding image tags to your existing sitemap works just as well, and that’s what Yoast and Rank Math do. A separate file is only useful if you generate it with a different tool.
Not directly. It helps Google find images. Ranking depends on alt text, page content and how useful the page is.
No. Google removed those tags from its documentation in 2022, and Yoast stopped outputting them the same year.
Up to 1,000 images per page URL.
Yes, including images on another domain, as long as both domains are verified in Search Console and the images aren’t blocked by robots.txt.
No. Google doesn’t index CSS images. Use an <img> element for any image you want in search.