YouTube Embed Code Generator

Generate YouTube Embed Code Instantly

Paste a YouTube URL, customize size and options, then copy the HTML embed code straight into your website.

Customize embed

Width
pixels
Height
pixels
Preset size
Autoplay
Start playing automatically
Show controls
Display playback controls
Loop video
Repeat when finished
Mute
Start muted (required for autoplay)
Privacy mode
Don't track viewers
Start time
seconds (0 = beginning)

Live preview

How to embed a YouTube video on your website

Embedding a YouTube video in your website is simple — you just need the right HTML iframe code. ThumbRip's embed code generator creates the code automatically with all the options you need: custom size, autoplay, loop, mute, start time, and privacy-enhanced mode.

Privacy-enhanced mode (youtube-nocookie.com) is recommended — it means YouTube won't set tracking cookies on your visitors unless they click play. This is important for GDPR compliance if you have visitors from Europe.

Just paste the video URL, customize your options, copy the code and paste it into your website's HTML where you want the video to appear.