Thumbnail & Video Tools

Embed Code Generator

Create a ready-to-paste YouTube embed code with width, height and autoplay options. Paste a video URL, pick a size and options, and copy the ready-made embed code.

How to use

  1. Paste a YouTube video URL in the box above.
  2. Set the width, height and options you want.
  3. Click Generate Embed Code, then copy the code into your website's HTML.

About this tool

The Embed Code Generator does one job well: Create a ready-to-paste YouTube embed code with width, height and autoplay options.. Just type in your YouTube video URL, width (px), height (px), start at (seconds, optional), autoplay (muted) and show related videos at the end, press “Generate Embed Code”, and read the result below the form. Free, with no account needed — open the page and use it as often as you like.

Most viewers judge a video by its thumbnail before they read the title, so this is a step worth doing properly. The Embed Code Generator fits into the last few minutes before you publish, when you want to be sure the thumbnail is right. It is quick enough to use on every video, which is the point — small checks done every time beat a big fix after a video has already gone live.

Here is the whole process, start to finish. First, paste a YouTube video URL in the box above. Next, set the width, height and options you want. Then, click Generate Embed Code, then copy the code into your website's HTML.

The output appears in the result box below the form, ready to copy. Use it as it is for a quick job, or as a base to build on when the wording matters — either way, it saves the blank-page stage. One thing worth knowing: copy the generated <iframe> code and paste it into the HTML of your website or blog post where you want the video to appear.

Frequently asked questions

Is the Embed Code Generator free?

Yes, it is completely free and needs no sign-up. Paste a video URL, choose your options and copy the embed code.

How do I use the embed code?

Copy the generated <iframe> code and paste it into the HTML of your website or blog post where you want the video to appear.

Should I enable autoplay?

Usually not. Autoplay videos start muted in most browsers, and many visitors find them annoying. Use it only when the video is the main focus of the page.

Related tools