Try every tool free for 14 days with 75 credits. No card needed. Start free
Product
AI video generatorText or an image to video with Veo, Kling, Seedance and more AI avatars & lip syncTalking presenters and lip-synced video from a script or audio UGC video adsAn AI creator presents your product on camera, in 9:16 Subtitles & translationTranscribe, edit, translate and download SRT or VTT AI dubbingDub a video into 32 languages, in the speaker's own voice AI voice & cloningNatural voiceovers and your own cloned voice
Company
Free tools Pricing Blog Contact
Free YouTube embed generator

YouTube embed code with the options you need

Paste a video link and get iframe code that starts and ends where you want, autoplays muted, loops, shows captions or hides controls, in a responsive 16:9 box that fits any page.

Free, no sign-upRuns in your browserNothing is uploaded
Size

Embed code-

Paste the code into an HTML block in WordPress, Shopify, Webflow, Squarespace or any page. The preview loads YouTube's player from YouTube.

In short

To embed a YouTube video with options, paste its link here, set a start or end time and tick the options you want, then copy the code into an HTML block on your site. The tool adds YouTube's player parameters: start and end in seconds, autoplay (which browsers only allow when muted, so it also adds mute=1), loop (which needs the playlist parameter set to the same video), controls=0 to hide controls and cc_load_policy=1 for captions. Privacy-enhanced mode uses youtube-nocookie.com.

How it works

3 steps, a few seconds

1

Paste the video link

A watch, youtu.be, Shorts or embed link. A ?t= time becomes the start time.

2

Choose options

Start and end, size, autoplay, loop, controls, captions and privacy mode.

3

Copy the code

Paste it into an HTML or embed block on your site. Preview it here first if you like.

Features

What the YouTube Embed Code Generator does

Start and end times

Play only the part that matters, in m:ss or YouTube's 1m30s format.

Responsive 16:9

A wrapper that scales with the page, or a fixed 560, 640 or 853 wide player.

Autoplay and loop

Set up the way browsers allow: autoplay muted, loop with the playlist parameter.

Privacy-enhanced mode

Uses youtube-nocookie.com, YouTube's privacy-enhanced embed domain.

Captions on

Shows captions by default when the video has them.

Clean code

Only the parameters you change, plus lazy loading and a title for accessibility.

Parameters
start, end, autoplay + mute, loop + playlist, controls, cc_load_policy, playsinline
Sizes
Responsive 16:9, 560×315, 640×360, 853×480, Shorts 315×560
Privacy
Optional youtube-nocookie.com domain
Preview
Loads YouTube's player only when you press Show preview
Cost
Free, no sign-up
FAQ

Questions about the YouTube Embed Code Generator

How do I embed a YouTube video at a specific time?
Type the start time (like 1:30) and the code adds start=90. You can also paste a link that already has ?t=90 and the start time fills in. Set an end time to stop there.
Why doesn't my embedded video autoplay with sound?
Browsers block autoplay with sound until the visitor interacts with the page. That's why this tool adds mute=1 whenever autoplay is on: muted autoplay is allowed.
How do I make a YouTube embed responsive?
Choose Responsive 16:9. The code wraps the player in a box with aspect-ratio 16:9 and width 100%, so it fills its column on any screen.
What is privacy-enhanced mode?
It loads the player from youtube-nocookie.com, the domain YouTube provides for embeds in its privacy-enhanced mode. YouTube's help page on embedding videos explains what it changes.
How do I loop a YouTube embed?
YouTube's loop parameter only works with a playlist, so the tool adds loop=1 and playlist set to the same video ID.
Chat with the founder