Robots & Sitemap Checker

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>
Check your site now

Related

XML sitemap format: a minimal valid exampleSitemap index files: when and how to split sitemapsSitemap limits: 50,000 URLs and 50 MBlastmod, priority and changefreq: what Google actually usesWhere to put your sitemap and how to submit it

More free tools from Swift Labs

OG Preview Tool
Preview links on Facebook, LinkedIn, X and Slack, and audit Open Graph tags.
Email DNS Check
Check SPF, DKIM, DMARC and MX records in seconds.
DeadLinkPatrol
Find broken links across your whole site.