Player Options
Live Preview Ready
Paste a YouTube URL to generate the preview.

Generated embed code



This YouTube Embed Code Generator creates clean iframe code for adding a YouTube video to a website, blog post, landing page or online article. Paste a normal YouTube video link, Shorts link, youtu.be link or video ID, then copy the generated embed code.

The tool supports responsive embeds, privacy enhanced mode, autoplay with mute, loop, controls, lazy loading, start time and different aspect ratios. It is designed for Blogger, WordPress and simple HTML pages where you need a fast YouTube iframe without editing code by hand.

How To Use The YouTube iframe Generator

  • Paste the YouTube video URL or the 11 character video ID.
  • Choose responsive mode for a video that fits mobile and desktop screens.
  • Add a start time if the video should begin from a specific moment.
  • Enable privacy mode to use the youtube-nocookie.com embed domain.
  • Copy the generated code and paste it into your website HTML area.

Why Use Responsive YouTube Embed Code?

A fixed-size iframe can look too wide on mobile screens. Responsive embed code keeps the player inside the available width and maintains the selected aspect ratio. This gives a cleaner user experience on phones, tablets and desktop browsers.

Frequently Asked Questions

Can I use this on Blogger?

Yes. Copy the generated code and paste it into an HTML block or the HTML view of a Blogger post. The tool uses Blogger-friendly scoped CSS for its own interface.

What is privacy enhanced mode?

Privacy enhanced mode uses the youtube-nocookie.com embed domain. It is commonly used when site owners want a more privacy-focused YouTube embed setup.

Why does autoplay also enable mute?

Most modern browsers block autoplay with sound. Muting the player gives autoplay a better chance to work across browsers.