Responsive YouTube Embed Code Generator
Create clean, responsive YouTube iframe embed codes with privacy-enhanced mode (youtube-nocookie.com), custom start times, and full player controls.
Player Options & Embed Settings
Generated HTML Embed Code
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%;">
<iframe
src="https://www.youtube-nocookie.com/embed/dQw4w9WgXcQ"
title="YouTube video player"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen>
</iframe>
</div>▶️Live Responsive Preview
Why Use CaptionCatch Embed Generator?
100% Mobile Responsive
Includes modern CSS container styling to guarantee proper 16:9 ratio with zero black bars.
GDPR / Privacy Enhanced
Uses youtube-nocookie.com by default to prevent non-consensual third-party tracking cookies.
Custom Time Windows
Specify exact start and end seconds so visitors watch only the relevant segment.
How to Generate an Embed Code in 3 Steps
Paste Video URL
Insert the link of any public or unlisted YouTube video.
Configure Preferences
Toggle privacy-enhanced mode, responsive layout, autoplay, or custom start timestamps.
Copy & Paste HTML
Click 'Copy Embed Code' and paste it into WordPress, Webflow, Notion, or raw HTML.
Frequently Asked Questions
What is privacy-enhanced mode on YouTube?▼
Privacy-enhanced mode uses the domain 'www.youtube-nocookie.com'. YouTube doesn't track or place personalization cookies on the viewer's device until they actually press the play button, making it compliant with GDPR regulations.
Why won't autoplay work on my website?▼
Modern web browsers (Chrome, Safari, Edge) block autoplaying videos with sound. To enable autoplay, you must also enable the 'Mute Audio' option.
Can I embed unlisted YouTube videos?▼
Yes! Any video set to 'Public' or 'Unlisted' can be embedded on your website. Private videos cannot be embedded.