YouTube Embed Code Generator

Paste URL or ID → get responsive wrapper + plain iframe (preview right, code bottom)
Player options
Tip: Autoplay usually requires mute to work reliably across browsers.
Preview (responsive wrapper)
Preview will appear here
Generated code — Responsive wrapper
<div...>…</div>
Generated code — Plain iframe
<iframe src="…" ></iframe>
Note: Use the responsive wrapper for fluid embeds; use the plain iframe if you want a fixed iframe you style manually.