YouTube Embed Code Generator
Paste a YouTube URL, customise your options, and get a clean embed code instantly.
Options
Size
Start Time
In seconds (e.g. 90 = 1:30)
Show Controls
Display the YouTube player controls
Autoplay
Start playing when page loads
Mute
Start muted (required for autoplay)
Loop
Replay the video automatically
Modest Branding
Hide YouTube logo where possible
Show Related Videos
Show suggestions after video ends
How to Embed a YouTube Video
Embedding a YouTube video means placing it directly inside a webpage using an iframe tag. Paste your YouTube URL above, choose your settings, click Generate Embed, and copy the code into your website's HTML wherever you want the video to appear.
You can control the player size, whether controls are shown, autoplay behaviour, start time, looping, and whether related videos appear after playback ends. The Preview button lets you see exactly how the player will look before you copy the code.
Autoplay & Mute
Modern browsers block autoplay with sound by default. If you enable autoplay, also enable mute — otherwise the video will silently fail to autoplay in most browsers including Chrome, Safari, and Firefox. Muted autoplay is widely supported and works well for background or hero videos on landing pages.