Home› Social & video› YouTube Embed Generator
YouTube Embed Generator
Responsive, privacy-friendly embed code.
Preview
Embed code
Paste a YouTube link to generate the code.
About the YouTube Embed Generator
Builds the iframe embed code for a video with the options that actually affect the page: start time, autoplay, muted, loop, related-video behaviour, controls and a responsive wrapper that keeps the aspect ratio on every screen width.
The privacy-enhanced option switches the domain to youtube-nocookie.com, which stops YouTube setting tracking cookies until someone presses play. If you publish to visitors in the EU, that choice interacts directly with your cookie consent obligations and is worth taking.
A word on performance: an embedded player pulls several hundred kilobytes of script before anyone clicks. On a page with three videos that is most of your performance budget spent on content nobody may watch. Consider a click-to-load facade if speed matters on that page.
Common questions
What does the privacy-enhanced (nocookie) option actually change?
It switches the embed domain to youtube-nocookie.com, which stops YouTube setting tracking cookies until someone actually presses play — relevant if you need to satisfy EU cookie-consent rules.
Does embedding a video slow down my page?
Yes, noticeably — a standard embed loads several hundred kilobytes of script before anyone clicks. A click-to-load thumbnail facade is worth considering on a page where speed matters and autoplay isn't required.
Can I control where the video starts playing?
Yes, the generator includes a start-time option that appends the correct timestamp parameter to the embed URL.