Video Sitemap Generator
Enter your video details and get a valid Google video-sitemap.xml with the correct <video:video> markup — copy-ready, downloadable, and validated.
Help Google find and rank your videos
Search engines can’t always discover videos embedded on your pages — especially ones loaded by JavaScript or hosted off-site. A video sitemap spells it out for them: for each video it provides the page it lives on, a thumbnail, a title and description, the video or player URL, and metadata like duration and publish date. That improves your odds of showing up in video search and video rich results.
Field guide
- Page URL — the page the video is embedded on (not the video file).
- Thumbnail — a preview image URL (required).
- Title & description — concise, accurate, keyword-aware.
- Content URL or Player URL — the raw file (
content_loc) and/or an embed (player_loc); at least one is required. - Duration / publication date / family-friendly — recommended extras that strengthen the entry.
Build your file here, download video-sitemap.xml, then submit it in Google Search Console.
Video sitemap example
Here is a complete video sitemap XML entry for one video. Each page with video gets its own <url> block, and a page with several videos gets one <video:video> element per video inside that block. Note the extra xmlns:video namespace on <urlset>: without it, Google cannot read the video tags.
<?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</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>A step-by-step guide to pruning rose bushes for healthier spring growth.</video:description>
<video:content_loc>https://www.example.com/media/prune-roses.mp4</video:content_loc>
<video:player_loc>https://www.example.com/embed/prune-roses</video:player_loc>
<video:duration>412</video:duration>
<video:publication_date>2026-03-14T08:00:00+00:00</video:publication_date>
<video:family_friendly>yes</video:family_friendly>
</video:video>
</url>
</urlset>Video sitemap tags: required and optional
| Tag | Required? | What it holds |
|---|---|---|
loc | Yes | The page the video is embedded on |
video:thumbnail_loc | Yes | URL of the preview image |
video:title | Yes | The video title |
video:description | Yes | A description of up to 2,048 characters |
video:content_loc or video:player_loc | At least one | The raw video file, or the URL of an embeddable player |
video:duration | Recommended | Length in seconds, from 1 to 28,800 (8 hours) |
video:publication_date | Recommended | First publish date in W3C format |
video:expiration_date | Optional | When the video stops being available |
video:family_friendly | Optional | yes or no |
video:live | Optional | yes for a live stream |
How to submit a video sitemap to Google
- Upload the file to your site, usually at the root, for example
https://www.example.com/video-sitemap.xml. - Check it with the XML Sitemap Validator to catch malformed URLs or missing tags before Google does.
- Reference it in robots.txt with a line such as
Sitemap: https://www.example.com/video-sitemap.xml, or list it inside your sitemap index. - Submit it in Search Console under Indexing > Sitemaps, then watch the Video pages report to see which videos Google has indexed.