Tools / YouTube

YouTube Embed Code Builder

Pick your options and copy code that is responsive, uses privacy-enhanced mode and loads fast. The lite version shows only a thumbnail until someone clicks play, which keeps pages quick.

Code


    

How to use it

  1. Paste the video link. A start time in the link, like ?t=90, is picked up.
  2. Choose options such as privacy mode, start time, autoplay or loop.
  3. Copy the Standard code, or the Lite code that loads the player only on click for a faster page.

Independent tool, not made by or affiliated with YouTube. YouTube is a trademark of Google LLC.

Questions

What is privacy-enhanced mode?

It uses the youtube-nocookie.com address, so YouTube does not store viewing information about your visitors unless they play the video.

Why does autoplay start muted?

Browsers block videos that autoplay with sound, so the code adds mute to make autoplay work reliably.

How do I loop one video?

YouTube only loops when the playlist parameter is set, so the tool adds the same video as a one-item playlist for you.

Can I hide related videos completely?

No. Since 2018 the rel setting only limits related videos to your own channel. Players cannot remove them fully.

Why use the lite version?

A normal embed loads several hundred KB of player code on page load. The lite version shows only the thumbnail and loads the player when someone clicks, which helps page speed.