The simplest way to link a video

A video link is a URL that points to a video file or a video hosted on a platform like YouTube, Vimeo, or your own website. The easiest method depends on where your video lives. If the video is already on YouTube or another platform, you copy the URL from your browser's address bar and share it directly — that is the link. If you are hosting the video on your own website, you create a link using HTML code that tells a browser where to find the file and how to play it.

Most people use one of three approaches: sharing a platform URL (YouTube, Vimeo), embedding a video player on a webpage, or linking to a video file stored on a server. Each has different steps and different uses depending on whether you want people to watch in a new window, watch inside your page, or read the file.

Key Takeaways

  • The fastest link is copying the URL from YouTube or Vimeo directly from your browser's address bar and pasting it anywhere.
  • To embed a video player on your own webpage, you use an HTML <iframe> tag with the embed code that YouTube or Vimeo provides.
  • To link to a video file you host yourself, you use an HTML <a> tag pointing to the file location, the same way you link to any other file.
  • Platform videos (YouTube, Vimeo) give you embed code in a "Share" or "Embed" button; your own files require you to know the file path on your server.

Copying a link from YouTube or Vimeo

If your video is already on YouTube, open the video page in your browser. Look at the address bar at the top — the URL there (something like https://www.youtube.com/watch?v=dQw4w9WgXcQ) is your link. Highlight it, copy it, and paste it anywhere you want to share it. That is a working video link.

YouTube also provides a shorter link. Right-click on the video player and select Copy video URL, or click the Share button below the video title and copy the link from the box that appears. Vimeo works the same way — open the video, click Share in the top right, and copy the link from the popup.

These links work in emails, text messages, social media, and anywhere else you paste a URL. When someone clicks the link, the video opens in a new window or tab on that platform's website.

Embedding a video player on your webpage

If you want the video to play directly on your webpage instead of opening in a new window, you embed it. YouTube and Vimeo both provide the code you need. On YouTube, click Share below the video, then click the Embed button. A box appears with HTML code that looks like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Copy that entire code block. Open the HTML file for your webpage in a text editor, find the spot where you want the video to appear, and paste the code there. Save the file. When someone visits your page, the video player will be built into the page itself, and they can watch without leaving your site.

Vimeo works the same way — click Share, copy the embed code, and paste it into your webpage's HTML. You can adjust the width and height numbers in the code to make the player bigger or smaller, but keep the ratio the same so the video does not stretch.

Linking to a video file on your own server

If you have uploaded a video file (an .mp4, .webm, .mov, or other video format) to your web server, you link to it the same way you link to any other file. You need to know the file path — the folder structure and filename on your server.

Use an HTML <a> tag with the href attribute pointing to the file. If your video is in a folder called videos and the file is named demo.mp4, the code looks like this:

<a href="videos/demo.mp4">Watch the demo</a>

When someone clicks that link, the browser will either play the video in a new window or read the file, depending on the browser and the video format. If you want to embed a player instead of a link, use the <video> tag:

<video width="560" height="315" controls> <source src="videos/demo.mp4" type="video/mp4"> Your browser does not support the video tag. </video>

The controls attribute adds play, pause, and volume buttons. The type attribute tells the browser what kind of file it is. This method works for any video file you host yourself, but the file has to be on your server — you cannot link to a file on someone else's server this way.

Understanding the difference between links and embeds

A link is a URL that opens the video somewhere else — in a new window, on YouTube's site, or as a read. An embed is code that puts the video player directly into your webpage. Links are simpler to create and share; embeds give you more control over how the video appears on your page.

If you are sharing a video in an email or on social media, use a link. If you are building a webpage and want the video to be part of the page itself, use an embed. Platform videos like YouTube are easiest to embed because the platform provides the code for you. Your own video files require you to write or paste the HTML code yourself.

Common mistakes when creating video links

The most common mistake is copying the wrong URL. On YouTube, make sure you are copying from the address bar or the Share button, not from the video title or description. If you copy a timestamp URL (one that includes &t=), the video will start at that point in the timeline, which may not be what you want.

When embedding, do not edit the embed code unless you know what you are doing. The width, height, and other attributes are set to work together. Changing one number without adjusting the others can break the player or make the video look stretched.

If you are linking to a file on your own server, the most common problem is a wrong file path. If the link does not work, check that the folder names and filename match exactly — paths are case-sensitive on most servers, so Videos/demo.mp4 is different from videos/demo.mp4.

Frequently Asked Questions

Can I link to a video without uploading it to YouTube?

Yes. You can upload the video file to your own web server and link to it directly, or use another hosting platform like Vimeo, Wistia, or Dailymotion. You do not have to use YouTube. Each platform has its own embed code and sharing options.

What is the difference between a short YouTube link and a regular one?

A short YouTube link (youtu.be) is shorter and easier to type, but it points to the same video as the full URL. Both work the same way. YouTube generates the short version automatically; you can copy either one.

If I embed a video, can I control when it starts playing?

Yes. In YouTube embed code, add &start= followed by the number of seconds. For example, &start=30 makes the video start 30 seconds in. For your own video files using the <video> tag, add currentTime in a script tag to set the starting point.

What happens if I link to a video and the file gets deleted?

The link breaks. If you are linking to a file on your own server, the link only works as long as the file stays there. If you are linking to a YouTube or Vimeo video, the link works as long as the video is not deleted or made private by the owner.

Can I make a video link open in a new window?

Yes. Add target="_blank" to your link code: <a href="https://youtube.com/watch?v=..." target="_blank">Watch</a>. This tells the browser to open the link in a new tab instead of the current one.