Generate responsive YouTube embed code with autoplay, mute, loop, start time and player controls. Preview it and copy the iframe. Free generator.
About this tool
Build YouTube iframe markup with sizing and playback options.
How to use YouTube Embed Code Generator
- Enter a YouTube URL or ID and a start time if needed.
- Choose Width and Responsive, Autoplay, Loop, Controls and Privacy-enhanced mode.
- Click Load preview to test, then copy the generated code into your page.
Worked example
Embed your own tutorial at a chosen starting point with responsive 16:9 sizing.
Will autoplay always work?
No. Browser autoplay rules and user settings can prevent it even with the muted option.
Does the preview contact YouTube?
Yes, when loaded. Privacy-enhanced mode changes the embed host but is not a promise of no external requests.
Explore Social Media Tools · More practical guides