How To Create a Sitemap for Videos?

Creating a Video Sitemap
Yesterday, we talked about how showing Video Previews in search results can boost your click through rate. In getting your Rich Snippet Video Previews into Google Search Results, a necessary step is to create a video sitemap, and then submit it to Google. While there might be some free online tools to do the job for you, they aren't all very convenient to use. And there's no dedicated plugin for this kind of job for free either. That pretty much leaves it upto you to create a sitemap manually, and submit it to Google. in this post, we'll walk you through creating a basic sitemap that will get the job done for you.
A video sitemap tells Google exactly where, and what the video content is on your site. It helps Googlebots recognize video content, and display it in the relevant search results page. But let me make something clear from the beginning; there is no saying for sure whether your video will be picked up or not. According to Google itself: "Google doesn't guarantee that all videos included in a Sitemap will appear in our search results, or that we will use all the video information included in your Sitemap." Guarantee or no, it is, however, the only way to get video previews into search results. So let's get started!

Creating a Video Sitemap

A sitemap file is basically a text file that utilizes the Google Sitemap Protocol with video-specific tags in it. It contains a bunch of lines of code, which is really easy to understand. Let me show you the code first, and then I'll explain what it all means.

<urlset xmlns="" xmlns:video="">
<video:thumbnail_loc>VIDEO THUMBNAIL URL</video:thumbnail_loc>
<video:title>VIDEO TITLE</video:title>
<video:description>VIDEO DESCRIPTION</video:description>
<video:content_loc>DIRECT URL TO VIDEO</video:content_loc>
<video:player_loc allow_embed="yes" autoplay="ap=1">URL TO VIDEO ON A PLAYER</video:player_loc>

This is the bare minimum amount of code you need to add in a video sitemap. The Bold text indicates things you can change, for example Video title, URL, description etc. Given below is an image of the same code in a text editor to give you a better understanding through proper indentation. It is a snapshot of a complete XML file that has two entries, one which is the same as the code given above, and the next demonstrating an example.

The first line of code just declares the XML version. It isn't necessary, but is considered as a best practice.
  • <urlset> - Just like an <html> tag encloses an HTML document, similarly, the <urlset> tag encloses such a sitemap. It includes to links with the sitemap protocol markup. You can copy it as it is.
  • <url>- For each new video entry, there must be a separate <url> tag. You can see two url tags in the image above.
  • <loc> - In every URL tag, there must be a <loc> tag and a <video:video> tag. The <loc> tag specifies the URL of a landing page the video is displayed upon. This could be a post, or a separate page as well (see the example).
  • <video:video> - The <video:video> tag encapsulates some video attributes such as Title, URL, Description etc.
  • The <video:thumbnail_loc>, <video:title>, and <video:description> tags are pretty straightforward. You just need to tweak those according to your Video.
  • The next bit is a bit tricky. You can either specify the raw URL of the video file, or you can provide the URL of the video on a video player. So you have a choice between line 9 and 10. You can use one of these options, but not both. However, the raw URL is usually preferred.
There are other things you can specify as well, such as video duration, rating, family-friendliness, etc. But Google won't show all of that data. So these few tags are the most you're gonna need. However, if you want to include more information about your videos, you can see a list of all the tags on Google Webmaster Help page.

Things to remember

Following are a few guidelines and things to remember when creating and submitting a Video Sitemap.
  • Make sure the video link you provide is public, and is working properly. Google won't guarantee your video's inclusion in search results, but they definitely won't be included if the link doesn't work properly.
  • You can include a maximum of 50,000 videos in one sitemap. For more videos, you will need to split your sitemap into different parts.
  • Google only recognizes the following formats; mpg, .mpeg, .mp4, .m4v, .mov, .wmv, .asf, .avi, .ra, .ram, .rm, .flv, and .swf. The videos must be accessible via HTTP.
As far as submission goes, you can submit your sitemap via Google Webmaster Tools. We already covered that topic in more detail in another post. Make sure you check it out.

If you have any issues, please let us know in the comments section below. Cheers :)

Need Quick Help within 24 Hours? ASK NOW

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

17 comments : Post Yours! Read Comment Policy ▼
We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.

  1. Awesome qasib, we learned about created sitemap for labels based pages and for the website but never heard of this . Good one this can give some SEO weightage to personal and youtube videos. thanks for sharing.10 Psychological blogger design for conversion

  2. Very useful if our blog niche is all about Videos! This blog is unique in terms of its topic.


  3. Very nice post bro.
    Plz help me.......
    Sir i am a blogger and i am
    write on my blog about
    Electrical learning.
    I publised 89 posts(all posts
    are in english) and when i
    apply for adsene then
    adsene rply
    Thank you for your
    interest in Google AdSense.
    Unfortunately, after
    reviewing your application,
    we're unable to accept you
    into AdSense at this time.
    We did not approve your
    application for the reasons
    listed below.
    Insufficient content)
    plz help me sir

    1. Make sure your blog is fast loading, quality content, getting more page views and mainly it is 6 months old.
      Happy Blogging
      Blogger Bulk

  4. Very Useful post, Everything is Great, the code is really easy to understand with your explanation.

    Prince Asfi - Hacking & Tricks

  5. This comment has been removed by the author.

  6. very nice post and helpful for me
    i am daily visited four blog for help
    Anabolic steroids

  7. Unlimited Hosting for only $3.95 at plus 50% off coupon code: "NewDoonker"> Go before it expires!!!

  8. Thanks Qasib ! ya lot of newbie don't know how to create sitemap of videos, thanks for sharing such a nice info..
    Blogging Tricks

  9. - A Fantastic Musical website about Love,romance,video songs,romantic cards,Unforgetable ghazals,PTV dramas,hottest wallpapers,True love stories,pakistani songs,shows,girls,models & many more...Must See To Believe forum visit now

  10. nice your site thanks for sharing love you all team good work keep it up

    WiFi Hacking
    WiFi Hacker
    Password Hacker
    WiFi Hack Password

  11. Appreciate your work: keep it up

    How do you want to make your party so special? Hire the services but keep in mind the idea should be completely yours. Come and join a Party with us, and see what we can do!!!!!!!!!!!!
    Party Rental Miami
    Contact Num: 786-953-6147

  12. I like your post too much. Thanks for this help

  13. How frequently do we need to submit video sitemap suppose if i posts several videos daily?