YouTube Embed Code Generator

Paste a YouTube video link and get the code that shows that video on your own web page.

1 Fill in the boxes

2 Your answer

Your answer shows here as you type.

How to use the YouTube Embed Code Generator

  1. Paste the link of the YouTube video.
  2. Set the player width and height, or keep the sizes shown.
  3. Copy the code from the box and paste it into your web page.

Frequently asked questions

Where do I find the video link?

Open the video on YouTube and copy the address from the top of your browser. Short links such as youtu.be work too.

Does the video have to be public?

Yes, the video must be public or unlisted. Private videos do not play in an embed.

Is the video uploaded to this site?

No. The tool only builds the code. The video still plays from YouTube.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.