Skip to main content
AIKitts

YouTube Embed Generator.

Generate YouTube iframe embed code with custom width, height, autoplay, mute, loop, start time, and related video controls. Live preview included. Free and instant.

How to use

Paste any YouTube video URL or video ID into the input and click Generate.

Adjust the width, height, start time, and toggle options like autoplay and loop.

Copy the iframe code from the Embed Code textarea and paste it into your webpage.

Frequently Asked Questions

What does "rel=0" do?

It tells YouTube to show only related videos from the same channel when the video ends, instead of from unrelated channels. It is on by default in this tool for a cleaner embed experience.

Will autoplay work on my website?

Modern browsers block autoplay with sound by default. For autoplay to work reliably, enable the Mute option alongside Autoplay.

Can I set a start time in minutes?

The Start At field takes seconds. For example, to start at 1 minute 30 seconds, enter 90.

Is it safe to embed YouTube videos on my site?

Yes. YouTube iframes use youtube-nocookie.com privacy-enhanced mode by default in official embed codes. This tool uses the standard embed domain — update the URL if you need the no-cookie variant.