Image Sitemap

What an image sitemap is and why it exists — the image namespace, the image:image and image:loc tags, the tags Google deprecated in 2022, accepted formats, and cross-domain images.

First published: Jun 22, 2026 · Last updated: Jul 28, 2026 · Advanced
demand #7 in Discovery#34 in How Search Works#176 in Technical SEO#230 on the site
1 evidence signal on this page

An image sitemap is an extension to a normal XML sitemap that lists your images using Google's image namespace (http://www.google.com/schemas/sitemap-image/1.1) — without that namespace the image tags are ignored. You add <image:image> blocks (each with an <image:loc>) inside the <url> entry for the page; up to 1,000 images per URL. It surfaces images Google might miss (JavaScript-loaded or dynamically served) and you can put the tags in a standalone file or fold them into an existing sitemap — both are fine. Google deprecated image:caption, image:geo_location, image:title and image:license in August 2022; leaving them in has no indexing effect, so don't panic. Accepted image formats are BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF. Cross-domain image hosting works if both domains are verified in Search Console and robots.txt allows crawling. Bing does not document image-sitemap support.

TL;DR — An image sitemap is an extension to a normal XML sitemap: add the namespace http://www.google.com/schemas/sitemap-image/1.1 to <urlset>, then nest <image:image><image:loc> inside each <url> (up to 1,000 images per URL). Without the namespace the image tags are ignored. Standalone file or tags in an existing sitemap — both are fine. It surfaces images Google might miss (JS-loaded, dynamically served). Google deprecated image:caption, image:geo_location, image:title, and image:license in August 2022 — leave them or remove them, no indexing effect either way. Accepted image formats: BMP, GIF, JPEG, PNG, WebP, SVG, AVIF. Cross-domain images work if both domains are verified in Search Console and robots.txt allows crawling. Bing doesn’t document image-sitemap support.

Evidence for this claim Image sitemap extensions provide Google with information about images it might otherwise not discover. Scope: Current Google image sitemap behavior. Confidence: high · Verified: Google Search Central: Image sitemaps Evidence for this claim Each image sitemap entry requires image:loc; several legacy image fields were deprecated in 2022. Scope: Current image sitemap schema and deprecated fields. Confidence: high · Verified: Google Search Central: Image sitemap reference

What it is, mechanically

An image sitemap is a sitemap extension, not a distinct file type. You take a standard XML sitemap and add Google’s image namespace to the root <urlset> element:

xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"

Then, inside the <url> block for each page, you add one <image:image> element per image, each containing an <image:loc> with the image file’s URL. Google’s docs describe <image:image> as the element that “[encloses] all information about a single image,” and note that each <url> tag can contain up to 1,000 <image:image> tags. So the structure is: one <url> per page → many <image:image> per <url> → one <image:loc> per image.

That namespace line is load-bearing. Leave it off and Google ignores the image tags entirely — they’re just unknown XML to it. This is the single most common reason an “image sitemap” does nothing.

Minimal valid structure

<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/sample.html</loc>
    <image:image>
      <image:loc>https://example.com/image.jpg</image:loc>
    </image:image>
  </url>
</urlset>

The Scripts lens keeps the expanded version for multiple images and implementation checks; this is the smallest useful shape to compare against generated output.

Why bother — discovery of images Google might miss

If your images sit in plain <img src="…"> tags in the served HTML, Google generally finds them through the normal crawl and you don’t strictly need an image sitemap. The case for one is discovery of images the crawl can’t easily see: images loaded or swapped in by JavaScript, images served dynamically, or images referenced in a way that isn’t a clean HTML src. Listing them explicitly gives Google a direct path to images it would otherwise overlook. Like every sitemap, this is a discovery aid — it doesn’t guarantee indexing, and it isn’t a ranking lever.

Standalone file vs. tags in an existing sitemap

There’s no right answer here — Google accepts both. You can keep everything in one sitemap and just add image tags to the relevant <url> entries, or generate a dedicated image-only sitemap (often what a plugin does) and submit it alongside your regular one. Pick whichever your toolchain produces cleanly. If you’re on a JS framework, search the framework name plus “sitemap image” before hand-rolling anything — there’s usually a module that already does it.

The deprecated tags — and why you needn’t panic

This is where most third-party guides are out of date. In August 2022 Google removed four image tags from its documentation: <image:caption>, <image:geo_location>, <image:title>, and <image:license>. Google’s docs say plainly that it “removed the following tags and attributes from our documentation,” listing exactly those four.

Crucially, removing them from the docs did not mean you had to rush out and strip them from your files. Gary Illyes was explicit that, for plugin developers and anyone managing their own sitemaps, “there’s no immediate action required; you can leave these tags and attributes in place without drawbacks.” There’s no penalty and no indexing effect either way. So if your generator still emits them, leave it; if you’d rather have a clean file, remove them. Both are fine — just don’t treat their presence as a problem to fix urgently.

The two tags that still matter are the structural ones: <image:image> and <image:loc>. That’s the current, supported surface area.

Accepted image file formats

A reasonable question before you bother listing an image: will Google even index it? Google Search supports images in BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF — its docs say it “supports images referenced in the src attribute of img in the following file formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF.” Your <image:loc> URL should point at a crawlable file in one of those formats. Point it at something Google can’t read and listing it in a sitemap won’t help.

Cross-domain images

Your images don’t have to live on the same domain as the page that displays them — a CDN or dedicated image host is fine. But there are two conditions for Google to use cross-domain image references in a sitemap:

  1. Both domains must be verified in Search Console (the page’s domain and the image host’s domain), and
  2. The image host’s robots.txt must allow Googlebot to crawl the image files.

Miss either one and the cross-domain images won’t be picked up. If you serve images from an image subdomain or third-party CDN, verify that property and check its robots.txt before you assume the sitemap is doing its job.

Best practices

The sitemap is plumbing; the image-SEO fundamentals still apply. Follow Google’s Google Images publishing guidelines: descriptive, accurate alt text; meaningful filenames; high-quality, fast-loading images that are genuinely relevant to the page they sit on; and a stable, crawlable URL for each image file. List only images you actually want surfaced, and keep the <image:loc> URLs in a supported format. The sitemap improves discovery; these practices are what decide whether the discovered images do anything for you.

A note on Bing

This is a Google extension. Bing does not document support for image sitemaps — its sitemap guidance defers to the base sitemaps.org protocol rather than adding an image namespace of its own. So don’t assume the <image:image> tags do anything for Bing; treat the image sitemap as a Google-specific tool.

Where this sits

An image sitemap is one member of a small family of sitemap extensions. The base XML sitemap lists your page URLs; a video sitemap does the same job as this one but for video, with its own namespace and tags; a sitemap index is the sitemap-of-sitemaps you use once you outgrow a single file; and the broader sitemaps overview ties them together. All of them are about the same goal that sits at the top of this cluster — discovery.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin an expert quote first.