Video sitemap

On this page 7

A video sitemap is an XML sitemap with a video extension that tells search engines which pages contain videos and supplies metadata such as the thumbnail, title, description and file location. In SEO, and specifically in crawling, it helps crawlers such as Googlebot discover video content that is loaded by JavaScript, embedded through a player or otherwise hard to find by following links.

A video sitemap does not guarantee indexing or rich results. It is a discovery and description signal that works alongside on-page structured data, and its value is greatest on sites with large or frequently changing video libraries.

How a video sitemap is structured

A video sitemap uses the standard sitemap protocol plus the Google video namespace. Each url entry names the watch page, the page where the video is played, in its loc element, and contains one or more video:video blocks describing the videos on that page.

The video URL itself never goes into loc. This is a frequent error: search engines index videos in the context of a page, so the sitemap must point to the HTML page and describe the media file separately. The table below lists the core elements.

ElementStatusPurpose
video:thumbnail_locRequiredURL of the preview image
video:titleRequiredTitle of the video, plain text
video:descriptionRequiredSummary of up to 2,048 characters
video:content_locRequired unless player_loc is setDirect URL of the media file
video:player_locRequired unless content_loc is setURL of an embeddable player
video:durationRecommendedLength from 1 to 28,800 seconds
video:expiration_dateRecommended if relevantDate after which the video is unavailable
Core elements of a video sitemap entry

Optional elements include publication date, family-friendly status, country and platform restrictions, subscription requirements, uploader and a live flag. Several older tags, such as category, gallery location, price and TV show details, are no longer used by Google and can be removed without loss.

How search engines use video sitemaps during crawling

A crawler reads the sitemap, queues the listed watch pages and attempts to fetch the thumbnail and the video file. If it can access the content, it may extract frames, read the audio track and generate key moments for search features.

The sitemap influences crawl prioritization rather than ranking. Accurate lastmod dates on the parent URL help crawlers revisit changed pages instead of the whole library, which matters for sites with a constrained crawl budget.

  • Accessible media: the thumbnail and video URLs must not be blocked by robots.txt or require authentication.
  • Consistent metadata: the sitemap title and description should match the visible watch page.
  • One clear watch page: each video should have a page where it is the main content, not one of many on a listing page.

Video sitemap compared with other discovery methods

A video sitemap is one of three complementary ways to describe videos to search engines. The following table compares it with VideoObject structured data and a standard XML sitemap.

MethodWhere it livesMain strength
Video sitemapSeparate XML fileBulk discovery of many videos
VideoObject structured dataMarkup on the watch pageRich results and key moments
Standard XML sitemapSeparate XML filePage discovery without video detail
Media RSS feedFeed fileSyndication and frequent updates
Video discovery methods compared

In practice, structured data and a video sitemap work best together. The markup describes each video on its page, while the sitemap ensures that crawlers find every watch page quickly, including new uploads that are not yet linked from navigation. Like an image sitemap or a news sitemap, it can be a separate file or be merged into an existing one.

Limits and setup decisions

A video sitemap follows the same size limits as any sitemap: at most 50,000 URLs and 50 MB uncompressed per file. Larger libraries are split into several files grouped by a sitemap index, which is submitted in Google Search Console or referenced in robots.txt.

SituationRecommended setupReason
Under 50 videos, stableVideo tags in the main sitemapOne file is simpler to maintain
Thousands of videosDedicated video sitemaps with an indexEasier monitoring and updates
Videos on a third-party playerUse player_loc with the embed URLNo direct file access is needed
Time-limited contentSet expiration_datePrevents indexing of expired videos
Choosing a video sitemap setup

Most content management systems and video platforms can generate the file automatically, but generated output still needs review, especially for thumbnails, escaping of special characters and correct watch page URLs.

Common video sitemap errors

Most failures come from inaccessible or inconsistent resources, not from XML syntax. The Video indexing report in Search Console shows which pages have videos that were not indexed and why.

SymptomLikely causeFix
No thumbnail could be fetchedImage blocked or returns an errorAllow crawling and serve a valid image
Video outside the viewportPlayer hidden or below other contentMake the video prominent on the page
Video is not the main contentListing page used as watch pageCreate a dedicated watch page
Invalid durationValue in minutes or out of rangeGive seconds between 1 and 28,800
Frequent problems, causes and fixes

A plain-language summary

A video sitemap is a list of your videos written for search engines. For each video, it says on which page the video appears, what it is called, what it is about and which picture to show as a preview.

Search engines can find many pages by following links, but videos are often hidden inside players. The sitemap is like a table of contents for a video library, so the search engine does not miss anything and understands what each clip contains.

An example from practice

A cooking school publishes about 1,200 recipe videos, each on its own recipe page, with the player loaded by JavaScript. Search Console shows that only about 300 pages have indexed videos, and many new recipes stay invisible in video results for weeks.

The web team creates two dedicated video sitemaps grouped by a sitemap index, with thumbnails, durations in seconds and descriptions taken from each recipe, and adds matching VideoObject markup. They unblock the thumbnail folder in robots.txt, which had been excluded by an old rule. Within six weeks, the number of indexed videos rises above 1,000, and new recipes appear in video results within a few days of publication.