Creator tool / 08

YouTube Embed Generator

Build privacy-enhanced YouTube iframe code with start time, autoplay, and controls options.

YouTube Embed Generator: TOEA creates an iframe using youtube-nocookie.com, a normalized video ID, and only the selected URL parameters. Runs 100% locally in your browser with zero server file uploads.

Runs
In your browser
Cost
Free · no sign-up
Availability
Ready to use
Privacy-first embed builderRuns in your browser

Accepts watch, share, Shorts, live, and embed URLs. No request is sent while parsing.

Autoplay and other parameters

Browsers generally allow a video to start by itself only when it is muted. With autoplay ticked, add &mute=1 to the src address if the video must start on its own; viewers can turn the sound on in the player.

Other parameters YouTube documents can be added the same way. end=120 stops playback at two minutes. loop=1 repeats a single video only when it is paired with playlist= and the same video ID. rel=0 no longer hides suggested videos at the end; since 2018 it only limits them to the same channel.

Making the player fit the page

The generated <iframe> is a fixed 560 × 315. To make it fill its column on any screen, remove the width and height attributes and give it style="width: 100%; aspect-ratio: 16 / 9; height: auto", or use a 9 / 16 ratio for a Short.

Every embedded player loads its scripts as the page loads, even if nobody presses play. Adding loading="lazy" to the <iframe> lets the browser wait until the player is about to scroll into view, which keeps pages with several videos fast. For a page listing many videos, a linked thumbnail that opens the video costs even less.

How to use it

  1. Paste the YouTube URL and choose embed options.
  2. Build the privacy-enhanced iframe.
  3. Preview it and copy the HTML.

Privacy & limitations

Generation is local. The preview loads YouTube only after you create it; embedding third-party media can still allow that provider to receive visitor data.

Related tools

Frequently asked questions

What is privacy-enhanced mode?

It uses youtube-nocookie.com, which limits some storage until a viewer interacts, though it does not make the embed anonymous.

Why might autoplay not work?

Browsers commonly block unmuted autoplay. Site and device policies ultimately control playback.

Free tool · runs in your browser · no account required