Guides › Sitemaps
Image sitemaps: syntax and when you need one
Image sitemap entries help Google discover images it might not find by crawling, for example images loaded by JavaScript. They're optional for most sites.
<?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/product/blue-lamp</loc>
<image:image>
<image:loc>https://cdn.example.com/img/blue-lamp.jpg</image:loc>
</image:image>
</url>
</urlset>
- Up to 1,000 images per
<url>. - Images may be on a CDN on another domain.
- Google deprecated the
image:caption,image:title,image:licenseandimage:geo_locationtags in 2022. Onlyimage:locis used.
Check your site now