Image Sitemaps

Help Google discover and index your images with image sitemap support

Why Image Sitemaps?

Google Images drives significant traffic for many websites. However, search engines can miss images that are:

  • Loaded via JavaScript - React, Vue, or Angular image galleries
  • Lazy-loaded - Images below the fold that load on scroll
  • Behind login walls - Product images requiring authentication
  • Dynamically generated - Images with unique URLs per session

Image sitemaps explicitly tell search engines where your images are and provide additional metadata to improve their search appearance.

According to Google, sites with image sitemaps see up to 20% more image search impressions for previously undiscovered images.

Supported Fields

SitemapHost supports all Google-recommended image sitemap fields:

FieldRequiredDescription
locYesThe URL of the image
titleNoTitle of the image (improves accessibility)
captionNoDescription/alt text for the image
geo_locationNoGeographic location (e.g., "New York, USA")
licenseNoURL to the image license (for Creative Commons, etc.)

Best Practice: Always include title and caption for better accessibility and to help Google understand your image content.

API Usage

Include images in the images array for each URL:

{
  "domain": "sitemap.yoursite.com",
  "urls": [
    {
      "loc": "https://yoursite.com/product/blue-widget",
      "lastmod": "2024-01-15",
      "images": [
        {
          "loc": "https://cdn.yoursite.com/images/blue-widget-main.jpg",
          "title": "Blue Widget - Front View",
          "caption": "Premium blue widget with chrome finish"
        },
        {
          "loc": "https://cdn.yoursite.com/images/blue-widget-side.jpg",
          "title": "Blue Widget - Side View",
          "caption": "Side profile showing ergonomic design"
        }
      ]
    }
  ],
  "pingGoogle": true
}

CSV Format

For CSV uploads, use the multi-row format with a type column:

type,loc,lastmod,image_loc,image_title,image_caption,image_geo_location,image_license
url,https://yoursite.com/product/blue-widget,2024-01-15,,,,
image,https://yoursite.com/product/blue-widget,,https://cdn.yoursite.com/images/blue-widget-main.jpg,Blue Widget - Main,Premium blue widget,,
image,https://yoursite.com/product/blue-widget,,https://cdn.yoursite.com/images/blue-widget-side.jpg,Blue Widget - Side,Side profile view,,
url,https://yoursite.com/product/red-widget,2024-01-14,,,,
image,https://yoursite.com/product/red-widget,,https://cdn.yoursite.com/images/red-widget.jpg,Red Widget,Classic red widget,,

Each image row references its parent URL in the second column. You can also omit it if the image follows immediately after its parent URL row.

Generated XML Output

SitemapHost generates valid image sitemap XML with the proper namespace:

<?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://yoursite.com/product/blue-widget</loc>
    <lastmod>2024-01-15</lastmod>
    <image:image>
      <image:loc>https://cdn.yoursite.com/images/blue-widget-main.jpg</image:loc>
      <image:title>Blue Widget - Front View</image:title>
      <image:caption>Premium blue widget with chrome finish</image:caption>
    </image:image>
    <image:image>
      <image:loc>https://cdn.yoursite.com/images/blue-widget-side.jpg</image:loc>
      <image:title>Blue Widget - Side View</image:title>
      <image:caption>Side profile showing ergonomic design</image:caption>
    </image:image>
  </url>
</urlset>

Limits

LimitValueNotes
Images per URL1,000Google specification limit
Image URL length2,048 charactersStandard URL limit
Supported formatsAllJPG, PNG, GIF, WebP, SVG, BMP

Best Practices

  • Use descriptive titles and captions - Help search engines understand image content
  • Include geo_location for local content - Travel sites, real estate, local businesses
  • Add license URLs for Creative Commons - Enables proper attribution in search results
  • Use absolute URLs for images - Include full https:// paths, not relative URLs
  • Keep images accessible - Don't require authentication to access image URLs

Warning: Avoid including the same image URL multiple times across different pages. Google will deduplicate, but it wastes crawl budget.

Use Cases

  • E-commerce - Product photos, lifestyle images, size guides
  • Real estate - Property photos, floor plans, neighborhood images
  • Travel - Destination photos, hotel rooms, local attractions
  • Publishing - Article images, infographics, featured images
  • Portfolios - Photography, design work, art galleries

Next Steps