YT.TOOLS

Embedding

How to Embed a YouTube Video

The iframe, the privacy-mode domain, and the parameters that still work

6 min read

On a website: paste an <iframe> pointing at youtube.com/embed/VIDEO_ID. In PowerPoint: Insert → Video → Online Video, then paste the normal watch URL. Anywhere else — Canvas, Notion, a CMS — look for an "embed" block and paste the watch URL; most platforms expand it themselves.

The differences that matter are privacy mode, which parameters actually still work, and page speed. All three below.

The HTML embed code for a YouTube video

The minimum HTML that works:

<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" title="Video title" frameborder="0" allowfullscreen></iframe>

The video ID is the 11-character string after v= in a watch URL, or after the slash in a youtu.be link.

Two things to add that most copy-pasted embeds miss:

  • A title attribute. Screen readers announce it. Without one the iframe is an unlabelled frame, which is an accessibility failure and trivially avoidable.
  • loading="lazy" if the video is below the fold. A YouTube embed pulls in a substantial amount of script; deferring it until the reader scrolls is the single biggest speed win available here.

Privacy-enhanced mode

Swap the domain for youtube-nocookie.com:

https://www.youtube-nocookie.com/embed/VIDEO_ID

This defers cookie-based tracking until the viewer actually plays the video. If you operate under GDPR or publish a cookie policy, this is the version you want — it reduces what you have to disclose and what consent you need before the page loads. The player behaves identically.

Parameters worth knowing

Append them to the embed URL with ? for the first and & for the rest.

ParameterEffect
start=90Begin at 90 seconds
end=210Stop at 210 seconds
rel=0Restricts suggested videos at the end to the same channel. It no longer removes them entirely — that changed in 2018 and a lot of guides are still wrong about it.
controls=0Hide player controls
mute=1Start muted — required for autoplay to work in modern browsers
autoplay=1Play on load. Only works alongside mute=1, and it is usually a bad idea.
loop=1&playlist=VIDEO_IDLoop. The playlist repeat of the same ID is required; loop alone does nothing.

Two deprecated ones still circulating: modestbranding no longer does anything, and showinfo was removed years ago. If a tutorial hands you either, it hasn't been updated.

In PowerPoint (PPT)

The reliable route in current versions:

  1. Copy the video's normal watch URL from the address bar.
  2. In PowerPoint: Insert → Video → Online Video.
  3. Paste the URL and insert.
  4. Resize and position the frame on the slide.

Three things that catch people out:

  • It streams. The video isn't embedded in the file — the slide needs an internet connection when you present. If you're presenting somewhere with unreliable wifi, that's a real risk, and the honest fallback is a screenshot with a link, or asking the creator's permission for a local copy.
  • Play it once before presenting. Playback in PowerPoint is more fragile than in a browser; test on the actual machine you'll present from.
  • Older versions differ. PowerPoint 2013 and earlier used an "Insert Video from Website" dialog that wanted embed code rather than a URL. If you see that dialog, paste the full <iframe> instead.

Google Slides, Canva and other editors

The pattern is the same everywhere, and only the menu name changes.

WhereHow to embed a YouTube videoNeeds internet when presenting?
Google SlidesInsert → Video → paste the URL, or search YouTube inside the dialogYes
CanvaPaste the watch URL onto the design; Canva expands it into a playerYes
Canvas (the LMS)Rich Content Editor → the plug icon → Embed, then paste the iframeYes
Notion, WordPress, most CMSsPaste the plain watch URL on its own lineYes
PowerPoint (PPT)Insert → Video → Online VideoYes

Google Slides is the one worth calling out: it accepts a YouTube URL directly and also lets you set start and end times in the format panel, which is the closest any of these editors gets to the start and end parameters.

None of them store the video. Every one of them streams it, which is why the last column is all yeses and why testing on the presenting machine matters.

Embed a YouTube playlist instead of one video

Swap the path. A single video uses /embed/VIDEO_ID; a playlist uses /embed/videoseries?list=PLAYLIST_ID, where the playlist ID is the PL… string after list= in the playlist URL.

<iframe src="https://www.youtube-nocookie.com/embed/videoseries?list=PLAYLIST_ID" title="Playlist title" allowfullscreen></iframe>

The player then shows playlist controls, and the viewer can move through the whole series without leaving your page. Useful for a course, a series index, or any page where one video is not the point.

Canvas, Notion, WordPress and the rest

Most platforms handle YouTube through oEmbed, which means pasting the plain watch URL on its own line is enough — the platform expands it into a player. Look for an "Embed" block if a bare paste doesn't work.

Where a platform strips iframes (some LMS and forum software), it will usually still accept the URL through its own media tool. Where it strips both, you're left with a linked thumbnail, which is a perfectly reasonable outcome.

Embeds are expensive

A single YouTube embed loads a meaningful amount of JavaScript before the visitor has decided to watch anything. On a page with three or four embeds that is the dominant cost.

In rough order of effectiveness:

  • loading="lazy" on anything below the fold. Free, one attribute.
  • A click-to-load facade. Show the thumbnail as a static image, swap in the iframe on click. This is what fast sites do, and it removes the entire cost for readers who never press play.
  • Fewer embeds per page. Three videos on one article is usually two too many.

Rules and etiquette

  • Embedding is allowed — it's a feature YouTube provides, and views through an embed count for the creator. Creators can disable embedding, in which case the player shows an error and there is nothing to do about it.
  • Don't download and re-upload to avoid the embed. That's a copyright problem, and it takes the view away from the creator.
  • Autoplay with sound is blocked by browsers and disliked by everyone. If you autoplay, mute.

FAQ

How do I embed a YouTube video in PowerPoint?

Copy the watch URL, then Insert → Video → Online Video and paste it. The video streams rather than being stored in the file, so you need an internet connection while presenting — test it on the presenting machine first.

How do I embed a YouTube video on a website?

Use an iframe pointing at youtube.com/embed/VIDEO_ID. Add a title attribute for accessibility and loading="lazy" if it sits below the fold.

How do I make an embed start at a specific time?

Add ?start=90 to the embed URL for 90 seconds in. Pair it with &end=210 to stop at a set point.

How do I remove suggested videos at the end?

You can't remove them entirely any more. rel=0 limits them to the same channel, which is the closest available. Guides promising full removal are describing pre-2018 behaviour.

What's the difference with youtube-nocookie.com?

It defers cookie-based tracking until the viewer presses play. Same player, less to disclose under GDPR. Use it as the default unless you have a reason not to.

Why does my embed show "Video unavailable"?

Usually the creator disabled embedding, or the video is private, deleted or blocked in the viewer's country. Region blocks are checkable — see why a video is unavailable.

Next steps

Sebastian G. · Co-Founder & Lead Developer

Builds YT.Tools. Over a decade in web development and SEO.

Published 25 July 2026. YT.Tools is not affiliated with YouTube or Google.