How do I make a YouTube embed responsive?
Choose "Responsive" size. The code wraps the iframe in a container with a 16:9 aspect ratio, so the video always fills the width of its parent and scales on phones, tablets and desktops.
YouTube Tool
Paste a video link, choose your options, and copy ready-to-use embed code for your website.
The preview loads the video from YouTube only when you click "Load preview".
FAQ
Choose "Responsive" size. The code wraps the iframe in a container with a 16:9 aspect ratio, so the video always fills the width of its parent and scales on phones, tablets and desktops.
Browsers block autoplaying videos with sound. That's why turning on Autoplay also turns on Mute — muted autoplay is allowed in all major browsers.
It uses youtube-nocookie.com, so YouTube doesn't store cookies for your visitors until they actually play the video. It's a good default for sites that care about privacy rules like GDPR.
Generating code doesn't — the link is parsed in your browser. The optional preview loads the video from YouTube only when you click "Load preview".
Also try the YouTube Timestamp Link Generator and the YouTube Thumbnail Downloader.