Skip to content

YouTube iframe Embed Code

Generate clean <iframe> embed code for any YouTube video. Customize width / height, autoplay, mute, loop, show/hide controls, related-video restrictions, and start time. Copy the code, paste into your HTML, done.

When to use this

Use for: embedding YouTube videos in your website / blog, including videos in HTML email templates (where supported), embedding tutorials in product docs, adding videos to LMS / education platforms.

Frequently Asked Questions

Does autoplay work in all browsers?

Modern browsers block autoplay with sound (Chrome, Safari, Firefox). Autoplay only works if muted=1 is also set. Our generator auto-adds muted=1 when you toggle autoplay to ensure it works.

Powered by YouTube Embed Code Generator.

Other targeted versions of this tool — each tuned for a specific use case.

Or use the main YouTube Embed Code Generator if your use case isn't covered above.