Published by the Zolyp team ·
How do you embed a YouTube video or playlist?
Embedding puts YouTube's player on your own page, so visitors can watch without leaving your site. The YouTube API Terms of Service and Developer Policies apply to every embedded player.
- On a computer, go to the video or playlist on YouTube.
- Click Share.
- In the list of share options, click Embed.
- Copy the HTML code from the box that appears.
- Paste the code into your website's HTML, for example in your site builder's HTML or embed block.
- If your office network blocks it, your network administrator needs to add youtube.com to the firewall allowlist.
- If your website or app is aimed at children, YouTube requires you to self-designate it with its designation tools. That stops personalised ads and turns off some player features.
Source: YouTube Help: Embed videos & playlists, checked 15 October 2026
How do you start at a set time or turn captions on?
Add parameters to the embed URL inside the code you copied, after the video ID (the characters after embed/). The first parameter follows a question mark and each extra one follows an ampersand.
| Option | What to add | Notes |
|---|---|---|
| Start time | start= and the time in seconds | 1 minute 30 seconds is start=90 |
| Autoplay | autoplay=1 | Autoplayed embeds don't increase the view count |
| Captions on by default | cc_load_policy=1 | |
| Caption language | cc_lang_pref= and a two-letter ISO 639-1 code | Use with cc_load_policy=1, for example cc_lang_pref=fr&cc_load_policy=1 |
Source: YouTube Help: Embed videos & playlists, checked 15 October 2026
What is privacy-enhanced mode?
Privacy-enhanced mode stops views of your embedded video from affecting the viewer's YouTube recommendations, including on YouTube itself. Ads in this mode are non-personalised, and the views aren't used to personalise ads shown outside your site. It works only for embedded players on websites.
- In the embed code, find the domain www.youtube.com.
- Change it to www.youtube-nocookie.com.
- Save the page. If your network filters traffic, add youtube-nocookie.com to the firewall allowlist too.
- Child-directed sites must still self-designate when they use this mode.
- If a viewer clicks through to another site or app, that site may track them under its own policies.
Source: YouTube Help: Embed videos & playlists, checked 15 October 2026
How do you stop other sites embedding your videos?
Embedding is a setting on each of your videos. YouTube's own advice on promoting videos is to leave it on so others can share your work, but you can turn it off:
- Sign in to YouTube Studio.
- In the left menu, select Content.
- Next to the video, select Details.
- At the bottom, select Show more.
- Untick Allow embedding, then select Save.
Sources: YouTube Help: Embed videos & playlists, checked 15 October 2026; YouTube Help: Promote your videos, checked 15 October 2026
Why won't an embedded YouTube video play?
Check these causes in order:
- Error 153: YouTube requires embedders to send an HTTP Referer. Without one, playback is blocked, though viewers can still click Watch on YouTube. Your developer can fix this by sending a Referer with the request.
- You opened the embed URL directly in the address bar. That usually sends no Referer and shows the same error; the player only works inside a page.
- The video is age-restricted. These can't be watched on most third-party sites and send viewers to YouTube instead.
- The owner has turned off Allow embedding for that video.
- A workplace or school firewall is blocking youtube.com or youtube-nocookie.com.
Sources: YouTube Help: Embed videos & playlists, checked 15 October 2026; YouTube Help: Age-restricted content, checked 15 October 2026
Where Zolyp fits
Embedding gets more use out of videos you've already published. Zolyp, which publishes this guide, publishes to YouTube as one of 9 platforms (Instagram, Facebook, LinkedIn, Google Business, X, TikTok, YouTube, Pinterest, and Threads). It creates video uploads and Shorts with titles and descriptions written for search, can set a custom thumbnail on a standard video, and schedules them with the posts on your other networks. You approve the week before anything goes live.
Common questions
How do I get the embed code for a YouTube video?
On a computer, open the video, click Share, then Embed, and copy the HTML code from the box.
Can I embed a YouTube video to start at a certain time?
Yes. Add start= followed by the time in seconds to the embed URL. For 1 minute 30 seconds, use start=90.
Do embedded YouTube views count?
YouTube says autoplayed embedded videos don't increase the view count. Its help page doesn't say embedded views are excluded otherwise.
Can I embed a whole YouTube playlist?
Yes. Open the playlist, click Share, then Embed, and copy the code the same way as for a single video.
What does YouTube error 153 mean on an embed?
The embed didn't send an HTTP Referer, which YouTube requires. Viewers can still click Watch on YouTube; the site owner needs to send a Referer with the request.