Skip to content
channelpeeker

Free tool · No signup

YouTube Embed Code Generator

Paste a video, pick your options, copy a clean responsive iframe — including privacy-enhanced mode and a start time.

  • 100% free
  • No signup
  • Runs in your browser

Step by step

How to use the Embed Code Generator

  1. Step 01

    Paste the video link.

  2. Step 02

    Choose responsive sizing, privacy-enhanced mode, and an optional start time.

  3. Step 03

    Copy the code and paste it into your site's HTML.

Understand your results

What the results mean

The responsive option wraps the iframe so it scales to any screen while keeping the 16:9 ratio — the fixed 560×315 snippet YouTube gives you overflows small screens. Privacy-enhanced mode serves the player from youtube-nocookie.com, which doesn't store viewer cookies unless they play the video — useful for GDPR-conscious sites.

The code is generated in your browser; nothing is sent to our servers.

FAQ

Frequently asked questions

How do I embed a YouTube video on my website?

Paste the video link here, copy the generated iframe code and add it to your page's HTML. Any CMS with an HTML block (WordPress, Shopify, Webflow…) accepts it.

How do I make a YouTube embed responsive?

Wrap the iframe in a container with padding-bottom: 56.25% and position the iframe absolutely — exactly what the responsive option generates.

What is youtube-nocookie.com?

YouTube's privacy-enhanced domain. The embedded player doesn't set tracking cookies until the viewer actually plays the video.

Can the embed start at a specific time?

Yes — set the start seconds and we add ?start= to the embed URL.

Does embedding a video earn views for the creator?

Yes, plays in embeds count as views for the video as long as embedding is allowed by the uploader.

Is this tool free?

Yes — free, client-side, no account.

Last updated November 4, 2026 · Reviewed by the channelpeeker team · How we calculate