Skip to content

YouTube Embed Code Generator

Create responsive YouTube embed code with start time and options.

Embed code

Preview
The preview loads from YouTube when you click “Load preview”.

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

0.0

0 ratings

  • 5 stars 0
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the YouTube Embed Code Generator

Build YouTube iframe markup with sizing and playback options.

  1. 1 Enter a YouTube URL or ID and a start time if needed.
  2. 2 Choose Width and Responsive, Autoplay, Loop, Controls and Privacy-enhanced mode.
  3. 3 Click Load preview to test, then copy the generated code into your page.

Example and practical tips

Embed your own tutorial at a chosen starting point with responsive 16:9 sizing.

Frequently asked questions

Will autoplay always work?

No. Browser autoplay rules and user settings can prevent it even with the muted option.

Does the preview contact YouTube?

Yes, when loaded. Privacy-enhanced mode changes the embed host but is not a promise of no external requests.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help