Guide : Image Sitemap

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

Première publication : 22 juin 2026 · Dernière mise à jour : 3 août 2026 · Advanced
Langues
1 indice probant sur cette page

An image sitemap is an extension to a normal XML sitemap que listes votre images en utilisant Google's image namespace (http://www.google.com/schemas/sitemap-image/1.1) — sans que namespace the image tags are ignored. Vous ajouter <image:image> blocks (chaque with an <image:loc>) à l’intérieur the <url> entry pour lune page; up to 1 000 images per URL. It surfaces images Google pourrait miss (JavaScript-loaded or dynamically served) and vous pouvez put the tags in a standalone fichier or fold les into an existing sitemap — les deux are fine. Google deprecated image:caption, image:geo_location, image:title and image:license in August 2022; leaving les in has aucun indexation effect, so don't panic. Accepted image formats are BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF. Cross-domain image hosting fonctionne si les deux domains are verified in Search Console and robots.txt permet exploration. Bing ne fait pas document image-sitemap prise en charge.

TL;DR — An image sitemap is an extension to a normal XML sitemap: ajouter the namespace http://www.google.com/schemas/sitemap-image/1.1 to <urlset>, alors nest <image:image><image:loc> à l’intérieur chaque <url> (up to 1 000 images per URL). Sans the namespace the image tags are ignored. Standalone fichier or tags in an existing sitemap — les deux are fine. It surfaces images Google pourrait miss (JS-loaded, dynamically served). Google deprecated image:caption, image:geo_location, image:title, and image:license in August 2022 — leave les or supprimer les, aucun indexation effect soit façon. Accepted image formats: BMP, GIF, JPEG, PNG, WebP, SVG, AVIF. Cross-domain images fonctionner si les deux domains are verified in Search Console and robots.txt permet exploration. Bing doesn’t document image-sitemap prise en charge.

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

Ce que c’est, mechanically

An image sitemap is a sitemap extension, pas a distinct fichier type. Vous prendre a standard XML sitemap and ajouter Google’s image namespace to the root <urlset> element:

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

Alors, à l’intérieur the <url> block pour chaque page, vous ajouter un <image:image> element per image, chaque containing an <image:loc> with the image file’s URL. Google’s docs décrire <image:image> as the element que “[encloses] tout information à propos de a unique image,” and remarque que chaque <url> tag peut contain up to 1 000 <image:image> tags. So the structure is: un <url> par page → nombreux <image:image> per <url> → un <image:loc> per image.

Que namespace line is load-bearing. Leave it off and Google ignores the image tags entirely — they’re simplement unknown XML to it. Ce is the unique la plupart courant raison an “image sitemap” ne fait pashing.

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 garde the expanded version pour multiple images and implementation checks; ce is the smallest utile shape to comparer contre generated output.

Pourquoi bother — discovery of images Google pourrait miss

Si votre images sit in plain <img src="…"> tags in the served HTML, Google généralement trouve les via the normal explorer and vous don’t strictly besoin an image sitemap. The cas pour un is discovery of images the explorer can’t easily voir: images chargé or swapped in by JavaScript, images served dynamically, or images referenced in a façon que isn’t a clean HTML src. Listing les explicitly donne Google a direct chemin to images it voudrait sinon overlook. Comme every sitemap, ce is a discovery aid — it doesn’t guarantee indexation, and it isn’t a ranking lever.

Standalone fichier vs. tags in an existing sitemap

There’s aucun correct réponse ici — Google accepts les deux. Vous pouvez garder everything in un sitemap and simplement ajouter image tags to the relevant <url> entries, or generate a dedicated image-only sitemap (souvent ce que a plugin fait) and submit it alongside votre regular un. Pick whichever votre toolchain produces cleanly. Si you’re on a JS framework, search the framework nom plus “sitemap image” avant hand-rolling anything — there’s usually a module que déjà fait it.

The deprecated tags — and pourquoi vous needn’t panic

Ce is où la plupart third-party guides are out of date. In August 2022 Google supprimé four image tags from its documentation: <image:caption>, <image:geo_location>, <image:title>, and <image:license>. Google’s docs dire plainly que it “supprimé the suivant tags and attributes from our documentation,” listing exactly ceux four.

Crucially, removing les from the docs did pas mean vous had to rush out and strip les from votre fichiers. Gary Illyes was explicit que, pour plugin developers and anyone managing leur propre sitemaps, “there’s aucun immediate action requis; vous pouvez leave ces tags and attributes in placer sans drawbacks.” There’s aucun penalty and aucun indexation effect soit façon. So si votre generator encore emits les, leave it; si you’d plutôt have a clean fichier, supprimer les. Les deux are fine — simplement don’t treat leur presence as a problem to fix urgently.

The two tags que encore matter are the structural ones: <image:image> and <image:loc>. That’s the current, pris en charge surface area.

Accepted image fichier formats

A reasonable question avant vous bother listing an image: va Google même index it? Recherche Google supports images in BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF — its docs dire it “supports images referenced in the src attribute of img in the suivant fichier formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF.” Votre <image:loc> URL devrait point at a crawlable fichier in un of ceux formats. Point it at something Google can’t lire and listing it in a sitemap won’t aider.

Cross-domain images

Votre images don’t have to live on the même domain as lune page que displays les — a CDN or dedicated image host is fine. But là are two conditions pour Google to utiliser cross-domain image références in a sitemap:

  1. Les deux domains doit be verified in Search Console (lune page’s domain and the image host’s domain), and
  2. The image host’s robots.txt doit autoriser Googlebot to explorer the image fichiers.

Miss soit un and the cross-domain images won’t be picked up. Si vous serve images from an image subdomain or third-party CDN, vérifier que property and vérifier its robots.txt avant vous assume le sitemap is doing its job.

Meilleur practices

Le sitemap is plumbing; the image-SEO fundamentals encore appliquer. Follow Google’s Google Images publishing guidelines: descriptive, accurate alt text; meaningful filenames; high-quality, fast-loading images que are genuinely relevant to the page ils sit on; and a stable, crawlable URL pour chaque image fichier. Liste seulement images vous en réalité vouloir surfaced, and garder the <image:loc> URLs in a pris en charge format. Le sitemap improves discovery; ces practices are ce que decide si the découvert images do anything pour vous.

A remarque on Bing

Ce is a Google extension. Bing ne fait pas document prise en charge pour image sitemaps — its sitemap guidance defers to the base sitemaps.org protocol plutôt que ajout an image namespace of its propre. So don’t assume the <image:image> tags do anything pour Bing; treat the image sitemap as a Google-specific outil.

Où ce sits

An image sitemap is un member of a petit family of sitemap extensions. The base XML sitemap listes votre page URLs; a video sitemap fait the même job as ce un but pour video, with its propre namespace and tags; a sitemap index is the sitemap-of-sitemaps vous utiliser une fois vous outgrow a unique fichier; and the broader sitemaps overview ties les ensemble. Tout of les are à propos de the même goal que sits at the top of ce cluster — discovery.

Add an expert note

Pin an expert quote

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