TubeWizzTubeWizzBeta

Create

SEO Wizard
AI title, description, chapters & thumbnails
Caption Maker
Auto-generate captions and render video
Shorts Maker
Create viral 9:16 Shorts clips from videos
Thumbnail Maker
Click-boosting AI thumbnails

Optimize

A/B Testing
Rotate thumbnail & title variants, win on views per day
Bio Optimizer
AI-rewritten keyword-rich channel bio
Playlist Optimizer
AI title, description & video order for playlists
Thumbnail Library
Save & reuse competitor thumbnail styles

Research

Trend Finder
Discover viral trends in your niche
Competitor Analysis
Compare your channel against up to 4 rivals
Competitor Tracking
Automated weekly rival monitoring & reports
Collab Potential
Find ideal YouTube collaboration partners

Publish

Announcement Maker
Social media announcement visuals & text
Giveaway Picker
Run fair and transparent giveaways
Subscribe Link Generator
Free 1-click subscribe link from any channel
Influencer Directory
Find creators or get listed for brand deals
View all features Get Started Free →
PricingSign InGet Started »
Start

Create

SEO Wizard
Caption Maker
Shorts Maker
Thumbnail Maker

Optimize

A/B Testing
Bio Optimizer
Playlist Optimizer
Thumbnail Library

Research

Trend Finder
Competitor Analysis
Competitor Tracking
Collab Potential

Publish

Announcement Maker
Giveaway Picker
Subscribe Link Generator
Influencer Directory
View all features →PricingSign InGet Started Free →
Home/Embed Code Generator

YouTube Embed Code
Generator

Paste any YouTube video, Shorts or playlist URL. Toggle autoplay, mute, loop, captions, privacy mode and 15 more player parameters — see a live preview and copy a clean iframe snippet. Free, no sign-up.

Layout
Playback
Player UI
Captions & Language
Accessibility & Performance
Live preview
Paste a URL to preview
Embed HTML
<!-- Paste a URL to generate an embed snippet -->

100% free · no sign-up · client-side URL construction · zero YouTube quota

Free
No Sign-Up
18+
Player Parameters
Live
iframe Preview
Responsive
Modern Wrapper
How It Works

Generate a YouTube Embed Code in 3 Steps

01

Paste a URL

Drop in any YouTube watch, Shorts, playlist or youtu.be link. We auto-detect what kind of embed you need.

02

Pick Parameters

Toggle autoplay, mute, loop, captions and 15+ other player options. The live iframe preview updates as you go.

03

Copy the Snippet

Copy the clean HTML iframe with one click and paste it into your blog, docs, landing page or CMS.

Capabilities

Everything for a Clean YouTube Embed

Full Player Control

Autoplay, loop, controls, captions, start/end, keyboard, related videos, plus the widely used (but undocumented) mute option, all in one UI

Live iframe Preview

The preview panel updates instantly as you toggle options — see exactly what visitors will see

Video, Shorts, Playlist

Auto-detects the target from the URL. Shorts get a 9:16 wrapper; playlists get listType=playlist automatically

Privacy Mode

One toggle switches to youtube-nocookie.com, so YouTube won't use the view to personalize the viewer's browsing

Responsive Wrapper

Modern aspect-ratio HTML wrapper — no deprecated padding-bottom hack, no fixed pixel sizes

Zero API Quota

All embed-URL construction runs client-side. One YouTube meta call for the preview card, that's it

On this pageiframe parametersResponsive embedsShorts, playlists, liveyoutube-nocookieAutoplay
On this page
iframe parametersResponsive embedsShorts, playlists, liveyoutube-nocookieAutoplay
Updated September 2026· 5 min read

Every YouTube iframe Parameter Explained#

A YouTube embed code generator, or any youtube iframe generator, is mostly a friendly way to write query parameters on the end of an embed URL. These are the youtube embed parameters Google documents for the IFrame player today, plus the ones it has retired. start and end take whole seconds counted from the beginning of the video.

ParameterValuesWhat it does
autoplay0 or 1Starts playback when the player loads
cc_load_policy1Shows captions by default
cc_lang_prefLanguage codeDefault caption language
colorred or whiteColor of the progress bar
controls0 or 1 (default)0 hides the player controls
disablekb1Turns off keyboard controls
enablejsapi1Allows control through the IFrame API
endSecondsTime to stop playing
fs0Hides the fullscreen button
hlLanguage codeLanguage of the player interface
iv_load_policy1 or 33 hides video annotations
list, listTypeID, playlist or user_uploadsLoads a list instead of one video
loop1Repeats playback; one video also needs playlist set to its own ID
originYour domainUsed together with enablejsapi
playlistVideo IDs, comma separatedVideos to play after the first
playsinline0 or 1On iOS, 1 plays in the page, 0 plays fullscreen
rel0 or 10 limits related videos to the same channel
startSecondsTime to start playing
widget_referrerPage URLTells YouTube Analytics where the player is
modestbrandingDeprecatedNo effect since August 15, 2023
showinfoRemovedDropped from the docs in 2020
iSource: Google for Developers: YouTube embedded player parameters · data as of Sep 2026

