Useful YouTube URL Tricks

YouTubeEver wanted to share a YouTube video with someone but want to share just a certain part of it without having them start from the beginning? Need to have a video automatically loop?

YouTube URLs can be modified with various query string parameters to change certain features and how to video player works. In most cases, parameters follow the video URL with an ampersand (&). The most commonly seen parameter is probably &feature=related which shows that the video was found through clicking on a Related Video. This parameter basically does absolutely nothing for the actual user though.

This guide is outdated. Check out my updated version of this guide, including an easy to use URL and embed code generator, at the following link:

Useful YouTube Player Parameters

There are many URL parameters you can add to YouTube video URLs as well as the embed codes. Let’s start with the video URL.

Click here to jump to the Embedded Video URL Parameters.

Video URL Parameters

There are parameters to add to the URL of a YouTube video. Video ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

High Quality Videos

YouTube supports up to HD quality videos, but some videos might not have an HD format available. Some might just have a High Quality option available. To create a link that automatically loads the video in HQ or HD, simply add &fmt=6 (480p HQ FLV), &fmt=18 (480p MP4) or &fmt=22 (720p HD) to the end of the video URL.

Update: YouTube has made many changes recently and the fmt parameter does not seem to work anymore. For HD, add &hd=1 instead. The fmt parameter no longer does anything.

This example video link will start automatically in 720p HD (&hd=1). ID&hd=1

Skip to Specific Time

Suppose you’re trying to share a video clip with someone, but you don’t really think its necessary for them to watch the whole thing from the beginning. You can specify where the video should start as well as easily jump to a specific point by adding #t=7m30s. The number in front of the ‘m’ is the minute and in front of the ‘s’ would be seconds. In this example, I’m skipping to 7:30.

