Free tools, no sign-up — everything runs in your browser.
ToolHub 1000Free online tools

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

  1. Paste a YouTube video link or video ID.
  2. Set the width and height you want.
  3. Click Generate Embed Code.
  4. 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.

Related tools

All tools · Read the guide: YouTube Embed Code Generator