Skip to content
YouTube link → Embed codeMedia tools

YouTube Embed Code Generator

Create YouTube embed code with start time, autoplay, loop and controls options, privacy-enhanced mode and a responsive size that fits any screen.

About this tool

About YouTube Embed Code Generator

YouTube Embed Code Generator turns any YouTube link into an iframe you can paste into a website, blog or online course. Paste a watch, youtu.be, Shorts, live, mobile or music link, or just the 11-character video ID, and press Extract. A live preview plays the video with your settings. Set a start time in seconds to jump straight to the part that matters. Autoplay starts the video when the page loads; because browsers only allow autoplay for silent videos, the generator also adds mute=1, otherwise autoplay would quietly fail. Loop repeats the video; for a single video YouTube only loops when the video is also given as its own playlist, which the generator adds for you. You can hide the player controls, and related videos at the end are limited to the same channel. Privacy-enhanced mode, on by default, uses youtube-nocookie.com, so YouTube does not set tracking cookies on your visitors until they press play, which helps with privacy rules. Responsive mode, also on by default, makes the player fill the width of its container and keep its shape on every screen, instead of a fixed 560 × 315 box that overflows phones; turn it off for a fixed width and height. The code includes lazy loading, so the player does not slow down your page until it is scrolled into view, and a referrer policy that YouTube requires for some embeds. Copy the code and paste it into the HTML of your page.

YouTube Embed Code Generator tool

Where to embed videos

Your video, on your page

Blog posts

Add a tutorial video next to written steps.

ExampleEmbed a how-to video starting at 1:30 where the steps begin.

Online courses

Put lessons on your own course pages.

ExampleEmbed lesson videos without controls distractions.

Product pages

Show a product demo where people decide.

ExampleAdd a muted, looping product video to a landing page.

Business websites

Embed testimonials and explainer videos.

ExampleUse privacy-enhanced mode on a site that serves visitors in Europe.

Embedding tips

Fast pages, happy visitors

Keep it lazy

Lazy loading stops a video from slowing down the rest of the page.

Use privacy-enhanced mode

No YouTube cookies until a visitor presses play.

Use autoplay sparingly

Autoplay is muted by browsers and can annoy readers.

Want just the thumbnail?

Download a video’s thumbnail in every size.

YouTube Thumbnail Downloader
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed YouTube Embed Code Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 24 November 2026

Answers and guidanceFrequently Asked Questions
Why doesn’t autoplay work with sound?
Browsers block autoplay with sound. The video must start muted, so the generator adds mute=1 when autoplay is on.
Why doesn’t my YouTube video loop?
For a single video, YouTube only loops when the video is also set as the playlist. The generator adds playlist with the same video ID automatically.
What is privacy-enhanced mode?
Embedding from youtube-nocookie.com, which does not set YouTube tracking cookies on your visitors until they play the video.
How do I make the embed responsive?
Keep Responsive on. The iframe uses width 100% and an aspect ratio, so it scales to its container on every screen.
Can I start the video at a certain time?
Yes. Enter the start time in seconds, for example 90 for 1:30.
Can I hide the YouTube logo?
No. YouTube removed the option (modestbranding) in 2023, so the logo always appears.
More tools for your workflowRelated Tools

YouTube Thumbnail Downloader

Download any YouTube video’s thumbnail in every size it has, up to full HD. Only the sizes that really exist are shown, with the video’s title.

YouTube Video Info & Tag Extractor

See any YouTube video’s tags, views, likes, comments, duration, category and upload date. Copy all tags, pull chapters, links and hashtags from the description, and read top comments.

YouTube Timestamp & Chapter Generator

Create YouTube chapter timestamps for your description, or import a video’s existing chapters, and check them against YouTube’s chapter rules before you paste.

YouTube Title Generator

Get YouTube title ideas for your topic in four proven styles, then check any title’s length so it is not cut off in search.

1 / 3
Browse all media tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.