Key takeaways
- A video sitemap lists videos, not pages: each entry sits inside a page URL and describes one video with its title, description, thumbnail and location.
- Four tags are required:
video:thumbnail_loc,video:title,video:description(maximum 2,048 characters) and eithervideo:content_locorvideo:player_loc. - One file holds up to 50,000 URLs and must stay under 50 MB uncompressed; split larger sites with a sitemap index.
- Only list videos that are central to the page: Google says not to list videos unrelated to the host page's content.
- A sitemap helps discovery, not ranking: it does not guarantee Google will index a video or show it in results.
What is a video sitemap?
A video sitemap is a standard XML sitemap extended with video tags, so search engines learn which videos live on which pages. Google describes it as a sitemap with additional information about videos hosted on your pages, and recommends using one, while also supporting mRSS feeds as an alternative.
A normal sitemap only tells Google that a page exists. A video sitemap adds the details Google needs to understand the video itself: what it is called, what it covers, how long it runs, when it was published and where it can be played. That extra detail is what makes a video eligible to appear in video search results.
Use a separate video sitemap file or add video tags inside your existing sitemap. Google accepts either approach, so pick whichever is easier to keep updated. Most sites with more than a few videos keep a dedicated file, such as video-sitemap.xml, because it is easier to check and fix.
Do you need a video sitemap?
You need a video sitemap when video is a core part of your site and Google might not find every video on its own. Sites that run large video libraries, course collections, product demos, tutorials, interviews and recorded webinars gain the most, because their videos sit behind players and scripts that a plain crawl can miss.
You can skip one when your site has only one or two videos, or when your videos are minor additions to text pages. A short clip that illustrates a paragraph does not need a sitemap entry, and Google says not to list videos unrelated to the main content of the host page.
A video sitemap is also useful for newly published videos. Google says a video sitemap is a good way to help it find recently added video content, or content it might not otherwise discover through normal crawling. If your videos are your main traffic driver, the file is worth maintaining.
What tags does a video sitemap require?
Every video entry needs four pieces of information, and Google will not use an entry that is missing one of them. The entry sits inside the <url> block for the page that hosts the video, under a <video:video> parent element.
| Required tag | What it holds |
|---|---|
video:thumbnail_loc |
URL of the video thumbnail image |
video:title |
Title of the video, matching the title shown on the page |
video:description |
Description of the video, up to 2,048 characters |
video:content_loc or video:player_loc |
URL of the video file, or URL of the player for that video |
Use video:content_loc when you host the video file yourself, pointing at the actual media file in a supported format.
Use video:player_loc when the video plays through an embedded player, such as YouTube or Vimeo, pointing at the player URL for that specific video. You need one of the two, and the location must not be the same URL as the host page itself.
The title should match the title shown on the page where the video is embedded. The description should match the description shown on the page, although it does not need to be word for word. Escape HTML entities in both, or wrap the text in a CDATA block.
Which optional tags are worth adding?
Optional tags help Google understand a video better, but only add the ones you can fill in accurately. A wrong duration or an expired date is worse than leaving the tag out, because Google may act on the value you give it.
| Optional tag | What it holds |
|---|---|
video:duration |
Length in seconds, from 1 to 28,800 (8 hours) |
video:publication_date |
Date the video was first published |
video:expiration_date |
Date after which the video is no longer available |
video:rating |
Rating from 0.0 to 5.0 |
video:view_count |
Number of times the video has been viewed |
video:family_friendly |
yes or no for SafeSearch availability |
video:live |
yes if the video is a livestream |
video:tag |
Short keyword tags, up to 32 per video |
video:uploader |
Name of the person or channel that uploaded the video |
video:restriction |
Countries where the video may or may not appear |
video:platform |
Devices (web, mobile, tv) where the video may appear |
Duration and publication date are the two optional tags most sites should add, because they are easy to get right and they help Google show useful details. Add an expiration date only when the video genuinely stops being available, since Google will stop showing the video after that date.
Some older tags no longer work. Google has removed video:category, video:gallery_loc, video:price, video:tvshow and the autoplay and allow_embed attributes from its documentation, so do not include them in new sitemaps.
Step 1: List the video pages to include
Step 1 is to make a list of every page where a video is the main content. Walk through your video library, course catalogue or media section and write down the canonical URL of each host page, plus the video details for that page.
Include only pages that return a 200 status, are canonical, and are not blocked by robots.txt. A video sitemap entry points at a page Google should index, so do not list draft pages, redirect targets or pages behind a login. If a page hosts more than one video, add one <video:video> block for each video under the same <url>.
Keep the list in a spreadsheet while you build the file. One row per video, with columns for the page URL, thumbnail URL, title, description, duration, publication date and the content or player location, makes the XML step far quicker.
Step 2: Write the video sitemap XML
Step 2 is to turn the list into a valid XML file. Start with the standard sitemap namespace and add the video namespace, then add one <url> block per page and one <video:video> block per video.
<?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://www.example.com/videos/how-to-prune-roses.html</loc>
<video:video>
<video:thumbnail_loc>https://www.example.com/thumbs/prune-roses.jpg</video:thumbnail_loc>
<video:title>How to Prune Roses in Spring</video:title>
<video:description>Learn when and where to cut back rose bushes for stronger blooms, in under ten minutes.</video:description>
<video:content_loc>https://www.example.com/media/prune-roses.mp4</video:content_loc>
<video:duration>540</video:duration>
<video:publication_date>2026-03-14</video:publication_date>
</video:video>
</url>
</urlset>
Save the file as UTF-8, use absolute URLs that include the scheme and host, and keep it under the limits: 50,000 URLs and 50 MB uncompressed per file. If your site passes either limit, split the videos across several sitemap files and list them all in a sitemap index file.
Most sites should not hand-write this file for long. A content management system or SEO plugin can generate it from your media library, and that is the practical option once you pass a few dozen videos.
Step 3: Generate a video sitemap on WordPress
Step 3 depends on your platform, and WordPress is the common case. SEO plugins such as Rank Math and Yoast SEO can generate video sitemaps, although the feature sits in different places: check the plugin's sitemap settings and its documentation before you assume it is included in the free version.
After enabling the feature, open the generated video sitemap URL in your browser and check that it lists your video pages with titles and thumbnails. A plugin that generates an empty or stale file is worse than no file, because it tells Google your videos do not exist.
For sites not on WordPress, use your content management system's sitemap tool, a sitemap generator, or a small script that reads your video database and writes the XML. Whatever you use, the file must update itself when you publish or remove a video, because a stale sitemap sends Google to pages that no longer have videos.
Step 4: Validate and submit the sitemap
Step 4 is to check the file and tell Google where it lives. First open the file in a browser and confirm it loads as XML without errors, then check that every thumbnail, video file and player URL it references is reachable without logging in.
Submit the file in Google Search Console under Indexing, then Sitemaps, by entering the sitemap URL, such as https://www.example.com/video-sitemap.xml. Search Console will report whether the file was read successfully and how many video pages it discovered. Also list the sitemap in your robots.txt file so other crawlers can find it.
Check the Sitemaps report again after a few days. If Google reports errors, fix the specific entries it flags, such as a thumbnail it cannot fetch or a video file blocked by robots.txt, rather than rebuilding the whole file.
How do YouTube and Vimeo embeds work in a video sitemap?
YouTube and Vimeo embeds work in a video sitemap through the video:player_loc tag. Point it at the embed player URL for that specific video, such as https://www.youtube.com/embed/VIDEO_ID for YouTube or https://player.vimeo.com/video/VIDEO_ID for Vimeo.
Do not use video:content_loc for hosted embeds, because you do not control the media file URL and it can change. The player location is the address Google expects for videos embedded through an embedded player, and it is the equivalent of the embedUrl field in VideoObject structured data.
One point to keep in mind is that the video still needs to be the main content of your page. A page that embeds a YouTube video as a small extra beside a long article is not a good candidate for a video sitemap entry, even if the embed itself is set up correctly.
Video sitemap vs VideoObject structured data: which should you use?
A video sitemap and VideoObject structured data do different jobs, and most video-heavy sites should use both. The sitemap helps Google discover your videos and learn their basic details, while structured data on the page helps Google show rich results, such as video previews with duration and upload date.
The sitemap is the discovery tool: it lists videos Google might not find by crawling alone. Structured data is the display tool: it describes the video on the page itself, in JSON-LD, so Google can use it in search features. Neither one guarantees a rich result, and neither replaces the other.
If you can only do one, start with the sitemap when your problem is discovery, meaning Google has not found your video pages at all. Start with structured data when Google already finds the pages but shows them as plain text results.
In practice, adding VideoObject markup takes a few lines of JSON-LD per page, so doing both is a small job once the sitemap exists.
Common video sitemap mistakes
Most video sitemap problems come from listing the wrong videos or pointing at files Google cannot reach. Check your file against this list before you submit it, and again whenever you change how videos are hosted.
| Mistake | What to do instead |
|---|---|
| Listing videos that are a side note on the page | List only videos that are central to the page's content |
| Thumbnail behind a login or blocked by robots.txt | Host thumbnails where Googlebot can fetch them freely |
Using the page URL as content_loc or player_loc |
Point at the media file or the specific video player |
| Titles that do not match the page | Use the same title shown beside the video on the page |
| Stale entries for removed videos | Regenerate the file when videos are added or removed |
| One file over 50,000 URLs or 50 MB | Split into several files under a sitemap index |
Including deprecated tags such as video:price |
Remove tags Google no longer documents |
| Expecting a ranking boost | Treat the sitemap as a discovery aid, not a ranking factor |
A video sitemap does not fix a video that Google cannot play, a thumbnail that will not load, or a page that is blocked from indexing. Fix the underlying page first, then make sure the sitemap describes the fixed version accurately.
How we chose
We based this guide on Google's own Search Central documentation for video sitemaps and for building and submitting sitemaps, checked in November 2026. Every tag, limit and requirement above comes from those pages, not from third-party summaries, and the example XML follows Google's published format.
We do not accept payment for placement, and we left out plugin-specific prices because they change often and belong on the vendor's pricing page.
Frequently asked questions
What is a video sitemap?
A video sitemap is an XML sitemap with extra tags describing the videos on your pages, including each video's title, description, thumbnail and player or file location. It helps Google discover videos that its normal crawl might miss, especially new videos or videos behind players and scripts.
Is a video sitemap required for Google to find my videos?
No, a video sitemap is not required. Google can find videos through normal crawling, and it also supports mRSS feeds as an alternative. A video sitemap is recommended by Google, and it is most useful when video is a main part of your site or when videos are added often.
What is the difference between a video sitemap and a normal sitemap?
A normal sitemap lists page URLs so search engines can find them. A video sitemap adds video-specific tags to those page entries, describing the title, description, thumbnail, duration and location of each video on the page. Both use the same XML format and the same 50,000 URL and 50 MB limits.
Can I add YouTube videos to a video sitemap?
Yes, you can add YouTube videos to a video sitemap using the video:player_loc tag with the embed URL, such as https://www.youtube.com/embed/VIDEO_ID. The same approach works for Vimeo embeds with the Vimeo player URL. Do not use video:content_loc for hosted embeds.
Do I need a video sitemap and VideoObject structured data?
You do not need both, but they do different jobs and work well together. The sitemap helps Google discover your videos, while VideoObject structured data on the page helps Google show rich video results. Use both when video is central to your site.
How do I check if my video sitemap works?
Submit the sitemap URL in Google Search Console under Indexing, then Sitemaps, and check the report after a few days for read errors and discovered video pages. You can also open the file in a browser to confirm it loads as valid XML and that its thumbnail and player URLs are reachable.
Sources
- Google Search Central, Video sitemaps and examples: https://support.google.com/webmasters/bin/answer.py?answer=183265
- Google Search Central, Build and submit a sitemap: https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap
- Google video sitemap namespace: http://www.google.com/schemas/sitemap-video/1.1
- Google Search Central, Sitemaps overview: https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview
Saima Akther is an SEO and AEO enthusiast who writes Serplark’s best-of lists and guides on SEO tools, answer engine optimization and AI search. Published . Spot an error or a missing tool? Tell us and we will check it.