YouTube embed parameters
YouTube is the largest website for sharing videos. This article is about the code for playing a YouTube video on your own website.
How to embed a YouTube video on your website:
1. Click the Share button below the video.
2. Click Embed.
3. Copy the code from the window that opens.
4. Paste the code into your web page or blog.
More parameters for the video:
Note (as of September 2026): YouTube has since removed or changed some parameters: autohide, showinfo and theme no longer work, modestbranding has had no effect since 2023 and rel=0 has not turned off related videos completely since 2018 – it only shows videos from the same channel. The wmode parameter belonged to the Flash player and is no longer needed. The current list is in the YouTube documentation.
Parameters are added to the video address (src), starting with & if the address already contains a parameter, otherwise with ?.
autohide – hid the controls and information bars during playback (no longer works).
2 – the top bar (video title, like, share, more information) and the progress bar were hidden – default
1 – everything was hidden
0 – the top bar was hidden
autoplay – starts the video automatically.
1 – the video starts automatically (browsers usually allow it only together with mute=1)
0 – the video does not start – default
color – the color of the progress bar
red – red bar – default
white – white bar
controls – turns off the progress bar and the bar with the player controls
1 – both bars are shown – default
0 – both bars are hidden
disablekb – keyboard controls (space for play and pause, arrow keys for seeking and volume)
1 – off
0 – on – default
end – stops the video at a given time, a positive number of seconds counted from the start
fs – shows the full screen button
1 – on – default
0 – off
iv_load_policy – shows video annotations if the video has them
1 – on – default
3 – off
modestbranding – hid the YouTube logo in the control bar (no effect since 2023)
1 – the logo was hidden in the control bar and only a small text logo appeared in the top right corner on mouse over
0 – the logo is shown – default
playlist – creates a list of videos that play automatically one after another; the list is made of video IDs separated by commas
Example: &playlist=ThVFL_N6U8w,IUKy2YfXAM0
mute – turns the sound of the video off or on
1 – sound off
0 – sound on – default
rel – related videos after the video ends
1 – related videos are shown – default
0 – only videos from the same channel are shown (since 2018 the list cannot be turned off completely)
showinfo – showed the top bar (no longer works)
1 – on – default
0 – off
start – starts playback at a given time, a positive number of seconds counted from the start
theme – the color of the control bar (no longer works)
dark – dark bar – default
light – light bar
wmode=opaque – allowed other elements to cover the video in the Flash player (no longer needed, covering is done with CSS z-index)