This example video link will automatically skip to 1:32 (#t=1m32s). ID#t=1m32s

Browser Window Full Size Player

This will load a large player that fills your entire browser window.

Simply replace the ‘?’ and ‘?=’ in the URL to ‘/’ and remove ‘watch’. ID 

This example video will start in a full size player.

Prevent Video from Autoplaying

Same procedure as using the large player. This player does not start playing automatically. If you are using this full size player and want it to autoplay, then simply add ?autoplay=1 to the end of the URL. Use an ampersand (&autoplay=1) if this is not the only parameter. ID?autoplay=1

Loop Video

There are many online websites offering this functionality (often involving just changing the domain name), but there is no need to use an external service because YouTube actually has this built in.

Same procedure as using the large player, but add ?loop=1. Use an ampersand (&loop=1) if this is not the only parameter. This is very useful for looping music. ID?loop=1

Embedding Videos URL Tricks

The video URL in the source code for embedded YouTube videos also allows for various query string parameters in addition to the ones provided by YouTube in the embed video options.

Video-ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

Start the parameter string using a ? question mark. Then, use an ampersand & to connect additional parameters. An example parameter would be

Since this is HTML, all ampersands must be replaced with & or it won’t be validated markup.

For these examples, replace PARAMETER with the provided parameters (excluding the ampersands). Highlighted lines show where changes are needed.

<object width="480" height="385">
<param name="movie" value=";hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src=";hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>

Then the modified code would be:

<object width="480" height="385">
<param name="movie" value=";hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src=";hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>

For the new iframe embed method, its easier since there is only one URL.

<iframe width="560" height="349" src=";PARAMETER2" frameborder="0" allowfullscreen></iframe>

Embed High Quality Videos

Add the following parameters to embed a higher quality video:

&vq=small – 240p
&vq=medium – 360p
&vq=large – 480p
&vq=hd720 – 720p

Of course, if the quality is not available, this parameter won’t do anything.


By default, embedded videos do not autoplay. If you want the videos to autoplay, simply add &autoplay=1 to the URL.

Auto Loop

If you want your videos to automatically loop, simply add &loop=1.

Hide Search Box

Want to prevent users from searching for other videos on your embedded video? Simply add &showsearch=0 to the end of the URLs, which currently appear twice in the standard embed code.

Disable Related Videos

By default, YouTube videos show links to several related videos at the end. However, this might be videos of your competitors and you certainly don’t want that. To turn off related videos, add &rel=0.

No Related Videos

This embedded video does not show any related videos thanks to a parameter.

Remove YouTube Branding

You can now remove the YouTube branding from the video. This can make videos look more professional. Add the parameter ?modestbranding=1.

So your code will look like this:

<iframe width="560" height="349" src=";rel=0" frameborder="0" allowfullscreen></iframe>

For removing the branding, this parameter should be first or it might not work properly.

Here is a video using the embed URL with the YouTube logo removed and related videos disabled.

Remove Title

When a user hovers over an embedded video, the title of the video shows. This also serves as a link back to the video page on YouTube. If you want to hide it, use the parameter ?showinfo=0.

Note that this does NOT work with removing the YouTube branding. Adding this parameter causes the modestbranding parameter to break.

Disable Backlink

To disable any backlinks to YouTube, add a a parameter allownetworking to the Flash object and set it to internal. This only works on the old embed code. See this comment for more details.

Please note that disabling the backlink may be a violation of Section 4F of the YouTube Terms of Service. Since YouTube is a free service, you should provide this backlink.

Start Video from Specific Point

If you want the embedded video to start from a specific point rather than the beginning, simply add &start=60. The number is in seconds.

Disable Fullscreen

Do you want to prevent your viewers from watching the video in full screen? Configuring this is slightly different from the other options.

In the video URL, toggle both fs=1 to fs=0. Then toggle both AllowFullScreen options to false. This is a total of 4 changes. Your code should look like this.

<object width="480" height="385">
<param name="movie" value=";hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src=";hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="480" height="385"></embed>
No Fullscreen

This embedded video cannot be played in full screen mode.

More embedded player parameters can now be found here.

Have any other YouTube URL tricks? Please share it with us in the comments!

Liked this article? Share it with your friends.

Brian is the co-founder of TechAirlines. He is a developer currently focusing on mobile and web development. He is currently a sophomore at Stony Brook University, majoring in Computer Science.

  • Bryan

    Hi Brian,

    thank you for all the good tips.

    Do you know how I would play a video directly from a user clicking on a link in a Shadowbox or popup window?

    That is, I don’t want to embed a thumbnail, just want to play the vid from a link.


  • David Hernandez


    In this page: you can access a web resource that helps you generate valid HTML code for embeding YouTube videos.

    You can configure it with most of the parameters explained in this page.

    And obviously you can add those that aren’t considered.

    Well, thanks Bryan for this very useful tips :-)

  • FM

    It doesn’t work for me. I want the video to play at 720p by default.

    Here’s my embed code:

    Can you help me?

    Thank you in advance!

    • Creastery

      Hello FM,
      It seems like you did not place your code here.
      Please replace “< " and ">” to “[” and “]” respectively for your code or it will not be displayed here.

  • Nichole Bohorquez

    Hi there,

    I thought everyone should know that this point is actually not true:

    “Note that this does NOT work with removing the YouTube branding. Adding this parameter causes the modestbranding parameter to break. Unfortunately, because of this, there is no way to remove all links back to YouTube.”

    You can add parameter that won’t allow people to access youtube what soever.Take a look at my parameters and see for yourself:


    • Nichole Bohorquez

      [div style="text-align: center; margin: auto;"]
      [object style="width: 640px; height: 480px;" width="100" height="100" data="" type="application/x-shockwave-flash"]

      [param name="data" value="" /]

      [param name="wmode" value="transparent" /]
      [param name="allowFullScreen" value="false" /]
      [param name="allowscriptaccess" value="always" /]
      [param name="allownetworking" value="internal" /]

      [param name="src" value="" /]


      Editor’s Note: This code is available on Pastebin for easy reading and copy/paste.

    • Brian Yang


      Thanks for the information.

      Your code actually does remove the linkback to YouTube, which seems to be achieved with the object parameter of “allownetworking”.

      None of the parameters you added to the actual URL affect the link. Adding modestbranding with showinfo makes the player use the older version instead (with the watermark rather than the logo in the player). Both ways, the logo still appears if showinfo is used although its no longer an active link so the showinfo and modestbranding still technically don’t work together.

      I have linked to your comment in the article.

      Thanks again!

  • Pingback: Youtube “start play at” URL parameter «

  • Oliver Nicholas

    Would you know how to start and embedded youtube video with a different starting image to what you get to choose in youtube?

    I would like to change it to an image of the company logo instead?

    Thank you for any help you can offer.

    • alysdexia

      Insert it to the middel frame.

  • Mike Wittmann

    Thanks for the post. I needed to get a video to auto play in a lightbox and couldn’t figure it out. You saved me a ton of trouble!

  • c

    what if you wanted to make not only skip to a different starting point but also change the ending point of the video? is this possible as well?

    • Creastery

      Hello c,
      Unfortunately, there is no known way to change the ending point of a embedded YouTube video.
      I do agree with you that there should be a way to set the ending point for a video, but nope, there isn’t.

      • Greg Coladonato

        Is this still the case? Has an “end point” parameter been implemented in the 3 years since these comments were written? I too would like to take advantage of such a feature.

  • Glenn

    your link to the ‘NEW’ youtube secret video-watch page no longer works.

  • Will J

    I can no longer change a link to fill the browser window by using your suggested method.
    For Example Id
    Modified … just gives me a standar YouTube page.

    Any ideas?

    • Brian Yang

      The URL for the full size player should be the full not or should load a full size player that fills the browser window.

      • arati

        How to share a youtube video with large player.

        Basically I want to share a link but by default youtube plays with small player unless the user clicks on large player icon in the video.
        You wrote the extension for full screen, is there an extension for sharing link that sends large player by default ?

  • Lars (

    I made a free online tool to set the embedding-parameters by clicking:

    with online preview and code-generating to copy into your website…

    • Marcos

      Schönes Tool!

      Ist es möglich als normale URL haben? (Is it possible to get the usual URL – not embedded?)

      • Brian Yang

        The URL parameters for regular URLs and the embed URLs are quite different. The regular video page accepts very few parameters.

        However, you can visit the embed URL (in the format and watch the videos (full window) with all the selected options.

  • ben j

    anyone know how to get a youtube video (after completion) to go to a new url in a blank window after it is done playing?

  • Ben

    I’m trying to embed a video at 280×210 pixels, so small. The video was recorded and uploaded at 480p or better resolution, however when I select such a small video size youtube automatically degrades the picture quality significantly and also removes the options for the user to easily select better resolution. I would like to improve the default resolution to 480p and have attempted appending “&fmt=6″ and “&fmt=18 to the end of the url with no success. Can someone paste the embed code of of a youtube video where they have successfully improved the default resolution for an embedded video of 280×210 pixels? Thanks!!!!

    • Brian Yang

      The options YouTube provides for video quality depends on the resolution of the video you uploaded. If the original video you uploaded was 280×210, then YouTube wouldn’t be able to provide a better resolution. Viewing a 280×210 video in a 480p sized player isn’t going to be able to help with the video quality and may actually make it look worse.

      For best results, you should definitely try to record the original video in a higher resolution. Alternatively, you can save your video in the desired resolution (480p) in your video editor before uploading it.

  • inavas

    To disable full screen on new iframe embed code??

    I mean, on the old code is:

    and for the new iframe embed code??


  • GABI

    I tried to make a link to utube : full screen and exact time.
    It does not work although each of them works properly .
    Please advise.

    • Brian Yang

      You can make a link go to a specific time in the video, but its not possible to have it automatically play in full screen. For full screen, the user will always have to actually click the full screen button in the player.

      If you mean the full size player, that code uses an old embed URL method and can’t be set to start at a specified time.

  • Natalie

    I just did a movie maker video and put it on You tube, how do I get the URL code so I can put it other places? New to all this! Thanks.

    • Brian Yang

      Hello. Visit your own video page. Below the video, click the button that says “Share”. Then, you should see another button that says “Embed”. There, you can get the embed code for your video.

  • Kalyan

    Hi, is there a way we can capture the total time the video was viewed(time the content was actually played)? not using any of the html5 features.

  • Reese

    This is great, but is there no longer any way to link directly to HQ
    (480p)? The HD option works if you’ve got an HD option on your video,
    but for the videos that have only 360 and 480 options, is there any way
    at this stage to link straight to the higher quality one?

    • Brian Yang

      Unfortunately, the fmt parameter no longer works and there is no alternate. YouTube will choose the quality that’s most appropriate for your internet connection and/or player size.

  • Jackson Roger

    Hello my friend!!!

    thanks!, But How star video youtube without audio or volume=0????

    how to disable the audio of the video would be v = videoid? volume = 0?? please help

    • Brian Yang

      Sorry, it is not possible to add a parameter to the URL and have the video start muted.

  • Coq Co


    I have build the following link, which plays in HD:;&vq=hd720;&fs=1

    Yet, the fullscreen button won’t work. Is there any way I could make it work?

  • ollpu

    Good tips! I used them (atleast the loop), but that seems to no longer work?

  • Prasanna

    Great tips! Thanks.
    You may want to update it with one other tip: end=time_in_seconds works for embedded links to mark the end of the video.

    • Brian Yang

      Thanks for the tip! The “end” parameter will be included in the new version of this article, which will be published sometime this week.

  • John Smith

    Great article

    How can you make the full screen player play automatically?

  • Brian Yang

    I am pleased to announce that this guide has been completely rewritten at this link:

    Includes a master list of all available parameters as well as a URL/embed code generator.

    This old guide will no longer receive any further updates. Please refer to the new one for updates.

    • tamey

      Can u pls help me in completing this search query in YouTube simple search. Like I wants to search today funny videos shorter then four mins and most views without using YouTube graphic filters. I type in YouTube search box ‘ Funny,today,short, ‘ HERE I STUCK THAT HOW TO ADD MOST VIEWED FILTER. Pls help me what to write next to add most viewed option.

  • aditya menon

    Would be great if there was a way for end time as well.

    • Brian Yang

      End time is only available for embedded videos. The normal website only lets you set the starting time.

      Please check out my updated post for details on the embed parameter:

      • aditya menon

        Whoah, thanks for the instant response!

  • JV

    I have embedded some videos and now I found that some changes need to be done in the videos. So I had Removed the videos and edited and placed back in youtube. Now I find the Video IDs are changed. Is there any way to retain the same video ID as of the first.

  • c64club

    ?featured=0 disables annoying featured(spam/ad) videos in “related” links

  • David

    YOUTUBE fullpage POPUP BUTTON: just edit a bookmark url replacing with this ..

    javascript:(function(){var newurl=’’ + + window.location.hash + ‘&hd=1′; window.location=newurl;})();

  • Xavi dj

    Thanks for the info! I was looking for to apply to my site

  • Mat Satler

    Is there a way to share the Youtube videos like we share blog posts?

  • reddy


    How can i skip video after playing video directly connecting to website link
    with out using any button
    in flash

  • reddy

    i added intro page in website starting

    after playing that video i want to skip to website link with out using ant button (DIRECTLY from Video to Website)
    i already added skip intro button to skip video in middle

    my problem was with out using any button i want to connect to website directly after ending the video

    working in flash any help

    send any links are codding for flash

  • refack

    As I stated on the “URL Generator” page, I just figured out the adding “wide=1″ will force the website to open in “Cinema Mode”

  • Mark Brightwell

    Is there any code you can apply to the URL that randomizes the start point at every new page load or refresh?

  • ajith

    How to embed YouTube videos so that they play at 480p by default?

  • Leonardo

    Here are three other parameters I have encountered. Does anyone know what they do?


  • MDBell

    All of my embeded Youtube videos do not show the “Theater Mode” rectangle, but when I watch the same video directly on Youtube it always has Theater Mode. What am I doing wrong?
    Michael Bell

  • Srinivasa Reddy Muly

    is there an option to stop the playback at a certain point? I want to use it in conjunction with the “skip to time” option, so that I can play only a portion of the video, example from time 1min to 1min 30 sec.