Cyber SEO: 50% off
Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

Image Sitemap: Google's Official Syntax, Examples and When You Need One

Image sitemap guide: Google's official XML syntax, the 4 tags removed in 2022, when it helps (JavaScript, CDN, galleries) and how to create and submit one.

Published on
28/10/2026
Updated on
28/10/2026
Reading time
8 min
Cover of the article “Image Sitemap”, with a screenshot of the Sorank software next to the title

Tools

On this page

In short

An image sitemap is an XML sitemap that lists, for each page, the URLs of the images it contains, using Google's image extension (namespace http://www.google.com/schemas/sitemap-image/1.1). Only two image tags exist today: image:image and image:loc, with up to 1,000 images per page. You can add these tags to your existing sitemap or create a separate file. It is worth doing when Google may miss your images: galleries loaded by JavaScript, images on a CDN, or sites where images drive traffic (photography, e-commerce, real estate, recipes).

Want to go further? Ask

Quick quiz

Who should fix the technical side of your site?

Question 1 of 425%
What is happening today?

An image sitemap is one of the few levers that tells Google directly which images matter on your site. Google's image sitemap documentation (last updated December 2025) sets the rules, and they became much simpler after 2022. Many guides still show tags that Google no longer reads. This one sticks to the official syntax, explains when a sitemap helps and when it changes nothing, and lists the mistakes that keep images out of the index.

What is an image sitemap?

An image sitemap is a standard XML sitemap extended with image entries. Each url element still points to a page, and inside it you list the images that appear on that page. Google uses the file as a discovery hint: in its Google Images best practices (updated March 2026), it explains that you can provide "the URL of images we might not have otherwise discovered by submitting an image sitemap."

Two points are often misunderstood:

  • It does not have to be a separate file. Google accepts image tags inside your existing sitemap or in a dedicated sitemap; both work the same way.
  • It helps discovery, not ranking. Once an image is found, Google ranks it on the page context: alt text, file name, caption, nearby text and page quality. Our guide to image SEO covers those signals.

What is the official image sitemap syntax?

Here is the format Google documents, with one page holding two images and a second page holding one:

<?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/sample1.html</loc>
    <image:image>
      <image:loc>https://example.com/image.jpg</image:loc>
    </image:image>
    <image:image>
      <image:loc>https://example.com/photo.jpg</image:loc>
    </image:image>
  </url>
  <url>
    <loc>https://example.com/sample2.html</loc>
    <image:image>
      <image:loc>https://example.com/picture.jpg</image:loc>
    </image:image>
  </url>
</urlset>

Each element has a precise role:

ElementStatusRole
xmlns:image on urlsetRequiredDeclares the image namespace http://www.google.com/schemas/sitemap-image/1.1
url and locRequiredThe page where the images appear (an indexable, canonical URL)
image:imageRequiredWraps one image; up to 1,000 per url element
image:locRequiredThe absolute URL of the image file; it may sit on another domain, such as a CDN

The general sitemap limits still apply: Google's sitemap guide caps a single file at 50MB uncompressed or 50,000 URLs. A large catalogue with many images per page reaches the size limit faster, so split it and group the files in a sitemap index. The same guide notes that Google ignores priority and changefreq, and uses lastmod only when it is consistently accurate.

Which image sitemap tags did Google remove?

On May 6, 2022, Google announced in its "spring cleaning" post that it would stop supporting four image tags, effective August 6, 2022. Leaving them in a file causes no error, but they carry no value for Google.

Removed tagWhat it didWhat to use instead
image:captionDescribed the imageA visible caption and descriptive alt text on the page
image:titleNamed the imageA descriptive file name and the text around the image
image:geo_locationGave the place shownName the place in the caption or nearby text
image:licensePointed to the licenseIPTC photo metadata or image license structured data

Tip

If your plugin or generator still writes image:title or image:caption, there is nothing to fix urgently. Put the effort into the alt text and captions on the page instead, since that is where Google and the AIs read the description.

When do you need an image sitemap?

For a small blog whose images sit in plain img elements, Google finds them by crawling the page and a dedicated sitemap adds little. The value grows when discovery is uncertain or when images bring business:

You benefit from an image sitemap whenYou can skip it when
Galleries, carousels or lightboxes load images with JavaScriptImages are standard img elements in the HTML
Images are served from a CDN or another domainImages are on your own domain and pages are well linked
Images are a traffic source: photographers, online stores, real estate, recipes, travelImages are decorative or stock photos used everywhere
You publish many new images every weekThe site rarely changes
Search Console shows few image impressions despite many original imagesGoogle Images already sends steady traffic

JavaScript is the most common reason. If a slider only injects its images after a click or a swipe, Googlebot may never see them. Google's guide to lazy-loaded content asks that images load when they enter the viewport, without relying on scrolling or clicking, and that their URLs appear in the src attribute of the rendered HTML. Fix the rendering first (see our article on JavaScript SEO), then use the sitemap as a safety net.

Watch out

Google does not index CSS background images. Listing them in a sitemap will not change that: move the images that matter into img elements with descriptive alt text.

