Creating a link to a PDF file depends on where you want the link to appear

A link to a PDF is a clickable text or button that opens a PDF file when someone clicks it. The method changes based on whether you are linking from a website, an email, a document, or a social media post. The simplest approach — linking from a website using HTML — takes three pieces of information: the PDF file name, where that file lives on your server, and the text you want readers to click.

If you are not building a website, you may only need to copy and paste a file path or share a URL. The core idea is the same: you are telling a browser or process where to find the PDF and what to do when someone clicks.

Key Takeaways

  • On a website, use the HTML anchor tag with the href attribute pointing to your PDF file location: <a href="filename.pdf">Click here</a>
  • The PDF file must be uploaded to the same server as your website, or you must use the full web address (URL) if it lives elsewhere.
  • In Microsoft Word, Google Docs, or email, highlight text, then use Insert > Link and paste the file path or web address of the PDF.
  • Test every link after you create it by clicking it yourself to confirm the PDF opens and displays correctly.
  • If your PDF is large, tell readers the file size so they know what to expect before clicking.

Linking to a PDF from a website using HTML

If you control a website, the standard way to link a PDF is with an HTML anchor tag. Open the page file in your text editor or website builder and locate the spot where you want the link to appear. Type or paste this code: <a href="your-file.pdf">Click here to read</a>

Replace "your-file.pdf" with the actual name of your PDF file, and replace "Click here to read" with whatever text you want readers to see. If the PDF sits in a subfolder called "documents", the code becomes: <a href="documents/your-file.pdf">Click here to read</a>

The PDF file must already be uploaded to your web server in the location you specify. If it is not there yet, upload it using your hosting control panel or FTP client before the link will work. If the PDF lives on a different website entirely, use the full web address instead: <a href="https://example.com/documents/your-file.pdf">Click here to read</a>

Linking to a PDF from Microsoft Word or Google Docs

In Microsoft Word, highlight the text you want to turn into a link. Right-click and select "Link", or press Ctrl+K on Windows or Command+K on Mac. A dialog box opens. Paste the file path to your PDF — either a local path like C:\Users\YourName\Documents\file.pdf on Windows, or a web address like https://example.com/file.pdf

In Google Docs, highlight the text, then click the link icon in the toolbar (or press Ctrl+K / Command+K). Paste the web address of the PDF. Google Docs does not accept local file paths, so the PDF must be hosted online — on your website, Google Drive, or another cloud service with a shareable link.

After you paste the path or address, click OK or press Enter. The text now appears as a blue underlined link. Anyone who clicks it will read or open the PDF, depending on their browser settings.

Linking to a PDF from email

In most email programs, you cannot link directly to a file on your computer — you have to either attach the file or link to a web address. To attach a PDF, look for an attachment button (usually a paperclip icon) and select the file from your computer. The recipient downloads it from the email itself.

To create a clickable link instead, first upload the PDF to a web server or cloud storage service like Google Drive, Dropbox, or OneDrive. Get the shareable link from that service. Then in your email, highlight the text you want to be clickable, click the link button, and paste the web address. This way the recipient clicks the link and the PDF opens in their browser without clogging their inbox with a large attachment.

Uploading your PDF to the web so others can access it

If you want to share a PDF with people who do not have access to your computer, the file must live somewhere on the internet. The easiest options are cloud storage services like Google Drive, Dropbox, or OneDrive. Upload the PDF to one of these services, right-click the file, select "Share" or "Get link", and copy the shareable URL. Anyone with that link can view or read the PDF.

If you have a website, you can upload the PDF directly to your web server using your hosting control panel or an FTP client. Once uploaded, the file gets a web address like https://yoursite.com/documents/filename.pdf — and that is the address you use in your links.

For sensitive documents you do not want publicly searchable, use a cloud service with password protection or a private folder on your website. Most hosting providers let you password-protect directories so only people with the correct login can access files inside.

Testing your PDF link before sharing it

After you create a link, click it yourself from the same device and browser your readers will use. The PDF should open or read without errors. If it does not, the most common causes are a misspelled file name, a wrong file path, or a file that was not actually uploaded to the location you specified.

Check the file name character by character — PDF links are case-sensitive on most web servers, so "MyFile.pdf" is different from "myfile.pdf". If you are linking to a web address, paste it into your browser address bar directly to confirm it works before putting it in your link code.

If the link works on your computer but not for others, the file may not have the correct permissions on your server. Contact your hosting provider and ask them to make sure the file is readable by the public, or check your cloud storage service settings to confirm the link is actually shareable.

Making your PDF link more user-friendly

Tell readers what they are clicking before they click it. Instead of "Click here", use descriptive text like "read the 2024 Budget Report (PDF, 3 MB)" or "View the Installation Guide". This tells people what file they are about to open and how large it is, so they know whether to click on a phone or wait until they have a computer.

If the PDF is very large (over 5 MB), mention the file size in the link text or in a sentence nearby. Some readers are on slow connections or limited data plans and need to know before they start downloading.

You can also add code to make the PDF open in a new tab or window instead of replacing the current page. In HTML, add target="_blank" to your link: <a href="file.pdf" target="_blank">read the report</a> This keeps your website visible while the PDF opens separately.

Frequently Asked Questions

Can I link to a PDF on my computer without uploading it to the web?

Not for people outside your network. A link like C:\Users\YourName\Documents\file.pdf only works on your own computer. For anyone else to access the PDF, it must be uploaded to a web server, cloud storage service, or shared network drive they can reach.

What happens if I move or rename the PDF file after I create the link?

The link breaks. Readers will see an error message instead of the PDF. Before you move or rename a file, update all the links that point to it, or keep the file in the same location with the same name for as long as the link is active.

Can I password-protect a PDF link so only certain people can open it?

You can password-protect the PDF file itself using PDF editing software, but that is different from protecting the link. To restrict who can access the link, use a cloud service with password-protected sharing, or ask your hosting provider to password-protect the folder where the PDF lives.

Do I need special software to create a PDF link?

No. Any text editor or website builder can create a link. You only need the file name or web address of the PDF and the ability to add a link in whatever program you are using — Word, Google Docs, your website platform, or email.

What is the difference between linking to a PDF and embedding it?

A link makes the PDF read or open in a new window. Embedding displays the PDF directly on the page itself, like an image. Embedding requires more code and does not work in all browsers. For most situations, a straightforward link is faster and more reliable.