Generate iframe embed code for any YouTube video. Supports custom sizes, no-cookie mode, autoplay and loop options.
Supports any YouTube video URL or raw video ID
This generator outputs copy-paste <iframe> HTML with size presets, youtube-nocookie.com for stricter privacy defaults, and toggles for controls, autoplay, and loop. Responsive presets help the player fit hero sections, sidebars, and blog widths without hand-editing CSS.
Use it when the Share dialog is too bare — you keep visitors on your site while matching layout and compliance needs. Pair no-cookie mode with muted autoplay when your policy team wants fewer trackers before interaction.
From GDPR-minded hosts to autoplay-friendly defaults — four levers teams tweak most often before shipping an embed.
The tool outputs a standards-friendly iframe snippet you can paste into WordPress, Webflow, Markdown HTML blocks, or any stack that renders raw embed markup.
Pick from common width-by-height presets so the player fits hero sections, article bodies, and sidebars without you hand-tuning pixel math in every deploy.
Switch the host to youtube-nocookie.com when your privacy policy or analytics guidelines call for stricter third-party cookie defaults on marketing or help sites.
Autoplay, loop, and related flags are encoded in the query string so you can match product expectations for trailers, onboarding clips, or kiosk-style loops.
Enter any YouTube video URL or video ID.
Choose size, privacy mode, and player controls.
Paste the generated iframe into your HTML or CMS.
Embed videos in WordPress, Webflow, Ghost, or any HTML-based platform.
Use no-cookie embed URLs to avoid tracking before user consent.
Set exact dimensions to match your layout without manual editing.
Show or hide controls, enable autoplay, or set loop for background video.
Drop a minimal iframe next to written steps so readers can replay the clip without leaving your knowledge base.
Match hero video blocks to brand grids by copying a preset size instead of guessing responsive breakpoints by hand.