Paste a YouTube URL, pick your options, and copy a ready-to-paste iframe embed code with a live preview.
Paste a YouTube URL above to generate an embed code.
The Embed Code Generator creates a ready-to-paste YouTube iframe embed from any video URL, with options for autoplay, start time, visible controls, and looping. It's built for website owners and bloggers adding YouTube videos to a page, developers who want a quick, correctly-formatted embed without memorizing iframe parameters, and creators embedding their own videos into a portfolio or landing page. After pasting a URL and choosing options, the tool shows a live preview alongside the generated HTML code, so you can see exactly how the embed will look before copying it. Autoplay is automatically paired with muting, since browsers block unmuted autoplay — the tool handles that requirement for you rather than producing an embed that silently fails to autoplay.
Most browsers block autoplay with sound — the generated code sets the video muted when autoplay is on, which is the only way browsers reliably allow it.
You can set a start time so the embed begins partway through the video. There's currently no end-time option — playback continues normally from the start point to the end of the video.
Yes, via YouTube's own embed parameter — keep in mind YouTube's branding and title may still briefly appear regardless of this setting.
It replays the same video on a loop once it ends, using YouTube's own loop and playlist embed parameters — it's meant for a single video repeating, not cycling through multiple videos.
The generated code includes standard width and height attributes you can edit directly in the copied HTML to fit your page.
Paste a video URL and this youtube iframe generator will generate youtube embed code you can use to embed youtube video html directly on any page.
Yes — set a start time in seconds and the tool produces a youtube embed with start time built directly into the generated iframe URL.