About this tool
Embed a YouTube Video With Start and End Times, Autoplay and More
Every option YouTube's Share button leaves out
YouTube's Share, Embed dialog gives you a fixed-size player and a start time at most. Ending at a set point, autoplay, looping, captions on by default, hidden controls, privacy-enhanced mode and a player that resizes on phones all need the right parameters added by hand.
Paste a video link, set a start and end time if you want a clip, tick the player options and pick a size. This free generator writes iframe code ready to paste into any site. To embed a whole series instead of one video, build a playlist and embed that.
Need the full result?
This page shows a quick preview. YouTube Playlist Builder runs the whole thing and lets you export it.
Why use it
What you get from the YouTube Video Embed Code Generator
Play just a clip with a start and end time.
Muted autoplay that browsers actually allow.
Captions on, controls hidden, fullscreen or keyboard off.
Responsive or fixed sizes from 560 to 1280 wide.
How it works
3 steps, about ten seconds
Paste the video link.
Set the times, tick the options and pick a size.
Copy the code into your page.
FAQs
Questions people ask
Yes. Type an end time and the player stops there. It must be after the start time.
Chrome, Safari and Firefox block autoplay with sound, so a muted start is the only autoplay that works reliably.
Tick Loop. YouTube only loops a single video when the same video is also given as a playlist, which the code does for you. A loop replays the whole video, even if you set an end time.
Not completely any more. YouTube removed the option to hide its logo, and related videos at the end now come from the same channel, which the code sets.
Yes. It runs entirely in your browser with no account or card, so there is no daily limit.
No. Everything is processed on your device and nothing you paste or open is sent to a server.
Keep reading
Related guides
Ready to try the YouTube Video Embed Code Generator?
Paste a link at the top of the page and get your answer in seconds.
No signup · No card · Takes seconds