YouTube Embed Code Generator
Paste a YouTube link and get clean, responsive embed code with the options you want — preview it live.
The embed code is generated in your browser — nothing is uploaded.
How to use the YouTube Embed Code Generator
Paste a video link
Video, Shorts or playlist.
Choose options
Start time, autoplay, loop, privacy.
Copy the code
Responsive HTML ready to paste.
Why use our YouTube Embed Code Generator?
Responsive
Scales perfectly on every screen.
Start & end
Begin at any second.
Autoplay & loop
With mute for autoplay to work.
Privacy mode
youtube-nocookie.com for GDPR.
Lite embed
Fast thumbnail that loads the player on click.
Live preview
See it before you copy.
Frequently asked questions
Everything you need to know about the YouTube Embed Code Generator.
Back to the toolWhy doesn’t autoplay work?
Browsers only allow autoplay when the video is muted. Enable mute together with autoplay.
What is privacy-enhanced mode?
It uses youtube-nocookie.com, which does not set tracking cookies until the viewer plays the video.
How do I make the embed responsive?
Use the responsive option — the code keeps a 16:9 ratio at any width.
What is the lite embed?
A lightweight thumbnail that only loads the YouTube player when clicked, making pages much faster.
You may also like
Have a project in mind? Let’s build it together.
Get a free consultation and a fixed-price quote within 24 hours.