CompuTechBiz - IT Services

How to Embed a Youtube Video in a Webpage

YouTube's shortened share link (like https://youtu.be/...) can't be directly embedded in a webpage <iframe>. That's why it throws an "error 153" or just fails to load in many cases.

The fix is to convert it into a proper embed URL, or use the privacy-enhanced (no-cookie) domain version.

Here's the full explanation:

When you copy the video URL from YouTube's share button, you get something like:

https://youtu.be/JYfiaSKeYhE

The working embed form is:

https://www.youtube.com/embed/JYfiaSKeYhE

or the privacy-enhanced (no tracking cookies) version:

https://www.youtube-nocookie.com/embed/JYfiaSKeYhE