Google Webmaster Central Blog - Official news on crawling and indexing sites for the Google index

Adding Images to your Sitemaps

Wednesday, April 07, 2010 at 1:30 PM

Webmaster Level: All

Sitemaps are an invaluable resource for search engines. They can highlight the important content on a site and allow crawlers to quickly discover it. Images are an important element of many sites and search engines could equally benefit from knowing which images you consider important. This is particularly true for images that are only accessible via JavaScript forms, or for pages that contain many images but only some of which are integral to the page content.

Now you can use a Sitemaps extension to provide Google with exactly this information. For each URL you list in your Sitemap, you can add additional information about important images that exist on that page. You don’t need to create a new Sitemap, you can just add information on images to the Sitemap you already use.

Adding images to your Sitemaps is easy. Simply follow the instructions in the Webmaster Tools Help Center or refer to the example below:

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


We index billions of images and see hundreds of millions of image-related queries each day. To take advantage of that traffic most effectively, take a moment to update your Sitemap file with information on the images from your site. Let us know in the Sitemaps forum if you have any questions.

The comments you read here belong only to the person who posted them. We do, however, reserve the right to remove off-topic comments.

63 comments:

elkos said...
This comment has been removed by the author.
elkos said...

Wow that's really usefull especially for people that say have a webcomic in one part of their website... way to go guys!

BTW: "Alkis Evlogimenos" thats sounds Greek to me!

Devanshu M Bhatnagar said...

Nice Start to make your as many as images indexed by Google. It will be highly beneficial for websites that share images daily. Thank you webmaster central.

Daf said...

I develop for image libraries and photographers - I've been on Google Webmaster forums mentioning the importance of images as our content - and this is a great step - thanks.

Daryl said...

Great news,
is there any width and heigh specifications to images like facebooks rel="image_src" has?

Theres is 120px wide max

thanks

webselect said...

We dont give more info for the image like the attribute "alt" did?

Om said...

Another great feature to get images indexed well. Great Job!

Neeraj Srivastava said...

Wow! thats's really great and like a gift for the website with specific niche or the websites those base are images specially in designing industry.

Meenam009 said...

Wow that’s really good news to index images.
Is Google planning to show image along with search snippet, In future?

marketbizz said...

How is Google going to index the images, and value & rank them, without more information about the image?

E-Commerce-Blogger.de said...

because our product pictures have only numbers as file names, the alt attribute for each would be extrem important. Is that coming later?

agencehorizon said...

This feature seems to be Google-specific for the moment. Do you know if it will be part of the Sitemap "official" protocol in the future?

Susanne said...

Shit, great feature, but some day ago we launched our new Google XML-Sitemaps. It seems to be a never ending story for webmasters.

bg62 said...

bonjour
et comment, avec quel logiciel faire un sitemap qui inclue les urls des fichiers images ?

bg62 said...

bonjour
et comment, avec quel logiciel faire un sitemap qui inclue les urls des fichiers images ?

Catch me if u can said...

This will help to index more and more images as now a days image search contributes a lot of traffic to the site

stephou said...

Just pointing google to the main image is enough, they can get the rest of the info from the html (alt, width, height...)

Luciano said...

Hi,

