YouTube Hack: Automatically Start and Loop Videos

Building on the previous URL youtube hack presented here, I have figured out how to automatically start and loop youtube videos.

Davak recently posted on how to hack the URL of a youtube video to increase or decrease the size. This continues the practice of manipulating the URL to change the default embedded youtube player’s characteristics.

I’ll use the very cool Web 2.0 … The Machine is Us/ing Us clip as an example. Here is the default code.

To make the video play automatically (like it does on the youtube page) add &autoplay=1 to both of the youtube url codes above.

So you would change to

This resulting code will therefore automatically play the youtube clip when the page is visited (unless youtube is choking for some reason today):

If you want the youtube clip to automatically restart and loop when done then add this additional modifier to the url: &loop=1

Therefore, you would change all the youtube urls to this:

The results code should autostart and autoloop…

The Conversation

Follow the reactions below and share your own thoughts.

30 Responses to “YouTube Hack: Automatically Start and Loop Videos”

  1. October 30, 2008 at 8:11 pm, Brian said:

    Thank you for this page. It really helped me loop my videos so that people don’t end up looking at other peoples videos at the they stay on my page.


  2. December 07, 2008 at 6:41 am, mo said:

    don’t work on piczo


  3. January 20, 2009 at 4:14 am, ioftigr said:

    Any way to make this validate? I am currently using swfobject to make it validate so it would be nice to continue to do so.


  4. January 28, 2009 at 10:45 pm, Thiago said:

    THANK YOU, GUY!!!!!!!!!!!!!!


  5. April 16, 2009 at 7:28 pm, Su said:

    Thanks A LOT :D


  6. May 08, 2009 at 4:37 pm, Some guy said:

    It doesn’t work


  7. May 15, 2009 at 10:01 am, jenn said:

    It doesn’t work.. i’ve tried it a dozen times..
    And I’m getting sooo pissed off. srsly.


    • November 25, 2010 at 4:17 am, Gas Snake said:

      I think the trick is the URL format. The default url of a youtube video is The loop=1 doesn’t work with this format. You have to change the url to and put &loop=1 in the end. Only in this way the trick will work.


      • March 16, 2011 at 8:11 pm, james said:

        not sure what you mean by ?


  8. June 04, 2009 at 10:44 pm, Satisfied said:

    its wor king this is what i make


  9. January 19, 2010 at 12:17 am, Cookie Monster said:

    Thanks! This helps me out a lot.


  10. September 30, 2010 at 7:43 pm, greysonfan said:

    Had a video that I needed to have run automatically on my Greyson Chance fansite and I found your blog post! Thanks so much. It worked like a charm!


  11. December 12, 2010 at 11:28 pm, Maxwell said:

    is it possible to loop an embedded video from a specific time?


  12. July 05, 2011 at 11:02 am, Guest said:

    Hallo how to put on auto suptitles? &cc_load_policy=1 is not working


  13. August 04, 2011 at 5:33 pm, Jodemeil said:

    How could I loop only a moment of a clip, for example 3:00 to 3:15? Possible?


  14. May 06, 2012 at 12:57 am, NIM DORNES said:

    Autoplay working. Loop may need a bit more trial and error. How do I extend auto loop to go through library of footage on the same subject?


  15. May 06, 2012 at 2:04 am, NIM DORNES said:

    How do I merge 2 embedded codes of seperate youtube footage together to play and loop as 1 piece constantly in autoplay?


  16. May 17, 2012 at 8:37 am, shrenuj said:

    loop does not work…..they made some changes…even vidoes on this page are not being looped


  17. May 19, 2012 at 1:33 am, NIM DORNES said:



  18. May 19, 2012 at 1:36 am, NIM DORNES said:



  19. May 19, 2012 at 1:40 am, NIM DORNES said:

    If new loop prompt is found can someone “let us in on the loop”….haw haw haw. Nah serious let manz know. Major nutsack ache. Peace.


  20. May 26, 2012 at 7:36 pm, steve said:


    I want to loop, autoplay and autohide so you just get the video and no player visible.

    &loop=1&autoplay=1&autohide=1 as code.

    But this does not seem to work using version 3 (or AS3) of youtube player code. the above code does
    work on other players such as version 2, but other players don’t have the ‘full screen’ button, which I need
    as well as loop, autoplay and autohide.

    Looks like i’ve hit a wall, because every where I try to find the answer no one knows how to get this working in version 3, plus your loops don’t work.

    Thanks for your answers.



    • September 27, 2012 at 12:16 pm, hadar said:

      i’m having the same problem!
      all i want is to put a video in my website that is playing constantly – autoplay and loop and nothing seemed to work..
      BTW does it only work with youtube videos? what about other website that are playing videos (works like youtube.)>


  21. June 09, 2012 at 12:18 am, Gerry said:

    You could put what I know in a thimble, but I did embed a YouTube on my site that I wanted to autoplay, loop & to remove the related videos at the end. &autoplay=1 and &rel=0 both worked but the &loop=1 had no effect. It wouldn’t loop. Then I changed ver3 to ver2 player and that did it. It worked beautifully.


    • July 08, 2012 at 8:37 pm, NIM DORNES said:

      >How do you change ver3 to ver2 player? Is it by embeded code manipulation or what?


  22. September 03, 2012 at 4:02 pm, marcus said:

    it does work but i tell you this is hard to find ;) If you set &loop=1 you must also set &playlist=VIDEOID straight after then it will FINALLY loop if you set the vVIDEOID to the same video you have loaded. huzzah!


  23. November 20, 2012 at 7:37 pm, ds said:

    I can confirm that rolling back to the older player version allows loop to function properly.

    So your link will look like this:

    Of course you will replace the the x’s with the id of your video.


  24. December 18, 2012 at 5:48 pm, papachu said:

    “I can confirm that rolling back to the older player version allows loop to function properly.

    So your link will look like this:

    Of course you will replace the the x’s with the id of your video.”

    -Thank you very much! tried everything! nothing worked except yours! thanks!


  25. February 22, 2013 at 5:05 am, Loofy Loo said:

    Sorry it just doesn’t work for me :-(


  26. April 08, 2014 at 11:38 pm, Mike.T said:

    this is how the embedded code looks:

    replace the the x’s with the id of your video.”

    works perfectly guy’s Thanks!


Leave a Reply