If you want to embed a YouTube video on your website or inside an app, you’ll need the special embed URL format. It looks like this:
https://www.youtube.com/embed/VIDEO_ID
For example:
https://www.youtube.com/embed/NkcjMo80TFA?si=KgLLGy1OrneAknOU
Follow these steps to get it:
Step 1: Go to the YouTube Video
-
Open the video you want to embed on YouTube.
-
Example:
https://www.youtube.com/watch?v=NkcjMo80TFA
Step 2: Click the Share Button
-
Below the video, click the Share button (arrow icon).
-
A popup will appear with sharing options.
Step 3: Select Embed
-
From the sharing options, choose Embed.
-
You’ll see a box with an HTML
<iframe>code. Example:
<iframe width="560" height="315" src="https://www.youtube.com/embed/NkcjMo80TFA" frameborder="0" allowfullscreen></iframe>
Step 4: Copy the Embed URL
-
Look inside the
srcattribute of the iframe code. -
In this example, it’s:
https://www.youtube.com/embed/NkcjMo80TFA
Step 5: (Optional) Add Parameters
You can customize the embed URL by adding parameters at the end, after a ?.
Some useful ones are:
-
?autoplay=1→ Video plays automatically. -
?start=60→ Video starts at 1 minute (60 seconds). -
?si=XXXX→ YouTube sometimes adds a session identifier.
Example with parameters:
https://www.youtube.com/embed/NkcjMo80TFA?start=60&autoplay=1
✅ Now you can display a YouTube video on your profile.