Paste any YouTube video URL and instantly get a ready-to-use iframe embed code. Customize size, autoplay, controls, loop, and privacy settings in one click.
Embedding a YouTube video on a webpage should take seconds, but tracking down the right iframe syntax and remembering all the available query parameters is slower than it looks. This generator takes any YouTube URL and produces a complete, copy-paste-ready iframe tag. It handles all common URL formats including youtube.com/watch, the short youtu.be links, and YouTube Shorts, so you never have to manually extract a video ID or look up the embed endpoint.
The options panel covers everything YouTube's embed API supports: video dimensions (four standard presets or fully custom), autoplay, show or hide the player controls, loop playback, start the video muted, allow fullscreen, and enable privacy-enhanced mode. When privacy mode is on, the embed uses youtube-nocookie.com instead of youtube.com, which means YouTube will not set cookies on your visitors until they actually play the video. This is useful for GDPR compliance and reducing third-party cookie warnings.
After clicking Generate, a live preview lets you see the embedded player exactly as it will appear on your page before you copy the code. The start time field lets you specify a point in the video to begin from, in seconds, which is useful when you want to link a viewer to a specific segment rather than the beginning of a long video.