What each option does
| Option | Added to the code |
|---|---|
| Start / stop time | start=90, end=180 (seconds) |
| Autoplay | autoplay=1&mute=1 (browsers only autoplay muted videos) |
| Loop | loop=1&playlist=VIDEO_ID (YouTube needs both) |
| Hide controls | controls=0 |
| Captions on | cc_load_policy=1 |
| Related videos from this channel | rel=0 |
| Privacy-enhanced mode | Player from youtube-nocookie.com |
The code includes loading="lazy", so the player only loads when a visitor scrolls to it. That keeps your page fast, which also helps your Google ranking.
Related: YouTube timestamp link · YouTube thumbnail downloader · QR code for a video link
SaralKit is not affiliated with YouTube or Google.
How to use the YouTube Embed Code Generator tool
- Paste the YouTube video link.
- Choose the size, start time and player options.
- Copy the code and paste it into your website.
Why SaralKit?
- Free forever: no "credits", no trial, no premium tier, no watermark and no daily limit.
- No account, ever: nothing to sign up for. Just open the page and use it.
- No data stored: your files and the numbers you type are processed by your own browser. We never upload, store or see them.
- Works offline: once the page has loaded, most tools keep working without internet.
- Check it yourself: open your browser's Network tab while you use a tool. Your file is never sent.
Frequently asked questions
How do I embed a YouTube video on my website?
Paste the video link above, pick the options, press Copy code and paste the code into your page's HTML. In WordPress, add a "Custom HTML" block; in Blogger, switch the post to HTML view first.
How do I make a YouTube embed responsive?
Keep "Responsive" on. The code uses width:100% with aspect-ratio:16/9 (9:16 for Shorts), so the video fills its column on phones and computers without black bars or overflow.
Why doesn't autoplay work with sound?
Chrome, Safari and Firefox block videos that start playing with sound. That's why the code adds mute=1 whenever autoplay is on; visitors can unmute.
What is privacy-enhanced mode?
It loads the player from youtube-nocookie.com, so YouTube doesn't store cookies for your visitors until they press play. It's a good default for blogs and business sites.
How do I start or stop the video at a certain time?
Type the start and end times (like 1:30). The code adds start and end in seconds.