Two details trip people up. Since September 25, 2018, rel=0 no longer removes related videos; it only limits them to your channel. And mute=1, which the tool above offers as "Muted at start", is not on Google's parameter list. It is widely used and the generator includes it, but the only documented way to mute is the IFrame API's mute method. The "Modest branding" toggle is kept for old embeds and does nothing today.

How to Make a YouTube Embed Responsive#

The default embed snippet has a fixed width and height, which overflows on a phone or looks tiny in a wide article. A responsive youtube embed lets the player fill its container and keeps the shape. Google does not publish CSS for this. Its documentation only gives size limits for the player itself:

200×200
minimum player size
Smaller viewports are not supported
480×270
recommended for 16:9
The smallest size Google suggests for widescreen
embed.html
<div style="position:relative; width:100%; aspect-ratio: 16 / 9;">
  <iframe
    style="position:absolute; inset:0; width:100%; height:100%;"
    src="https://www.youtube-nocookie.com/embed/VIDEO_ID?playsinline=1"
    title="Video title"
    frameborder="0"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
    referrerpolicy="strict-origin-when-cross-origin"
    allowfullscreen
    loading="lazy"
  ></iframe>
</div>

That is what the Responsive layout above produces. It uses the CSS aspect-ratio property, a general web technique rather than a YouTube rule, which every current browser supports and which replaces the old padding-bottom trick. Keep the referrerpolicy line: YouTube Help says embeds need to send a referrer, or playback can fail. Pick Fixed 16:9 only for an old template that cannot handle a wrapper.

Embed a YouTube Short, Playlist or Live Stream#

Playlists are the documented case. Google's parameter page shows a playlist embed using listType=playlist with the playlist ID in list, and you can also add list= to a normal video embed so the player carries on through the list. Paste a playlist link above and the generator switches to a playlist embed for you.

playlist-embed.txt
https://www.youtube.com/embed?listType=playlist&list=PLAYLIST_ID

Google has no official page on how to embed a YouTube Short. In practice a Short has an ordinary video ID, so the generator takes the ID from a /shorts/ link, builds a standard /embed/VIDEO_ID URL and wraps it in a vertical 9:16 box instead of a widescreen one. Treat it as something that works today, not as a guaranteed feature. Live streams are less certain still. The old embed by channel URL is not in Google's current documentation, so we do not promise it. If you have the watch link of a specific stream, paste it like any other video. To add a way to subscribe under the player, the subscribe link generator builds one.

Privacy-Enhanced Mode: youtube-nocookie Embeds#

A youtube nocookie embed swaps the domain in the embed URL from youtube.com to youtube-nocookie.com. YouTube calls this privacy-enhanced mode, and it is switched on by default in the generator above. According to YouTube Help, the view of a video played this way will not be used to personalize the viewer's YouTube browsing experience.

!
Warning
Privacy-enhanced mode does not stop your own site, or other third parties on the page, from tracking visitors under their own policies. It is not a consent banner and does not make a page compliant by itself.

So use it as one sensible default, not as your whole privacy plan, and switch it off only if you have a specific reason to. Keep your cookie notice accurate about the fact that a YouTube player is on the page. If you embed a video to quote it in an article, the description extractor will pull its full description so you can cite links or credits correctly. Source: YouTube Help, embed videos and playlists.

Why Autoplay Does Not Always Work#

Adding autoplay=1 asks the player to start, but the browser has the final say. Chrome's autoplay policy always allows muted autoplay. Autoplay with sound is only allowed after the visitor has interacted with your site, when their engagement with media on it is high enough on desktop, or when the site is installed as an app. The IFrame API even has an event for the case where autoplay is blocked.

FeatureMuted autoplayAutoplay with sound
Allowed by Chrome without a click✓Yes✗No
Generator shows a warning✗No✓Yes
Counts as a view on YouTube✗No✗No

That is why the generator warns you when Autoplay is on and Muted is off, and why its snippet always includes autoplay in the iframe's allow list. Note the last row: YouTube Help says autoplayed embeds do not increase the video's view count, and Google's parameter page adds that autoplay starts data collection when the page loads. If views are the goal, let visitors press play, then track how the video does with YouTube stats.

Build your embed code
Paste a video, Shorts or playlist link, set the options and copy the snippet.
↑ Back to the embed code generator
FAQ

YouTube Embed Code Generator FAQ

