Tools
All toolsYouTube Embed Code Generator
YouTube tool

Put any video on your site, set up your way

The embed code YouTube gives you is one size and one setting. Here you choose where the video starts, how big it is and whether it plays by itself, and the code is written for you.

Make embed code Free. No sign in. Nothing you type leaves your browser.

Embed code generator

Paste a normal video link, a short link or a Shorts link.

What it does

More control than the share button gives you

Start at the right second

Skip your intro for website visitors. Type the time and the video opens at that point.

A size that fits phones

The page width option makes the player shrink and grow with the screen, so it never spills over the edge on a phone.

Privacy mode

One tick switches to the version of the player that does not set tracking cookies until the visitor presses play.

Benefits

Why embed with care

A video on your site keeps people there longer, but only when it loads cleanly and starts in a sensible place.

1

Visitors stay on your page

They watch without leaving for YouTube, where a hundred other videos compete for their attention.

2

Your views still count

A play inside an embedded player adds to the video on YouTube just like a play on the site itself.

3

No broken layouts

The responsive code keeps the correct 16 by 9 shape at every width, so there are no black bars and no overflow.

4

Reviews get to the point

For a product review, start the embed at the verdict. Readers who want the full video can drag back.

Step by step

How to use it

1

Paste the video link

Any YouTube link works, including short links and Shorts.

2

Pick your options

Set the start time and size, then tick the boxes you want.

3

Check the preview

The player under the code shows the result.

4

Copy and paste

Put the code into your page where the video should appear. In WordPress, use a Custom HTML block.

A few tips

Embedding without annoying people

A few choices decide whether an embedded video helps the page or gets in the way.

Good to know

How the options work

Autoplay needs mute

Browsers block videos that start with sound, so the tool adds mute whenever you choose autoplay.

Loop repeats one video

The player restarts the same video when it ends.

Some videos cannot be embedded

If the owner switched embedding off, the player shows an error on any site.

Help

Questions people ask

How do I embed a YouTube video in WordPress?

Add a Custom HTML block where you want the video, paste the code and save. Pasting the plain link also works, but then you cannot set a start time or size.

Do embedded views count on YouTube?

Yes, when a person presses play. Views from autoplay may not be counted.

Can I embed a YouTube Short?

Yes. Paste the Shorts link. It will play in the standard wide player.

Why does my embed say video unavailable?

The owner has turned embedding off for that video, or the video is private.

Adding a video to a page?

Paste the link and copy clean code in seconds.