YouTube Embed Code Generator
Turn a YouTube video ID or URL into an iframe embed snippet at your chosen size.
Quick answer: enter your details below and click Generate Embed Code — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
Y
Converters & Utilities
Enter your details below.
How to use
- Paste a YouTube video link or video ID.
- Set the width and height you want.
- Click Generate Embed Code.
- Paste the iframe snippet into your page.
About this tool
Embedding a video is mostly a matter of getting the iframe right, and this generator writes it for you. Paste a video ID or a watch link, choose a width and height, and it produces the standard YouTube embed snippet with fullscreen allowed. The result pastes directly into a page, a post editor that accepts HTML, or a template.
Frequently asked questions
What size should I use?
560 by 315 is the classic 16:9 embed size. Scale both numbers together to keep the same shape at another size.
Does the snippet autoplay?
No. It loads the standard player, and viewers press play as usual.