YouTube Embed Code Generator
Embed code with the parameters that still work, and none that quietly do not.
- 100% success
Tool input
Overview
About this tool
Builds fixed, responsive and lazy-loading embed code with start and end times, autoplay, looping and the privacy-enhanced domain — and explains the two parameters every other generator still gets wrong.
Instructions
How to use it
Paste the video, set the options you want, and copy whichever of the four snippets suits where it is going. The responsive one is right for almost every modern site: it fills its container and reserves the space before the player loads, so nothing jumps.
Two parameters that no longer mean what they say
rel=0does not hide related videos. YouTube changed it in 2018 — it now means “suggest videos from this channel only”. Nothing removes the end screen.autoplay=1alone does nothing. Every browser blocks unmuted autoplay, so this tool addsmute=1with it. Without the mute, the embed silently refuses to start.
Why no-cookie is the default
The standard youtube.com embed sets tracking cookies the moment the page renders, which in the EU and UK needs consent before the iframe appears. youtube-nocookie.com defers them until somebody presses play, which is what makes an embed safe to drop into a page without a consent gate.
Questions
Frequently asked
How do I hide the YouTube logo?
You cannot. <code>modestbranding</code> was removed in 2023 and the watermark is now permanent. Any generator still offering it is producing a parameter YouTube ignores.
Does lazy loading hurt SEO?
The opposite. A YouTube iframe costs roughly half a megabyte before anyone presses play, and <code>loading="lazy"</code> is usually the single largest Core Web Vitals win available on a page with a video on it.
Stay sharp
One email a month, when a tool worth your time ships.
No drip sequence, no launch countdowns. Unsubscribe in one click.