Skip to content
YouTube tool · Free · No sign-up

YouTube iframe Embed Code

Generate clean <iframe> embed code for any YouTube video. Customize width / height, autoplay, mute, loop, show/hide controls, related-video restrictions, and start time. Copy the code, paste into your HTML, done.

Rate this tool

Embed Studio

Video link · size · start and end · player options · live preview

Runs in your browser Free · No sign-up

Your video

youtube.com, youtu.be, Shorts, embed, live or music.youtube.com links, or an 11 character video ID. A ?t= in the link fills the start time.

Player size

Shape locked at 16:9. Change one side and the other follows.

Always 560 by 315 pixels, whatever the screen size.

Playback window

Leave blank to play the whole video. Both times count from the start of the video.

Player options

Your embed

Size
560×315
Code
Fixed
Privacy
On
Live preview
Paste a YouTube URL. The player shows up here.
Embed code
<!-- Your iframe code appears here -->
Recent embeds

Embeds you copy appear here, saved only in this browser (the last 5).

No sign-up needed Works with Shorts links Reads ?t= from links Privacy mode on by default
Smallest player side
200px
Suggested 16:9 size
480×270
Player options
8
URLs sent to us
0
Runs in your browserThe code is built on this page. Your URL is never sent to our server or saved by us.
Privacy mode by defaultStarts on youtube-nocookie.com, YouTube's privacy-enhanced domain for embeds.
Checked against the docsEach option follows YouTube's player parameter docs. Retired ones are marked.
Free, no sign-upNo account and no limits. Your last 5 embeds stay in this browser only.
What's next

Finish publishing your video

Tools that pick up where this one leaves off.