YouTube makes it easy to embed videos on your website. By modifying the video’s parameters, you can control a variety of the embedded video’s settings, including enabling the autoplay feature to have the video start playing automatically as soon as a user lands on the page.

YouTube Embed Video
This guide will walk you through the process of setting a YouTube video to autoplay when it is embedded on a website. Importantly, using the autoplay feature for embedded videos does not contribute to the video’s view count.
- Visit the YouTube video you want to embed on your site.
- Below the video, click on the Share button. Opening the YouTube Video Share Dialog Box
- Select the Embed feature. Navigating to Embed
- Copy the provided HTML code and paste it into your website’s code editor.
- Add the autoplay parameter to the src attribute in the video embed code.
- Locate the video ID within the code, and append the ?autoplay=1 parameter following it.
- Here is a comparison example for clarity: Before: After:
- If the embed code already includes a URL parameter—indicated by the ? symbol immediately following the video ID—you should use the & sign to append additional parameters. For example: Before : After :
With this simple adjustment, you have the ability to decide if an embedded video should start playing automatically.