All tools
YouTube Embed Generator
Paste a YouTube video link and copy CMS-ready embed code — responsive and privacy-enhanced by default.
A watch, youtu.be or Shorts link, or an 11-character video ID. One video at a time.
- The embed code is made here in your browser.
- The preview loads the video from YouTube — from youtube-nocookie.com while Privacy-enhanced mode is on.
- Nothing you paste is sent to or stored by OpsDrawer.
Learn more about embedding YouTube videos
How to do it
- Copy the video's link from YouTube — a watch, youtu.be or Shorts link — or just its 11-character ID.
- Paste it into YouTube link or video ID. The embed code and a live preview appear straight away; there's nothing to press.
- Open Settings to change anything: Start and end times, the Size, Privacy, Related videos, and Playback (Autoplay, Mute, Loop, Hide player controls).
- Watch the preview to check the result. It updates as you change a setting.
- Press Copy code, then paste the code into your CMS or web page wherever it accepts HTML.
Questions
- Will the video fit my page on a phone?
- Yes, with the default Responsive size: the player fills the width of whatever it's placed in and keeps the video's shape. A Short gets a tall 9:16 box instead. The fixed sizes are exactly that many pixels wide.
- What does Privacy-enhanced mode do?
- The video plays from youtube-nocookie.com, so YouTube keeps less about visitors who don't press play. It's on by default; pick Standard only if your site won't accept that address.
- How do I make the video start at a certain time?
- In Settings, enter Start at in seconds (83) or as a timecode (1:23 or 1:02:03). A link with a time in it, such as ?t=90, fills it in for you. Add End at to stop the video there.
- Can I turn off related videos at the end?
- Not completely — YouTube always suggests more videos when one ends. Choose From this channel only to keep the suggestions to the same channel.
- Why does Autoplay mute the video?
- Browsers only start a video by itself when it's muted, so Autoplay turns Mute on.
- Can I embed a playlist or a whole channel?
- No. The generator makes code for one video at a time. A playlist link is refused with a note asking for a link to one video.
- Is anything I paste sent to OpsDrawer?
- No. The embed code is made in your browser and nothing you paste is stored. Only the preview contacts YouTube, to load the video.