Creators tool

YouTube embed code builder

Generate responsive embed markup with supported playback settings.

Your inputs

Your results

Ready when you are
Add your inputs or try an example.
Your results will appear here.

How it works

Generate responsive 16:9 iframe markup with an accessible title, supported start/end, controls and caption settings. Deprecated branding parameters are omitted.

Read the source reference ↗

A few things to know

Embedding must be allowed by the video owner. A player requires at least a 200 × 200 viewport. Privacy-enhanced mode is not a promise of zero tracking; no video is loaded here.

A little context

When to use this tool

Build copyable responsive markup using supported player parameters. The iframe title describes the embedded content to assistive technology.

  • Embed a lesson.
  • Add a demonstration to a guide.
  • Prepare accessible iframe markup.

How to use youtube embed code builder

  1. Prepare the inputs

    Enter a video URL or ID and a descriptive iframe title.

  2. Choose the settings

    Choose timing, controls and caption preference.

  3. Review and export

    Copy the markup into your site and check it at mobile width.

Try the numbers

Try the supplied example

Inputs

video: M7lc1UVf-VE; start: 0; end: 0; controls: Show; captions: Default; privacy: Privacy-enhanced; title: Video demonstration

Result

The example produces a lazy-loaded, privacy-enhanced iframe with controls.

What it means

Test the markup on your own page, particularly in narrow containers.

Common mistakes to avoid

Do not assume embedding is allowed for every video

Do not assume embedding is allowed for every video.

Privacy-enhanced does not mean no third-party requests

Privacy-enhanced does not mean no third-party requests.

Useful answers

Frequently asked questions

Definitions, edge cases, and practical next steps for this tool. Search all tool FAQs ↗

Does this load a video here?

No. The output is copyable HTML text and a download.

What does privacy-enhanced mean?

The iframe uses youtube-nocookie.com; YouTube still receives requests when the player is loaded.

Why no modestbranding switch?

That parameter is deprecated and no longer provides the advertised control.

Can I choose an end time?

Yes, a positive end time must be greater than the start and is measured from the video’s beginning.

Will captions always appear?

Only if captions are available and the player honors the caption preference.

What minimum size should I use?

YouTube documents a minimum 200 × 200 player viewport; check controls fit too.

Are my inputs uploaded or stored?

Processing happens locally in your browser. This tool does not upload inputs. Downloads stay on your device; sharing or opening them in another service is your choice.

What should I check before using the output?

Embedding must be allowed by the video owner. A player requires at least a 200 × 200 viewport. Privacy-enhanced mode is not a promise of zero tracking; no video is loaded here.

Explore the topic in the blog

Sources and method

Use the references below to check definitions and platform guidance. The model’s scope and limits are explained above. Read our editorial standards.

Help

How can we help?

Find instructions, report a problem, or leave a message.

Read this tool’s FAQs ↗

Guides for this tool

Make the video easier to find and revisit.
Common questions

Where do I start? Try an example, then replace its values with yours.

Why did my upload fail? Check the field error, accepted format and file-size limit. Start with a small sanitized sample.

Where are my results? Review the result panel, then use its copy or download controls. If a calculation fails, check the error beside the input.

Message us

Chat opens Tawk.to. It processes your messages and connection data. Do not paste private inputs or file contents. Availability and response times vary.