How to enable autoplay for embedded YouTube videos

by Tashreef Shareef
Tashreef Shareef
Tashreef Shareef
Windows & Software Expert
Tashreef Shareef is a software developer turned tech writer. He discovered his interest in technology after reading a tech magazine accidentally. Now he writes about everything tech from... read more
Affiliate Disclosure
autoplay embedded YouTube videos

To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

If you can edit and add HTML codes to your website or post, you can also embed YouTube videos to make your article informative. Embedding YouTube videos is simple; however, what if you want to enable autoplay for embedded YouTube videos?

Autoplaying embedded videos is useful if you want to show your products and how they work. While the embedded videos do not increase the views, they can be handy when used cautiously.

In this article, we show you how to enable autoplay for embedded YouTube videos on your website with ease.

How to autoplay embedded YouTube videos on your website?

1. Use HTML script

autoplay embedded YouTube videos

  1. Open YouTube on your web browser and play the video that you want to embed.
  2. Below the video’s title, click on Share.
    autoplay embedded YouTube videos
  3. Select the Embed tab. This will show you an HTML embed script.
  4. Copy the HTML code and paste it into the page where you want to add the video.
  5. In the case of WordPress, go to New Post > Text (by default Visual tab is selected) and paste the code.
  6. Add ?autoplay=1 code right after video ID.
  7. After adding ?Autoplay=1 the HTML code will look like this:
    “<iframe width=”560″ height=”315″ src=”[Video ID]I?&autoplay=1″ frameborder=”0″ allowfullscreen></iframe>
  8. Update the page before existing the page to save the changes.
  9. Open the web page and check if the video plays automatically for the new users.
  10. If the changes are not visible, try to clear the cache and try again.

2. Use the YouTube Embed plugin

autoplay embedded YouTube videos

  1. Log in to the WordPress admin dashboard.
  2. Click on Plugins and select Add New.
  3. Search for YouTube Embed plugin and install it.
  4. Make sure you have activated the plugin after installation is over.
  5. From the left pane of your WordPress dashboard, click on YouTube Embed and select Profile.
  6. Scroll down to the Playback section and check the “Autoplay” box.
  7. Enabling Autoplay will automatically play the video when the player loads.
  8. If you want to play a video on a loop, check the “Loop Video” box. In the case of a playlist, this will play the entire playlist and then play it on a loop.

The YouTube Embed plugin also comes with some advanced features. You can change the video player size, make them responsive, enable or disable annotations, allow caption, show related videos from other channels and change the default style.

Note – This a WordPress plugin. If you are using any other CMS (Content Management System), search the plugin repository of your CMS to find an alternative to the YouTube Embed plugin.

Before you proceed with the steps, note that auto-playing videos without the user input can annoy the visitors and force them to close the site.

Adding an autoplay tag to the HTML code provided by YouTube is the easiest way to autoplay embedded YouTube videos on your page. However, if you want more customization, you can use the YouTube Embed WordPress plugin.

Do let us know your preference in the comments below. Also, leave there any other questions or suggestions that you may have.


idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: