With Related Videos

Default embed codes:

<iframe width="560" height="315" src="//www.youtube.com/embed/O-m_BPYJG6M" frameborder="0" allowfullscreen></iframe>

Without Related Videos

Default embed codes with ?rel=0 added. See rel=0 tag:

<iframe width="560" height="315" src="//www.youtube.com/embed/O-m_BPYJG6M?rel=0" frameborder="0" allowfullscreen></iframe>

The best way to generate this code is:

  1. Find the video on YouTube
  2. Below the video, click the Share button
  3. Select the Embed tab
  4. Below the HTML code, click Show More
  5. Untick ‘Show suggested videos when the video finishes’
  6. Note the additional rel=0 tag in the embed code and copy it