YouTube Embed Code Generator

YouTube Embed Code Generator

Paste a YouTube link and get clean <iframe> embed code. Set the start time, autoplay and size, preview it live, and copy. Free, no sign up.

Clean embed code, without digging through settings

YouTube’s share menu gives you a basic embed, but tweaking the start time, turning autoplay on, or making the player responsive means editing the code by hand. This YouTube embed code generator does it for you: pick the options, watch a live preview update, and copy code that just works on your site, blog, or docs.

The output is a standard YouTube <iframe> embed, so it is compatible with every website builder and CMS, from WordPress and Webflow to plain HTML.

Responsive, start time, autoplay and more

Make the player responsive so it keeps a clean 16:9 ratio on any screen, or set a fixed width and height. Add a start time so the video begins at the exact moment you want, and toggle autoplay or the player controls to match how you want it to behave on the page.

Everything updates in a live preview as you change it, so you can see exactly what visitors will get before you copy a single line of code.

Blogs, docs, landing pages and courses

Bloggers and writers embed a video that starts at the relevant moment. Product and support teams drop how-to videos into docs and help centers. Course creators and marketers add responsive players to landing pages that look right on every device.

Want the words from the video as well? Pull the full text with the main YouTube transcript tool to add a readable transcript next to your embed, which is great for accessibility and SEO.

How to get YouTube embed code

1. Paste the video URL

Copy the YouTube link from the address bar or the Share button and paste it in.

2. Choose your options

Set a start time, toggle autoplay or controls, and pick a size or make the player responsive.

3. Check the live preview

Watch the preview update as you change options so you see exactly how the embed will look.

4. Copy and paste the code

Copy the generated iframe code and paste it into your page, post, or docs.

Frequently Asked Questions

How do I embed a YouTube video on my website?

Paste the video link above, choose your options, and copy the generated <iframe> code. Paste that code into your page, blog, or CMS wherever you want the video to appear.

What code does this generate?

A standard YouTube <iframe> embed, with your chosen start time, autoplay, controls, and dimensions.

Can I make the embed responsive?

Yes. Turn on the responsive option to get a wrapper that keeps a 16:9 ratio on any screen size.

Will autoplay work?

Autoplay is included when enabled, but most browsers only allow it when the video is muted, so the code mutes it automatically for reliability.

Does it work with WordPress, Webflow and other builders?

Yes. It is a standard YouTube iframe, so it works in any website builder or CMS that lets you add embed or HTML code.

Is it free?

Yes, completely free with no sign up and nothing to install.