Generate a custom, responsive YouTube embed code in seconds
A YouTube embed code generator is a free online tool that builds the iframe code you paste into a website to show a YouTube video, playlist or list of videos. Choose a single video, a full playlist or several videos in a row, set a fixed size or a responsive aspect ratio, and switch options like autoplay, loop, mute, start time, captions and minimal branding on or off. The generator writes the code for you and updates a live preview, so you copy clean, mobile friendly embed code without changing any YouTube settings or writing HTML by hand.
How to embed a YouTube video on your website
- Pick what to embed: a single video, a list of videos or a whole playlist.
- Paste the YouTube link or video ID. You can paste a full watch URL and the tool reads the ID for you.
- Set the size, or turn on responsive design and choose an aspect ratio so the video scales on mobile.
- Choose play and appearance options such as autoplay, loop, start time, captions or minimal branding.
- Click Generate code, then Copy, and paste the code into your page where you want the video to appear.
Embed options and YouTube parameters
Every option below maps to a standard YouTube iframe parameter, so the code stays clean and works anywhere.
| Option | What it does | Parameter |
|---|---|---|
| Autoplay | Starts playing automatically. Browsers only allow this when the video is muted. | autoplay=1 |
| Loop | Replays the video continuously. | loop=1 |
| Mute | Starts the video without sound. | mute=1 |
| Start at | Begins playback at a chosen second. | start=SECONDS |
| End at | Stops playback at a chosen second. | end=SECONDS |
| Hide controls | Removes the player control bar. | controls=0 |
| Fewer related videos | Limits suggested videos shown at the end. | rel=0 |
| Minimal branding | Reduces the YouTube logo in the control bar. | modestbranding=1 |
| Force captions | Shows closed captions by default. | cc_load_policy=1 |
| Hide annotations | Turns off on video annotations. | iv_load_policy=3 |
| No fullscreen | Hides the fullscreen button. | fs=0 |
| White progress bar | Uses a white progress bar instead of red. | color=white |
Common uses
- Adding a product or explainer video to a landing page in a responsive frame.
- Embedding a background style clip that autoplays muted and loops.
- Starting a tutorial at the exact moment that matters with a start time.
- Showing a full playlist or a short series of videos in one player.
- Keeping visitors on your site instead of sending them to YouTube.