Try the XML Sitemap Generator

Image and Video Sitemaps: How to Feed Google Images and Video Search Beyond Standard XML

Standard XML sitemaps only cover pages β€” image and video sitemaps feed Google Images and Google Video with specific metadata. Here's the full XML structure for both types, when they provide the most value, the licence property for photographers, and how to organise them with a sitemap index.

By sadiqbd Β· June 10, 2026

Share:
Image and Video Sitemaps: How to Feed Google Images and Video Search Beyond Standard XML

Standard XML sitemaps only cover web pages β€” but Google indexes images and videos through specialised sitemaps too

A standard XML sitemap is a list of URLs pointing to pages. It helps Google discover and prioritise pages on your site. Image sitemaps and video sitemaps extend this concept with additional metadata that feeds directly into Google Images and Google Video Search β€” separate search surfaces with their own traffic potential.

For sites with significant image or video content β€” e-commerce, photography, recipe sites, media companies, educational content β€” not having specialised sitemaps leaves indexation opportunities unclaimed.


Image sitemaps: structure and properties

Image sitemaps extend the standard sitemap namespace with image-specific metadata:

<?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/recipes/pasta-carbonara/</loc>
    
    <image:image>
      <image:loc>https://cdn.example.com/images/pasta-carbonara-hero.jpg</image:loc>
      <image:title>Classic Pasta Carbonara</image:title>
      <image:caption>Authentic Roman pasta carbonara with guanciale and pecorino romano</image:caption>
      <image:geo_location>Rome, Italy</image:geo_location>
      <image:license>https://creativecommons.org/licenses/by/4.0/</image:license>
    </image:image>
    
    <image:image>
      <image:loc>https://cdn.example.com/images/pasta-carbonara-ingredients.jpg</image:loc>
      <image:title>Pasta Carbonara Ingredients</image:title>
      <image:caption>Guanciale, eggs, pecorino romano, black pepper and pasta</image:caption>
    </image:image>
    
  </url>
  
</urlset>

Properties explained:

image:loc (required): the image URL. This can be a CDN URL even if it differs from the page domain.

image:title: the title of the image β€” equivalent to the alt text in function. Used in Google Images display.

image:caption: a description of the image. Provides context that alt text may not fully capture.

image:geo_location: if the image depicts a specific location, this enables geo-based image search discovery.

image:license: the URL of the licence under which the image is published. Google uses this to power the "Licensable" filter in Google Images β€” a significant opportunity for photographers and photographers' archives.


Video sitemaps: structure and properties

Video sitemaps feed Google's video indexing, which powers video carousels in search results and Google Video search:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
  
  <url>
    <loc>https://example.com/tutorials/making-pasta/</loc>
    
    <video:video>
      <video:thumbnail_loc>https://example.com/thumbnails/pasta-tutorial.jpg</video:thumbnail_loc>
      <video:title>How to Make Fresh Pasta from Scratch</video:title>
      <video:description>Step-by-step tutorial for making fresh egg pasta dough, including tips for rolling thickness and drying time</video:description>
      <video:content_loc>https://example.com/videos/pasta-tutorial.mp4</video:content_loc>
      <video:player_loc>https://www.youtube.com/watch?v=abc123</video:player_loc>
      <video:duration>842</video:duration>
      <video:expiration_date>2026-01-01</video:expiration_date>
      <video:rating>4.8</video:rating>
      <video:view_count>24500</video:view_count>
      <video:publication_date>2024-03-15</video:publication_date>
      <video:family_friendly>yes</video:family_friendly>
      <video:tag>pasta</video:tag>
      <video:tag>recipe</video:tag>
      <video:tag>Italian cooking</video:tag>
    </video:video>
    
  </url>
  
</urlset>

Key properties:

video:thumbnail_loc (required): a high-quality thumbnail image. Google recommends at least 160Γ—90px; use 1280Γ—720px for best results.

video:title (required): must match the title visible on the page.

video:description (required): a description of the video content.

video:content_loc or video:player_loc: at least one must be provided. content_loc points to the actual video file; player_loc points to an embeddable player (YouTube, Vimeo, etc.).

video:duration: video length in seconds. Used in rich result display.

video:expiration_date: if provided, Google won't show the video in results after this date. Important for time-sensitive content.


When to use image vs. video sitemaps

Image sitemaps are most valuable when:

  • Images are loaded dynamically (JavaScript rendering) and may not be discovered through standard HTML crawling
  • Images are hosted on a CDN subdomain different from the main domain
  • You have many images per page and want to ensure all are indexed
  • Images have licensing information to declare (enables Licensable filter)
  • Your site relies on Google Images as a traffic source (photography, design, food, fashion, travel)

Video sitemaps are most valuable when:

  • Your site hosts native video (not just YouTube embeds)
  • You want rich video results (thumbnail + duration) in text search
  • You want your content in Google Video search
  • Video content is loaded via JavaScript and may not be crawled by standard means

For YouTube-hosted videos embedded on your site: a video sitemap helps Google associate the video with your page, potentially helping the video appear in search for that page's context. However, the video's own YouTube page remains the primary indexed entity for the video content itself.


Sitemap index for large sites

For large sites with many pages and many images/videos, the standard 50,000 URL limit per sitemap applies. Use a sitemap index file to organise multiple sitemaps:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.com/sitemap-pages.xml</loc>
    <lastmod>2024-06-09</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-images.xml</loc>
    <lastmod>2024-06-09</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://example.com/sitemap-videos.xml</loc>
    <lastmod>2024-06-09</lastmod>
  </sitemap>
</sitemapindex>

How to use the XML Sitemap Generator on sadiqbd.com

  1. Enter your domain and page URLs
  2. Generate the base sitemap β€” covers standard page URLs
  3. Extend manually for images and videos β€” add the xmlns:image or xmlns:video namespace declarations and relevant child elements
  4. Submit all sitemaps via Google Search Console β†’ Sitemaps

Frequently Asked Questions

Do image sitemaps guarantee indexation in Google Images? No β€” like standard sitemaps, image sitemaps are crawl hints, not guarantees. They significantly improve the probability of discovery and indexation, particularly for images that aren't easily discoverable through standard HTML parsing.

Should I include YouTube embeds in video sitemaps? Including YouTube-embedded videos in video sitemaps can help Google associate the video with your page. Use the YouTube player URL as video:player_loc. The video's own YouTube page gets the primary benefit of video indexation, but the association with your page may improve relevance signals.

Is the XML Sitemap Generator free? Yes β€” completely free, no sign-up required.


Image and video sitemaps are an underused extension of the standard sitemap β€” they provide Google explicit metadata about media content that might otherwise be partially or slowly discovered, and they feed directly into separate search surfaces with their own traffic potential.

Try the XML Sitemap Generator free at sadiqbd.com β€” create standard XML sitemaps as a starting point, then extend with image and video namespaces for complete media indexation coverage.

Share:
Try the related tool:
Open XML Sitemap Generator

More XML Sitemap Generator articles