Embed videos & playlists

Yous tin can add together a YouTube video or playlist to a website or blog by embedding information technology.

Embed a video or playlist

  1. On a computer, go to the YouTube video or playlist y'all want to embed.
  2. Click SHARE Share.
  3. From the listing of Share options, click Embed.
  4. From the box that appears, re-create the HTML code.
  5. Paste the code into your website HTML.
  6. For network administrators: Y'all will need to add youtube.com to the firewall allowlist.
  7. Important: If your website or app is child directed and you lot embed YouTube content, y'all must self designate your site or app using these tools. This self designation volition ensure Google does not serve personalized ads on these sites or apps and some features will exist disabled in the embedded actor.

Note:Age-restricted videos can't be watched on most 3rd party websites. These videos will redirect viewers back to YouTube when played.

Manage video embedding options

Plow on privacy-enhanced mode

The Privacy Enhanced Mode of the YouTube embedded player prevents the use of views of embedded YouTube content from influencing the viewer'south browsing feel on YouTube. This ways that the view of a video shown in the Privacy Enhanced Way of the embedded role player will not be used to personalize the YouTube browsing experience, either within your Privacy Enhanced Fashion embedded thespian or in the viewer'south subsequent YouTube viewing experience.

If ads are served on a video shown in the Privacy Enhanced Mode of the embedded player, those ads volition likewise exist non-personalized. In addition, the view of a video shown in the Privacy Enhanced Mode of the embedded player will not exist used to personalize advertising shown to the viewer outside of your site or app.

As a reminder, the YouTube API Terms of Service and Programmer Policies apply to the admission and use of the YouTube embedded histrion.

To use Privacy Enhanced Mode:

  1. Change the domain for the embed URL in your HTML from https://www.youtube.com to https://www.youtube-nocookie.com.
  2. For network administrators: You will demand to add youtube-nocookie.com to the firewall allowlist.
  3. For use in applications, utilise a WebView instance of the embedded player. Privacy Enhanced Mode is bachelor merely for embedded players on websites.
  4. Important: If your website or app is child directed, yous must cocky designate your site or app using these tools, every bit required by the YouTube API Terms of Service and Programmer Policies, even if you embed YouTube videos with the Privacy Enhanced Mode player.

Example:

Before

<iframe width="1440" height="762"

src="https://www.youtube.com/embed/7cjVj1ZyzyE"

frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

After

<iframe width="1440" height="762" src="https://world wide web.youtube-nocookie.com/embed/7cjVj1ZyzyE"

frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Note: If the viewer clicks or taps out of the embed and is redirected to some other website or app, that website or app may track the viewer's behavior every bit per that website'due south or app's policies and terms.

Brand an embedded video play automatically

To make an embedded video autoplay, add "&autoplay=1" to the video's embed code correct afterwards the video ID (the series of letters that follows "embed/").

Embedded videos that are autoplayed don't increase video views.

Instance:

<iframe width="560" pinnacle="315" src="https://www.youtube.com/embed/D6Ac5JpCHmI?&autoplay=1"frameborder="0"  allowfullscreen></iframe>                  

Start an embedded video at a certain time

To have a video get-go playing from a specific point, add "?start=" to a video's embed code, followed by the time in seconds at which you lot'd like the video to begin playing.

For example, if yous want a video to starting time at 1 minute and 30 seconds into the video, your embed lawmaking would look something like this:

<iframe allowfullscreen="" frameborder="0" height="315" src="http://www.youtube.com/embed/UkWd0azv3fQ?star                                          t=xc                    " width="420"></iframe>

Add together captions to an embedded video

Brand captions automatically announced for an embedded video by adding "&cc_load_policy=1" to the video's embed code.

You can also choose a explanation linguistic communication for the embedded video. To specify the caption language for the video that you'd like to embed, but add "&cc_lang_pref=fr&cc_load_policy=1" to the video'southward embed lawmaking.

  • "cc_lang_pref" sets the language for the captions shown in the video.
  • "cc_load_policy=1" turns captions on by default.
  • "fr" represents the language code for French. You can look up two-alphabetic character language codes in the ISO 639-1 standard.

Turn off embedding for your videos

If you've uploaded a video and don't want to allow others to embed your video on external sites, follow these steps:

  1. Sign in to YouTube Studio.
  2. From the left menu, select Content.
  3. Adjacent to the video you lot'd similar to manage, select Details .
  4. From the top, select Evidence MORE.
  5. Uncheck the box next to "Allow embedding" and SAVE.

Was this helpful?

How can nosotros improve it?