YouTube Embed Code Generator – Responsive, Autoplay, Start Time
Paste a YouTube link and get clean embed code for your blog or website, with the player options you want and a live preview.
How to use the YouTube Embed Generator
- Paste the linkPaste any YouTube link: a normal video, a youtu.be short link, a Shorts link, a live link or a playlist. A start time in the link (like &t=90) is picked up automatically.
- Choose optionsPick a responsive or fixed size and the shape (16:9 or 9:16 for Shorts). Set start and end times, and turn on autoplay, mute, loop, captions or privacy-enhanced mode.
- Copy the codeCheck the live preview, then copy the code. In Blogger, switch the post editor to HTML view and paste it where the video should appear.
Example
The sample link with &t=90 gives a responsive player that starts at 1:30: …/embed/aqz-KE-bpKQ?start=90&rel=0&playsinline=1 on youtube-nocookie.com.
A Shorts link such as youtube.com/shorts/… switches to a 9:16 player that is at most 360 px wide, so it looks right on desktop and phones.
Frequently asked questions
Why doesn’t autoplay work with sound?
Browsers block videos that start playing with sound. Autoplay works only when the video is muted, so this tool adds mute=1 automatically when you turn on autoplay.
What does privacy-enhanced mode do?
It uses youtube-nocookie.com, so YouTube does not store cookies about your visitors until they play the video. This is friendlier for privacy laws such as GDPR.
How do I make the video fit phones?
Choose Responsive. The player then fills the width of your post and keeps the right shape on every screen, using the CSS aspect-ratio property.