Youtube embed code generator
Paste any youtube URL — get a ready-to-paste iframe embed or custom preview card.
How to embed a youtube video
Paste a YouTube link
Copy any youtube.com or youtu.be URL — regular videos, shorts, playlists, or live streams.
Get the embed code
The tool detects the video ID and generates the real YouTube player iframe HTML.
Copy & paste
Click Copy code, then paste the HTML into your blog, docs, CMS, or any HTML editor.
Why use our youtube embed code generator
No YouTube embed gymnastics
No need to manually extract the video ID or build the embed URL. Paste any YouTube link format and get working HTML.
Works with shorts, playlists & live
Regular videos, YouTube Shorts, playlist URLs, and live streams — the tool handles all YouTube link formats.
Customizable preview card
Switch to Card mode to get a styled preview with thumbnail, title, and channel. Customize colors, fonts, and layout — or use the full embed tool for advanced options.
Free, no signup
Generate up to 50 YouTube embeds per day for free. No login, no API key, no watermarks.
YouTube Embed with one click.
Powered by the Microlink Embed API — the same infrastructure handling embeds at scale.
Native YouTube player
Get YouTube's real interactive embed player — not a screenshot or preview image. Play, pause, fullscreen, and captions all work.
Responsive by default
The generated iframe uses a 16:9 aspect ratio wrapper that adapts to any container width. Paste it into any layout.
Card fallback for unlisted videos
When a video restricts embedding, the tool falls back to a rich preview card with title, thumbnail, and channel info.
Native YouTube player
Get YouTube's real interactive embed player — not a screenshot or preview image. Play, pause, fullscreen, and captions all work.Responsive by default
The generated iframe uses a 16:9 aspect ratio wrapper that adapts to any container width. Paste it into any layout.Card fallback for unlisted videos
When a video restricts embedding, the tool falls back to a rich preview card with title, thumbnail, and channel info.
FAQ
How do I embed a YouTube video on my website?
Paste any YouTube URL into the tool above and click Generate. You'll get a ready-to-paste iframe HTML snippet. Copy it and add it to your HTML, blog, CMS, or MDX file.
Does this work with YouTube Shorts?
Yes. Paste any YouTube Shorts URL and the tool will extract the video ID and generate the correct embed code. Shorts are embedded as standard YouTube players.
Can I embed a YouTube playlist?
Yes. Paste a playlist URL and the tool generates an embed player that loads the full playlist. Viewers can navigate between videos directly in the player.
Is the YouTube embed generator free?
Yes — 50 requests per day, no login, no credit card. YouTube embeds are resolved instantly from cache after the first request.
What if the video blocks embedding?
If the video owner has disabled embedding, the tool falls back to a rich preview card showing the thumbnail, title, and channel. You can customize the card's style before copying.