The short version: paste a YouTube URL above, pick the options you want (autoplay, mute, controls, start time, language, etc.) and copy the generated iframe HTML into your page. The long version: YouTube exposes an iframe embed at youtube.com/embed/VIDEO_ID with 20+ query parameters — this tool wraps all of them into a UI so you don't need to memorize the parameter names.

Fixed gives you a classic <iframe width="560" height="315"> — the video is always the same pixel size. Responsive wraps the iframe in a <div style="aspect-ratio: 16 / 9"> container and lets it fill 100% of its parent width while keeping the 16:9 ratio. Responsive is almost always what you want on modern sites — Fixed is for old CMS templates that don't handle flex/grid.

Every major browser (Chrome, Safari, Firefox, Edge) blocks un-muted autoplay by default. If you enable Autoplay, also enable Muted — the tool shows a hint when you hit this. Users can then click the sound icon to unmute. Note that mute=1 is widely used and works in practice, but it is not in YouTube's documented list of player parameters. iOS Safari is even stricter and often requires user interaction regardless.

YouTube offers two embed hosts: youtube.com/embed/... and youtube-nocookie.com/embed/... (privacy-enhanced mode). YouTube says that with privacy-enhanced mode, a view of the embedded video will not be used to personalize the viewer's YouTube browsing experience. It does not stop your own site or other third parties from tracking visitors, so it is not a substitute for your own privacy and consent setup. Privacy mode is the default in this generator.

Toggle "Loop" and this tool automatically adds the required playlist=<VIDEO_ID> parameter for you — that's a quirk of YouTube's iframe player, single-video loop only works when the player thinks it's playing a playlist of one. You don't need to add anything manually.

Yes. Paste a Shorts URL and the tool auto-switches to the 9:16 vertical layout. The iframe still points at youtube.com/embed/VIDEO_ID (Shorts and regular videos share the same embed endpoint), just wrapped in a 9:16 aspect-ratio container instead of 16:9.

Yes. Paste any playlist URL (or a video URL with ?list=PLxxx) and the tool switches to the videoseries endpoint with listType=playlist&list=<PLAYLIST_ID>. The iframe plays through the whole playlist in order.

It used to hide the YouTube logo from the player controls. YouTube deprecated it in 2023 — the parameter is still accepted but no longer changes the branding much. The toggle is included for completeness and for older embeds where you need it, but don't expect dramatic UI differences.

Yes, completely free with no sign-up. All embed-URL construction happens in your browser — nothing about your usage is stored server-side. The only network call is a quick YouTube Data API lookup to show a preview card, and even that is optional (the tool works without it).

Other Tools

More Free YouTube Tools

Subscribe Link Generator

One-click subscribe links

Channel ID Finder

UC… ID from any URL

Tag Extractor

See any video's public tags

Description Extractor

Copy any video's title and description

YouTube Stats

Channel rankings and statistics

Copy a clean YouTube embed in seconds

Free iframe generator with 18+ parameters, live preview, and modern responsive wrapper.

Generate Embed Code
TubeWizzTubeWizz

Copyright © 2026 TubeWizz.
All Rights Reserved.
TubeWizz is a Facty OÜ project.

AI-powered YouTube optimization tools for content creators.

All Systems Operational

Need Help? Contact us

Tools
  • SEO Wizard
  • Caption Maker
  • Shorts Maker
  • Thumbnail Maker
  • Announcement Maker
  • Giveaway Picker
  • Bio Optimizer
  • Playlist Optimizer
  • SRT Generator
  • Thumbnail Library
  • Thumb Translate
  • Subscribe Link Generator
  • Embed Code Generator
  • Tags Generator
  • Chapter Generator
  • Timestamp Generator
  • AI Description Generator
  • AI Title Generator
  • AI Keywords Generator
  • A/B Testing
  • Influencer Directory
  • Chrome Extension
Research
  • YouTube Stats
  • Trend Finder
  • Comment Analysis
  • Competitor Analysis
  • Competitor Tracking
  • Collab Potential
  • Channel ID Finder
  • Tag Extractor
  • Description Extractor
  • Profile Picture Downloader
  • Is YouTube Down
  • Subscriber Count
  • Engagement Rate Calculator
  • Money Calculator
  • Earnings Estimator
  • Monetization Checker
  • Region Restriction Checker
  • Pricing
Compare
  • vs VidIQ
  • vs TubeBuddy
  • vs 1of10
  • vs TubeLab
  • vs Thumby
  • vs Pikzels
  • vs TubeRanker
  • vs TubeMagic
  • vs TubePilot
  • vs 2short.ai
  • vs Shortify
  • vs Virlo
  • vs HypedX
Company
  • Home
  • About
  • Contact
  • Help
  • Dashboard
  • Sign In
Legal
  • Terms of Service
  • Privacy Policy
  • Cookie Policy

Built with AI for YouTube creators worldwide.

Follow us
TermsPrivacyCookiesSitemap