Video Tools › Video Tools

YouTube Embed Code Generator

Live

Build a clean, privacy-friendly YouTube embed in seconds. Choose start and end times, autoplay, mute, loop, captions, "no related videos", and a responsive 16:9 wrapper — then copy ready-to-paste HTML.

Player options

About YouTube Embed Code Generator

The AT USE YouTube Embed Code Generator gives you the same fine-grained iframe control that YouTube's share dialog hides behind a small "more" link — but in a single, clear form with a live preview. Toggle privacy-enhanced mode (youtube-nocookie.com) to avoid setting tracking cookies until the user presses play; set a precise start time and end time to deep-link to a specific clip inside a longer video; enable autoplay (with mute, as required by every modern browser's autoplay policy); request captions on by default for accessibility; hide related-videos suggestions at the end of playback; loop the clip; and wrap the whole thing in a fluid responsive container so it scales correctly on phones, tablets, and desktops. The output is plain, dependency-free HTML you can paste into any CMS, static site, blog post, or product documentation. Marketers use it for landing-page hero clips, course creators for lesson embeds, support teams for "watch this 30-second walkthrough" snippets, and developers for documentation and changelogs that need to point at a specific timestamp. No login, no account, no JavaScript dependency — just a copy-pasteable iframe and a styled responsive wrapper.

Common use cases

  • Embed a single explainer at a specific timestamp on a landing page.
  • Create a privacy-respecting hero video that only loads cookies on play.
  • Loop a short brand clip silently in the background of a section.
  • Build a course or knowledge-base article with a precise lesson clip.
  • Provide responsive video embeds that look correct on mobile.

How to use it

  1. Paste the YouTube URL of the video you want to embed.
  2. Choose your options: privacy mode, start/end time, autoplay, mute, loop, captions, related videos.
  3. Preview the live embed and adjust until it looks right.
  4. Copy the generated HTML and paste it into your page.

Frequently asked questions

What is privacy-enhanced mode?

It serves the embed from youtube-nocookie.com, which only sets tracking cookies after the visitor actually plays the video. Recommended when you care about consent banners or GDPR.

Why does autoplay require mute?

Modern browsers (Chrome, Safari, Firefox, Edge) all block autoplay of videos with sound unless the user has interacted with the page first. The generator automatically pairs autoplay with mute so the embed actually plays.

Can I use the responsive wrapper without the rest?

Yes — the generator outputs the wrapper as a small block of CSS plus an iframe. You can keep the wrapper and customise its aspect ratio (16:9, 9:16, 1:1, etc.).

Will the embed track my visitors?

Standard YouTube embeds set cookies once the page loads. Privacy-enhanced mode delays this until play. For zero tracking, lazy-load the iframe behind a click-to-play poster.

Does this work for unlisted videos?

Yes. As long as the iframe URL is correct, unlisted videos embed exactly the same way as public ones.

Keep going

More video tools

Other tools in the Video category on AT USE.

Live Video Tools

YouTube Thumbnail Downloader

Grab any public YouTube video thumbnail in all official sizes — instantly, no login.

Open tool
Live Video Tools

Video Aspect Ratio & Resolution Calculator

Solve width, height, or aspect ratio for any video — with presets for 16:9, 9:16 Shorts, square, and ultrawide.

Open tool
Live Video Tools

YouTube Timestamp Link Generator

Build deep links to specific moments in a YouTube video. Bulk convert chapter lists in one paste.

Open tool
Live Video Tools

YouTube Chapter Marker Generator

Format your timestamp list into a YouTube-compliant chapter description block.

Open tool
Live Video Tools

Vimeo Embed Code Generator

Generate Vimeo embed code with DNT mode, custom color, autoplay, loop, and a responsive wrapper.

Open tool
Live Video Tools

Subtitle Format Converter

Convert subtitles between SRT, VTT, ASS, SBV, and plain TXT — entirely in your browser.

Open tool