Home > Tutorials > Miscellaneous > How Do I Make My Embedded YouTube Video Autoplay?

How Do I Make My Embedded YouTube Video Autoplay?

Making an embedded video automatically start playing when a client loads your web page is a surprisingly popular request, especially for landing pages that are meant to capture the visitors attention in as short of a time period as possible. Unfortunately YouTube doesn’t offer an autoplay option within their embed generator – however there is a parameter you can add to your YouTube URL to make your video autoplay.

Step 1: First off go ahead and get your embed code the way you normally would for your chosen video.


Step 2: Now we’re going to modify the embed code that YouTube gave us and add the parameter ?rel=0&autoplay=1 to the end of the URL for our video. Here is how that would look:

<iframe width="640" height="360" src="https://www.youtube.com/embed/zFOvAIN6mTc?rel=0&amp;autoplay=1" frameborder="0" allowfullscreen></iframe>

That’s all it takes. Simply by changing our embedded video’s URL from https://www.youtube.com/embed/zFOvAIN6mTc to https://www.youtube.com/embed/zFOvAIN6mTc?rel=0&autoplay=1 our embedded YouTube video will autoplay.

About Michael Boguslavskiy

Michael Boguslavskiy is a full-stack developer & online presence consultant based out of New York City. He's been offering freelance marketing & development services for over a decade. He currently manages Rapid Purple - and online webmaster resources center; and Media Explode - a full service marketing agency.

Check Also

Infographic: Guide To Social Media Image Sizes [2019]

Social Media platforms are constantly evolving, updating their layouts, and changing how things work. That ...

Like every other website, this site uses cookies to analyze our traffic. Cookies may also be utilized by our advertisers and partners. By using this website you agree to the use of said cookies. More Information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings, continuing to navigate past this message, or you click "Accept" below then you are consenting to the use of cookies on the Rapid Purple website.