Stay organized with collections Save and categorize content based on your preferences.
Image sitemapsImage sitemaps are 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). You can create a separate image sitemap or add image sitemap tags to your existing sitemap; either approach is equally fine for Google.
Image sitemaps are based on generic sitemaps so the general sitemap best practices also apply to image sitemaps. We also recommend that you follow the general best practices for publishing images.
Example image sitemapThe following example shows a regular sitemap with image sitemap extension, with two <url>
elements:
https://example.com/sample1.html
, which contains two imageshttps://example.com/sample2.html
, which contains one image<?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>Image sitemap reference
The image
tags are defined in the Image Sitemaps namespace: http://www.google.com/schemas/sitemap-image/1.1
To make sure Google can use your image sitemap, you must use the following required tags:
Required tags<image:image>
Encloses all information about a single image. Each <url>
tag can contain up to 1,000 <image:image>
tags. <image:loc>
The URL of the image.
In some cases, the image URL may not be on the same domain as your main site. This is fine, as long as you verify both domains in Search Console. If, for example, you use a content delivery network such as Google Sites to host your images, make sure that the hosting site is verified in Search Console. In addition, make sure that your robots.txt file doesn't disallow the crawling of any content you want indexed.
Deprecated tags and attributesWe removed the following tags and attributes from our documentation: <image:caption>
, <image:geo_location>
, <image:title>
, <image:license>
. See the deprecation announcement for more information.
Want to learn more? Check out the following resources:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-06 UTC."],[[["Image sitemaps inform Google about images on your site, including those loaded with JavaScript, which can be created separately or integrated into existing sitemaps."],["General sitemap best practices and image publishing guidelines should be followed for optimal image indexing."],["Each `\u003curl\u003e` tag in an image sitemap can contain up to 1,000 `\u003cimage:image\u003e` tags, with `\u003cimage:loc\u003e` specifying the image URL, even if hosted on a different verified domain."],["Previously supported tags like `\u003cimage:caption\u003e`, `\u003cimage:geo_location\u003e`, `\u003cimage:title\u003e`, and `\u003cimage:license\u003e` are now deprecated."],["You can submit your image sitemap to Google and combine it with other sitemap extensions for comprehensive indexing."]]],["Image sitemaps inform Google about images on a site, including those found via JavaScript. Create a separate image sitemap or add image tags to an existing one. Use the `\u003cimage:image\u003e` tag to enclose image details, allowing up to 1,000 per `\u003curl\u003e`, and utilize the `\u003cimage:loc\u003e` tag for the image's URL. Ensure both your main and any image hosting domains are verified in Search Console. Deprecated tags include `\u003cimage:caption\u003e`, `\u003cimage:geo_location\u003e`, `\u003cimage:title\u003e`, and `\u003cimage:license\u003e`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4