Skip to content
Free Tool Arena

Developer Utilities · Free tool

YouTube Embed Generator

Generate YouTube embed code with autoplay, muted-start, loop, controls, start-at. Live preview.

Updated May 2026
<iframe width="100%" height="400" src="https://www.youtube.com/embed/dQw4w9WgXcQ?mute=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

Live preview

Browsers block autoplay on videos with sound — that’s why "autoplay’ only works when "muted" is on. Use the modern privacy-friendly youtube-nocookie.com URL by replacing youtube.com with youtube-nocookie.com manually after copy if you need GDPR-light embedding.

Found this useful?Email

Advertisement

What it does

Generate YouTube embed code with autoplay, muted-start, loop, controls, start-at, and dimension toggles. Live preview included.

Embed this tool on your siteShow snippet

Paste this snippet into any page. Loads on-demand (lazy), no tracking scripts, and sized to most dashboards. Replace the height to fit your layout.

<iframe src="https://freetoolarena.com/embed/youtube-embed-generator" width="100%" height="720" frameborder="0" loading="lazy" title="YouTube Embed Generator" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px;"></iframe>
Embed docs →

How to use it

  1. Paste a YouTube URL or video ID.
  2. Customize size and playback options.
  3. Copy the iframe code into your site.

Frequently asked questions

Why does autoplay require muted?
Modern browsers (Chrome, Firefox, Safari) block autoplay of videos with sound to prevent annoying surprise audio. Setting muted=1 lets autoplay work; users can unmute manually.

Advertisement

Learn more

Explore more developer utilities tools

100% in-browserNo downloadsNo sign-upMalware-freeHow we keep this safe →