Advertisement

YouTube Embed Code Generator

Paste any YouTube link to get responsive, copy-ready embed code for videos, Shorts and playlists, with a live preview.

Works with watch, youtu.be, Shorts, live and playlist links. A ?t= time in the link is picked up automatically.

Size

Options

Your embed code

Embed URL
Share link

Live preview

Paste a YouTube link above to see the preview.

Advertisement

Latest YouTube tips & news

See all articles →

Free YouTube tools

Key features of this YouTube embed generator

YouTubeEmbedTool.com creates customised embed codes for any YouTube video, Short or playlist, so your videos look and behave exactly the way you want on your website, blog or online course.

Advertisement

Why use a YouTube embed tool?

YouTube's own Share → Embed button gives a fixed-size iframe with almost no options. Adding parameters like start, end, rel=0, loop and playlist by hand is slow and easy to get wrong. This tool builds correct, standards-friendly code in one click, including the allow and referrerpolicy attributes that modern browsers and YouTube expect.

Who is it for?

YouTube embedding tips

More guides: YouTube embedding guides · YouTube tips and tricks

Frequently asked questions

Is the YouTube Embed Tool completely free to use?

Yes, it is 100% free with no sign-up. Everything runs in your browser, so the links you paste are never stored on our server.

Why is autoplay sometimes blocked by web browsers?

Chrome, Safari, Firefox and Edge block videos that start on their own with sound. Autoplay works when the video starts muted, so this tool switches on Mute automatically when you choose Autoplay.

What does "Hide related videos" actually do?

It adds rel=0 to the embed. Since 2018 YouTube no longer hides related videos completely; instead it shows related videos from the same channel when playback ends, rather than from other channels.

How does the loop option work?

YouTube only loops a single video when two parameters are set: loop=1 and playlist with the same video ID. The tool adds both for you.

Can I embed YouTube Shorts and playlists?

Yes. Paste a Shorts link and the tool switches to a vertical 9:16 player. Paste a playlist link and it creates a playlist embed that plays every video in order.

What is privacy-enhanced mode?

It loads the player from youtube-nocookie.com, so YouTube does not set cookies for your visitors until they press play. It helps with GDPR and cookie-consent rules.

What is the fast "Lite" embed?

Lite mode shows the video thumbnail with a play button and only loads the full YouTube player when someone clicks. Pages load much faster, which helps Core Web Vitals and SEO.

Will the embed code work in WordPress, Wix, Shopify or Blogger?

Yes. Paste the code into any HTML, Custom HTML or Embed block. Use the Responsive size so the video fits phones as well as desktops.

Advertisement