YouTube embed code builder
Privacy-enhanced embed markup with start and end times, autoplay and loop — previewed live before you copy it.
Add the start parameter to the embed URL, set to the number of seconds. Use end to stop at a point as well. Both accept whole seconds only. The builder above adds these for you, along with privacy-enhanced mode and the correct loop parameters.
Player parameters worth knowing
| Parameter | Effect | Note |
|---|---|---|
start | Begin at N seconds | Whole seconds only |
end | Stop at N seconds | Whole seconds only |
autoplay | Play on load | Requires mute=1 in every major browser |
loop | Repeat | Also needs playlist set to the same video ID |
controls | Show or hide controls | 0 hides them |
rel | Related videos | Since 2018 this only limits them to the same channel |
Common questions
What is youtube-nocookie.com?
It is YouTube’s privacy-enhanced embed domain. It defers setting tracking cookies until the viewer actually plays the video, which is why it is the usual recommendation for GDPR-conscious sites. The player behaves identically otherwise.
Why does autoplay force mute?
Every major browser blocks autoplay with sound unless the user has already interacted with the page. Adding mute=1 is the only way autoplay reliably works, so this tool sets it automatically whenever you enable autoplay.
How do I make an embedded video loop?
Looping needs two parameters, not one: loop=1 and playlist set to the same video ID. Without the playlist parameter the loop flag is silently ignored — a long-standing quirk of the embed API. This tool adds both.
How do I start an embed at a specific time?
Set the start parameter to the number of seconds. Add end to stop at a point too. Both are whole seconds only — the embed API does not accept fractions.