Nice feature but the link off schema specication is not working (http://www.google.com/schemas/sitemap-image/1.1). Also google Webmaster's sitemap verification detects invalid tag "Invalid XML tag
This tag was not recognized. Please fix it and resubmit" - "Parent tag: loc
Tag: img
Problem detected on: Apr 8, 2010"

Seth &amp; Amanda said...

For those who asked if there are other attributes that can be added to img in sitemap... use the link OP posted to Webmaster Tools. You can add a title, caption, geographic location, and licensing url.

ShopDownLite.com said...

This is great to know.
I am little bit leery of having our images indexed because we do a good deal of custom photography and don't want anyone to be able to grab the images if they are a bedding related website.
If a home consumer wanted to grab them I think we would be fine - it's only when another down bedding manufacturer or retailer would sue them we are not sure how to block that usage.
Were currently playing with FLICKR and dealing with image usage policies.
Aside from literal product shots we have lots of in-house produced sleeping photography with models in bed, couples in bed, etc.
Stef @ http://www.shopdownlite.com

Bart Calixto said...

in the examples says: <loc>http://example.com/sample.html</loc>
while on the reference tags is

making it terrible confusing.

Greetings,
Bart.

Bart Calixto said...

<loc>http://example.com/sample.html</loc>
while on the reference tags is
<image:loc>
making it terrible confusing.

Greetings,
Bart.

Bart Calixto said...

blogger should have the option to change all < and > characters to &gt & &lt characters if they aren't the supported html tags.

blogger is python? 1 line of code and it's done : 3 or 4 lines of code and it's done.

TravelExpert said...

hi...please tell me where i could find a free sitemap generator for all the site...not only for a few pages.

Tks!

BigIslandIT.com said...

I have a couple questions... How are images that are directly displayed in a browser supposed to be mapped? I.E. www.myhome.com/image1.jpg

Also and this goes way beyond the scope of this discussion...how come a content tag or attribute be added to the XML so pics that come right out of camera's have more value than DSC_123.jpg?

How's about a content attribute on the image node that could hold comma delimited comments. I.E.

http://example.com/image.jpg

abacus said...

The example shows:

<image:geo_location>Limerick, Ireland</geo_location>

Shouldn't this be:

<image:geo_location>Limerick, Ireland</image:geo_location>

?

Jonathan Simon said...

Hey abacus,

Good catch...Updated!

George said...

Does image need to be on that page?
For example i have a product page and it has an image's thumbnail on it. But when you click on thumbnails it opens up bigger picture of the product. Do i need to add 2 images to the XML feed in this case, or just big one?

kylefox said...

Very cool, this will come in handy for our photography blogs (myfotojournal.com)

Ed said...

Umm...http://www.google.com/schemas/sitemap-image/1.1 is currently a 404.

So the sitemap.xml is not validating, and google webmaster tools is rejecting it.

Daf said...

Since the schema is missing...

What's the difference between a Title + Caption ?

jdutil said...

I've got the same question as Daf:
What's the difference between a Title & Caption?

Tihomir said...

Hi,

I tried to open the URL:

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

but I get Error 404 Not Found. In this way cannot validate my sitemap with images.

tep said...

i tried image tag but gives
"Sitemap file size error
Your Sitemap exceeds the maximum file size limit. Please create multiple Sitemaps containing fewer URLs to meet the file size limit." in spite of number of urls are 49,500 ?!?!

tep said...

one more issue that new image tag is not working properly with mobile sitemaps as well :(

.::b451r_705::. said...

how it works?

regard
blorapost.com
jogja-art.com

Duc fish said...

I had just up sitemap to my site, non cluding encode constructure image, my site have to many image but it disappear search engines,
"http://example.com/image.jpg"
I have to make it handicraft
i have to many product on my site
anyone can help me learn more about this.
www.dkptimex.com
www.ducfish.com/ducfishs
thanks and best regard

Duc fish said...

i created a sitemap and sumited it, is it contain index image. if have i can i find it ?

Joydeep said...

Great stuff and helpful for webmasters for indexing their images in google.

Also is google gonna come up with something similar for videos? (indexing videos).

manish said...

Very informative services for me, and provide some important information. http://www.unv7.com/

tep said...

interesting ?!?

when i decrease record count from 49500 to 19000 , it is working like a charm :)

Dogacan Yildirim Kanat said...

How we can use this new feature in our blogger/blogspot hosted sitemaps? As i know we can't edit it sitemap manually in blogger/blogspot.

projectorscreens said...

Nice Update to index your site more images.

Siju George said...

Very interesting. But it may be difficult to include all images in my sitemap. I am on the way to update my sitemap

WebSanity Internet Marketing said...

Great idea but shame it doesn't appear to work here in the UK:

Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.

John Mueller said...

What's the URL of your Sitemap file, WebSanity? Perhaps it would make sense to start a thread in the Help Forum, so that we (and the expert users there) could take a better look :).

loser17 said...

Its really very good and beneficial blog. I haven't any images in my site map but now, after reading your blog i would like to add those one. Thanks for sharing this info..hope in future too..

ravi shrivastav said...

Not Found
The requested URL /schemas/sitemap-image/1.1 was not found on this server.

DO Google recomment validating of sitemap files

Debanjan said...

WoW ! That s a great news . I think more dynamic result we will get from SERP.

julien said...

I have the same problem : The requested URL /schemas/sitemap-image/1.1 was not found on this server. Did anybody fix that.

Where can I find this schema?

Regards

blogue.virtu-oz.com

xstroy said...

For over almost 2 months, as announced this possibility, but only today for the first time I heard about it.
How to specify two or more images on one url?

valse said...

Hi...

geo_location must be only a city name or coordinates couple too?

Valentina said...

Hello,

I have a question : can I submit in the image sitemap images that are to be seen on pages that are in NOINDEX ? Does this imply that Google will not index the image ?
I am of course talking about the pages on which the pictures are visible and not about the pictures' hosting URLs (in .jpg).

Thank you,
V.

sench said...

Thank you for this article.
We have already included a feature for adding images to sitemap items in our sitemap generator - Sitemap Writer Pro.
However we've received a number of feedback from our customers, complaining that Google can't recognize sitemap format (in Google's webmaster tools) that includes images. Is there any reason for that?

ravi shrivastav said...

@sench
Under format it show's "--" .
May Google engineer already working on it

india143.org said...

Thanks for this post. .. It just solves problem of many webmaster who were using Images in their sites.

JustTal said...

The man who has a problem.

just copy the:




Again.

The one google has is not good...

white-rabid said...

Great Job! I know noe that I can add images to sitemap )

white-rabid said...

Great job! Now I know that images I can add to sitemap )

Nico said...

It's really great, but cant use it alongside Bing Webmaster.

Oh well, who cares about bing, google is the only search engine that only matter

Mr. Willis said...

I know this is an old post but It seemed an appropriate place to bring this up... when I put images into my sitemap, and submit them to Webmaster Tools, it appears that Webmaster Tools labels them as "Image Sitemaps". Is there a difference in distinguishing between an "Image" sitemap and a "Content" sitemap. Based upon the XML schema it seems there should not be a difference, however I just want to make sure.

whatabeautifullife said...

We have submit an image sitemap, but it can not indexed any image. What is the problem? Can you give me some advice? our sitemap url is http://www.whatabeautifullife.com/imagesitemap/newimage_1.xml

Google Webmaster Central said...

Hi everyone,

Since over a year has passed since we published this post, we're closing the comments to help us focus on the work ahead. If you still have a question or comment you'd like to discuss, free to visit and/or post your topic in our Webmaster Central Help Forum.

Thanks and take care,
The Webmaster Central Team