Image Sitemap Guide for SEO
If your website relies heavily on visual content—such as an e-commerce store, a photography portfolio, or a recipe blog—ranking in Google Image Search can drive significant traffic. To ensure Google finds all your critical images, you can use Image Sitemaps.
How Image Sitemaps Work
Unlike standard web page URLs, images are often embedded deep within CSS or loaded dynamically via JavaScript, making them harder for Googlebot to discover. An image sitemap explicitly declares the location of images associated with a specific webpage.
Image Sitemap Syntax
You can create a separate image sitemap, or, more commonly, add image extensions to your existing XML sitemap.
<?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/photography/sunset</loc>
<image:image>
<image:loc>https://example.com/images/sunset-highres.jpg</image:loc>
<image:caption>A beautiful sunset over the mountains</image:caption>
</image:image>
</url>
</urlset>
Key Tags
xmlns:image: You must declare the Google image schema namespace in the<urlset>tag.<image:image>: Encloses all information about a single image. You can list up to 1,000 images per<url>.<image:loc>: The absolute URL of the image file.<image:caption>(Optional): A caption explaining the image.<image:title>(Optional): The title of the image.
Best Practices
Only include critical, content-rich images. Do not bloat your sitemap with UI elements, logos, spacer images, or generic stock photos. Ensure your images are not blocked by robots.txt and that they are served via a reliable CDN to guarantee fast loading speeds.
Optimize Your Site Today
Apply these SEO principles by generating a clean, protocol-compliant XML sitemap.
Go to Generator Tool