Adding Images To Your Sitemap

Posted on by Geoff Simon

If you were left with questions after the last post it was because I never got to give examples of the formatting of images in your sitemap.  Hopefully people just googled it if they were serious, already knew, didn’t care, ad nauseum of reasons, and in case you didn’t we got you covered with this thrilling follow up post.  Taken straight from Google here, this is what the syntax would look like for one page that includes two images.

You can add up to 1,000 images per page by the way, just in case you have a page with over 1k images, you have been officially PWND by Google when it comes to adding all your images on that page to your sitemap, pfffft.

<?xml version=”1.0? encoding=”UTF-8??>

<urlset xmlns=”












While this is a boilerplate format, the following is a table, again, taken from Google’s page on including image url’s in your xml sitemaps of what is required and what is optional.  The above example doesn’t include all of the variables listed below.

Tag Required Description
<image:image> Yes Encloses all information about a single image. Each URL (<loc> tag) can include up to 1,000 <image:image> tags.
<image:loc> Yes The URL of the image.
<image:caption> Optional The caption of the image.
<image:geo_location> Optional The geographic location of the image. For example, <image:geo_location>Limerick, Ireland</image:geo_location>.
<image:title> Optional The title of the image.
<image:license> Optional A URL to the license of the image.


This entry was posted in Web Design, Web Development by Geoff Simon. Bookmark the permalink.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *



You may use these HTML tags and attributes: <a class="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Advertise | About Us
2549 Richmond Road Second Floor Lexington, KY 40509 | Phone: (859) 514-2720 | Fax: (859) 219-9065
Newsletter Archive | RSS Feed | Terms & Conditions
DevNewz is an iEntry Network ® publication - © 1998-2012 All Rights Reserved is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.