How to create an image sitemap in 5 steps

1. Choose which images to list

List original images that carry information: product photos, project photos, diagrams, infographics, recipe steps. Leave out icons, logos repeated on every page, spacers and generic stock photos. Run an alt text checker on the pages concerned at the same time: an image found without a description is hard to rank.

2. Check what your platform already generates

Open your sitemap and search for image:image. The default WordPress sitemap (wp-sitemap.xml) does not list images. Rank Math has an option to include images in its sitemaps, and Yoast SEO adds images found in post content. Shopify product sitemaps carry image entries, but merchants report that usually only the main product image appears, so stores with many photos per product often use an app or a custom file. For a custom site, generate a base file with an XML sitemap generator and add the image entries from your database or media library.

3. Write clean entries

  • Use the canonical page URL in loc, never a redirected or noindex URL.
  • Use absolute image URLs (https://...) that return a 200 status.
  • List an image under each page where it appears if several pages use it.
  • Serve compressed files: a light image loads faster for users and crawlers. An image compressor handles JPEG, PNG and WebP.

4. Make the images crawlable

If the images sit on a CDN, Google recommends verifying that domain in Search Console as well. Check that robots.txt does not block the image folder or the CDN path with a robots.txt checker, and that the image URLs do not require cookies or a login.

5. Validate and submit

Test the file with a sitemap checker to catch invalid XML, a missing namespace or broken URLs. Then submit it in Search Console (Indexing, then Sitemaps) and add a Sitemap: line in robots.txt. Our step-by-step guide on how to submit a sitemap to Google explains every status in the report.

What are the most common image sitemap mistakes?

MistakeConsequenceFix
Missing xmlns:image declarationImage tags are not recognised and the file reports parsing errorsDeclare the namespace on urlset
Relative image URLs (/img/photo.jpg)Entries are invalidUse full https URLs
Image URLs that redirect or return 404Images are droppedRegenerate the file after any media migration
Pages in noindex or blocked by robots.txtImages on those pages lose their contextList only indexable pages
CDN path blocked in robots.txtGoogle cannot fetch the filesAllow the image paths
Thumbnails listed instead of full imagesSmall, low-quality versions appear in resultsList the largest useful version
Relying on removed tags for descriptionsThe description is ignoredWrite alt text and captions on the page

To check the result, filter the Search Console performance report by search type "Image" a few weeks after submission and compare impressions on the pages concerned before and after.

Image sitemaps, Google Images and the AIs

Images are a search channel of their own: Google Images, Google Lens and visual search all start from images Google has discovered and indexed. For online stores, a product photo that appears in image results is a second way into the product page.

For ChatGPT, Gemini, Perplexity or Claude, the sitemap matters less than the words around the image. These assistants mostly read text: they understand an image through its alt text, its caption and the paragraph that explains it. The sitemap gets the image found; the text gets it understood and quoted. A chart with a clear caption and a sentence stating the key figure is far more likely to be reused in an AI answer than the same chart with an empty alt attribute.

This is the approach behind the Sorank article generator: each article is written for Google and the AIs, published with its images and their alt text, then sent to your WordPress, Shopify, Webflow or Wix site, whose sitemap picks it up automatically. To check the images and tags of any page in one click, install the free Sorank Chrome extension.

Sorank form for generating an SEO article with images from a keyword

Is an image sitemap worth it for your site?

If your images live in clean img elements on well-linked pages, Google will find them without help, and your time is better spent on alt text, file names and compression. If they load with JavaScript, sit on a CDN or bring customers, an image sitemap with only image:image and image:loc is a quick, low-risk fix: list the original images, check that they are crawlable, then submit the file and watch image impressions in Search Console. To publish illustrated articles regularly without writing them by hand, see the Sorank plans, from $49 per month billed annually, with a 3-day free trial.

Frequently asked questions

Does an image sitemap improve rankings in Google Images?

Not directly. An image sitemap helps Google discover images it might otherwise miss, especially those loaded by JavaScript or hosted on a CDN. Ranking then depends on the page context: alt text, file name, caption, surrounding text and the quality of the page itself.

Should I put images in my main sitemap or create a separate image sitemap?

Google treats both options the same way. Adding image tags to your existing sitemap is simpler on most sites. A separate image sitemap is handy on large sites because you can follow it on its own in the Search Console Sitemaps report.

Can I include images hosted on another domain in my image sitemap?

Yes. Unlike page URLs in a regular sitemap, image URLs in image:loc can point to another domain, such as a CDN. Google recommends verifying that domain in Search Console too, and the image paths must not be blocked by robots.txt.

Free SEO & GEO audit

Get your content plan for 30 days for free

We analyse your competitors, your website and your AI visibility to create a tailored content plan for free.

Our free SEO tools

See all our free tools

Get a free audit of your site

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthLead generation for installers

x98 clicks in 2 months

LeadBolt Agencyleadbolt.online
Organic growthMusic software

x55 clicks in 5 months

Valentin Cordiertiger-sounds.com