FormatFlow

No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

YouTube Tools · Updated October 19, 2026

YouTube Embed Generator — Responsive Iframe Code

You can generate a responsive YouTube embed iframe with start time, autoplay, mute, loop, controls and privacy-enhanced options, preview it live and copy the ready-to-paste HTML.

Runs in your browserFree · No sign-up · No watermark
Embed codeRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

At a glance

Works with
Embed code
Processing
In your browser
Price
Free, no account
Updated
October 19, 2026
All YouTube Tools

About YouTube Embed Generator

Pasting a YouTube link into a CMS usually gives a fixed-size iframe that breaks a responsive layout. Building the embed by hand means remembering a dozen query parameters, the allow list and the referrer policy — and the loop option has a quirk that quietly fails unless the video ID is repeated in the playlist parameter.

This generator turns a link and a few switches into a clean, copy-ready iframe: a fluid 16:9 wrapper by default, or a fixed 560 × 315 frame for systems that expect one. It previews the exact player first, so you can check autoplay, start time and privacy-enhanced mode before pasting the code into a page.

What this tool does

The details that matter when you use YouTube Embed Generator for real work.
  • Live iframe preview

    The generated player appears on the page and updates after you change an option, so autoplay, start time and loop can be checked before publishing.

  • Responsive 16:9 by default

    The copied code wraps the iframe in a fluid 16:9 container that keeps its shape on phones, tablets and wide screens; a fixed-size option is one switch away.

  • Privacy-enhanced mode

    Switch the embed domain to youtube-nocookie.com, which avoids setting YouTube cookies until the viewer starts playback.

  • Useful query parameters

    Set a start time in seconds, mm:ss or hh:mm:ss; toggle autoplay, mute, loop, hidden controls and related-video suggestions with clearly labelled switches.

  • Loop that actually works

    When loop is on, the tool adds the playlist parameter YouTube needs for a single video to repeat, instead of leaving it to fail silently.

  • Copy the URL or the HTML

    Take just the iframe URL for a CMS field, or copy the complete HTML snippet with title, allow list and referrer policy already set.

How to use YouTube Embed Generator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Paste the video link

    Paste a watch, share or Shorts link, or the 11-character video ID. The preview loads once the ID is valid.

  2. 02

    Set the start time if needed

    Enter seconds, mm:ss or hh:mm:ss. Leave the field empty to start at the beginning of the video.

  3. 03

    Choose player options

    Toggle autoplay, mute, loop, controls, related videos and privacy-enhanced mode; the live preview updates to match.

  4. 04

    Pick a size

    Keep the responsive 16:9 wrapper for modern pages, or switch it off for a fixed 560 × 315 iframe that older systems expect.

  5. 05

    Copy the embed code

    Press Copy embed HTML and paste the snippet into your page or CMS. Copy iframe URL is available for fields that only accept a source URL.

How this tool works

Works with
Embed code
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · Internet connection for the live preview

Limitations worth knowing

  • The tool builds the official player; it cannot bypass video privacy, region blocks or a channel disabling embedding.
  • Autoplay behaviour is decided by the viewer's browser and settings, and mute is required in most cases.
  • Looping a single video relies on YouTube's playlist parameter, which can change outside this tool's control.

Privacy and file handling

The embed URL and HTML are generated in your browser; nothing you paste is uploaded or stored. Only the live preview iframe contacts YouTube, and it loads the nocookie domain when privacy-enhanced mode is enabled. If you copy the code into your own page, the player contacts YouTube from your visitors' browsers as the embed runs.

Read the full privacy policy

YouTube Embed Generator FAQ

Short, direct answers to the questions people ask before using this tool.
Why does autoplay not work in my YouTube embed?
Most browsers only allow autoplay when the player is muted, and some block it entirely on mobile or in low-power mode. The generator turns mute on when you enable autoplay, and the embed still shows the player paused wherever the browser refuses to start.
How does the loop option work for a single video?
YouTube only repeats one video when loop=1 is combined with playlist set to the same video ID. The generator adds both parameters automatically, which is the step usually missed when an embed is written by hand.
What does rel=0 actually do on an embed?
rel=0 asks YouTube to keep end-screen suggestions to the same channel instead of showing unrelated videos. Since 2018 it no longer removes all recommendations, so it reduces but does not eliminate suggested content.
What is privacy-enhanced mode on YouTube embeds?
It swaps youtube.com for youtube-nocookie.com in the iframe URL. The player still loads from YouTube, but cookies for the video are usually not set until the viewer presses play, which helps pages that show a cookie consent banner.
Why is the copied iframe fixed at 560 × 315?
That is the standard desktop iframe size recommended in YouTube's embed documentation. For responsive pages keep the responsive wrapper option instead, which preserves a 16:9 shape at any container width.
Does this tool download YouTube videos?
No. It only builds the official embed player URL and iframe HTML. There is no video or audio download, and the video is streamed by YouTube when a viewer loads the page.
Can I embed any public YouTube video?
The embed player works for public videos whose owner has not disabled embedding, but some videos have embedding turned off. If the preview shows an error or says the video is unavailable, the owner has restricted it and no iframe will work on your site.
Why does the generated URL include playlist when loop is on?
YouTube uses playlist to know what to play next. For a single-video loop the video ID is repeated as a one-item playlist; without it, loop=1 has no effect. It does not create a playlist or change the video.
Does the embed generator store my video or settings?
No. The URL is built in your browser from the options you choose, and nothing is uploaded or saved. Only the live preview iframe and any player you embed contact YouTube.