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.

What to embed?
Video options
Play options
Size options
Appearance options
Error: Video not found.

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.

OptionWhat it doesParameter
AutoplayStarts playing automatically. Browsers only allow this when the video is muted.autoplay=1
LoopReplays the video continuously.loop=1
MuteStarts the video without sound.mute=1
Start atBegins playback at a chosen second.start=SECONDS
End atStops playback at a chosen second.end=SECONDS
Hide controlsRemoves the player control bar.controls=0
Fewer related videosLimits suggested videos shown at the end.rel=0
Minimal brandingReduces the YouTube logo in the control bar.modestbranding=1
Force captionsShows closed captions by default.cc_load_policy=1
Hide annotationsTurns off on video annotations.iv_load_policy=3
No fullscreenHides the fullscreen button.fs=0
White progress barUses 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.

FAQ about embedding YouTube videos

What is a YouTube embed code?

A YouTube embed code is a small piece of iframe HTML that displays a YouTube video directly inside your web page. When a visitor plays it, the video runs on your site instead of sending them to YouTube. This generator builds that iframe code for you, with your chosen size and playback options.

How do I embed a YouTube video on my website?

Paste the video link or ID, set the size or turn on responsive design, choose any play and appearance options, then click Generate code and Copy. Paste the code into the HTML of the page where you want the video to appear.

How do I make a YouTube embed responsive?

Turn on the Use responsive design option and pick an aspect ratio, such as 16:9. The generator wraps the iframe so it scales to the full width of its container and keeps the correct height on any screen size, including mobile.

Why will my video not autoplay?

Modern browsers block autoplay with sound. To autoplay reliably, enable both Autoplay and Mute. The video then starts on its own without sound, and viewers can unmute it with one click.

How do I start a YouTube video at a specific time?

Enter a value in the Start video field, in seconds. For example, 90 starts the video at one minute and thirty seconds. You can also set an end time to stop playback at a chosen second.

How do I remove related videos and the YouTube logo?

Enable the option to limit related videos, which adds rel=0 so suggestions at the end come from the same channel where possible. Turn on Modest branding to reduce the YouTube logo in the control bar.

Can I embed a full playlist or several videos?

Yes. Choose Playlist and paste a playlist link to embed the whole playlist, or choose Videos list to add several video IDs that play one after another in a single player. You can reorder the list before generating the code.

Is the YouTube embed generator free?

Yes. The generator and all of its options are free, with no registration and no limit on how many embed codes you create.

Total of 1,612 videos generated