Home

Remove Related Videos from YouTube Embed

Hide the “more videos” section on an embedded YouTube video with this quick tip.

Something I find obnoxious is when I embed a video in an article that is meant to be helpful and it recommends related videos when paused or ended. This is often distracting to the purpose of embedding some specific video. And it puts a lot of blind trust in YouTube to find videos that would supplement the one I’m sharing.

Fortunately, there’s a way around this. You can append ?rel=0 to the embed URL and the related videos will not appear.

For example:

<iframe
src="https://www.youtube.com/embed/Ljj1wGFJqPY?rel=0"
title="YouTube video player"
frameborder="0"
allowfullscreen
>
</iframe>

Here’s the difference:

Embedded YouTube Related Videos Comparison

Demo

You can see this in action here. Play and pause both videos. You’ll see related videos in the top one, but not the bottom one.

Let's Connect

Keep Reading

Git Checkout Previous Branch

Checkout the previous git branch without needing to remember or type the name.

Jul 27, 2022

Use a Preceding Space in Terminal to Hide from History

This is a trick to running commands that you don’t want to be saved in your history.

May 29, 2022

Delete Entire Word in Terminal and iTerm2

Ever find yourself holding down the Delete key on the command line? Here's a way to work faster.

Feb 08, 2021