The simplest way to link to a PDF

To create a link to a PDF, you need the file's web address (called a URL) and then wrap it in HTML code or use your editor's link tool. If the PDF is on your own website, you upload it to your server first, then link to it. If it's hosted elsewhere, you use that direct URL. The link itself works the same way as a link to any other webpage — a reader clicks it and the PDF opens.

The actual mechanics depend on where you're working: a website builder like Wix or Squarespace has a button for this, a word processor like Microsoft Word or Google Docs has a link menu, and raw HTML requires a single line of code. All three methods produce the same result for the reader.

Key Takeaways

  • Upload your PDF to your website's server or note the direct URL if it's hosted elsewhere, because you need that address to create the link.
  • In website builders and word processors, use the Insert Link or Add Link button and paste the PDF's web address into the URL field.
  • In HTML, a PDF link is written as <a href="url-to-pdf.pdf">Link text here</a>, where the text between the tags is what readers see and click.
  • You can link to a specific page of a PDF by adding #page=3 to the end of the URL, though not all PDF viewers support this.
  • Test the link in a browser before publishing to make sure the PDF opens and displays correctly.

Linking to a PDF in website builders

Website builders like Wix, Squarespace, Shopify, and WordPress.com all have built-in tools for this. First, upload your PDF file to your site's media library or file storage — usually there's an Upload or Media button in the dashboard. Once uploaded, the builder assigns it a web address automatically.

Then, on the page where you want the link to appear, highlight the text you want to turn into a link (or place your cursor where you want to add one). Click the Insert Link or Add Link button — it usually looks like a chain link icon in the toolbar. A dialog box opens asking you to choose the destination. Select your uploaded PDF from the media library, and the builder creates the link for you. Save your page and the link is live.

If the PDF is hosted on another website, you can paste its full web address directly into the URL field instead of choosing from your media library. This works as long as the other site allows linking to the file.

Linking to a PDF in Word and Google Docs

Microsoft Word and Google Docs both have link menus that work similarly. In Word, highlight the text you want to link, then go to Insert > Link (or press Ctrl+K on Windows, Cmd+K on Mac). A dialog opens. Choose "Browse" or "Recent Files" to find a PDF on your computer, or paste a web address in the "Address" field if the PDF is online.

In Google Docs, highlight your text, then click Insert > Link from the menu. Type or paste the web address of the PDF. If the PDF is in your Google Drive, you can search for it by name and Google Docs will find it. Click the link to confirm.

Both programs let you test the link by holding Ctrl (or Cmd on Mac) and clicking it. The PDF should open in a new tab or window. If it doesn't, double-check that the web address is correct and that the PDF is accessible from the internet.

Creating a PDF link using HTML code

If you're writing HTML directly, a PDF link is a single line. The basic structure is:

<a href="path-to-your-file.pdf">Click here to view the PDF</a>

Replace "path-to-your-file.pdf" with the actual web address or file path. If the PDF is in the same folder as your HTML file, you can use just the filename: report.pdf. If it's in a subfolder called "documents", write documents/report.pdf. If it's on another website, use the full web address: https://example.com/files/report.pdf.

The text between the opening and closing tags — "Click here to view the PDF" in this example — is what readers see and click on. You can change it to anything: "Download our guide", "See the full report", or any other description that tells readers what they're opening.

Uploading a PDF to your website

Before you can link to a PDF you've created, it needs to live somewhere on the internet. If you're using a website builder, the upload process is built in — you use the media or file manager in your dashboard. If you're running a self-hosted WordPress site or managing your own server, you typically use FTP (File Transfer Protocol) software like FileZilla to upload files, or your hosting provider's file manager in the control panel.

Once uploaded, note the exact web address the server assigns to the file. This is the URL you'll use in your link. Most hosting providers show you this address in the file manager, or you can construct it yourself: if your website is example.com and you uploaded the file to a folder called "downloads", the URL is usually https://example.com/downloads/filename.pdf.

Test the URL by pasting it directly into your browser's address bar. If the PDF opens, the address is correct and you can use it in your link.

Linking to a specific page within a PDF

Some PDF viewers support a special syntax that opens the PDF to a particular page instead of the first one. Add #page=3 to the end of the URL, replacing 3 with the page number you want. The full link would look like:

<a href="https://example.com/report.pdf#page=5">Jump to page 5</a>

This works in most modern browsers and PDF readers, but not all. Some older or specialized PDF viewers ignore the page number and open to page 1 anyway. There's no way to know in advance whether a reader's setup will support it, so test it yourself before relying on it. If it doesn't work for your audience, link to the PDF normally and let readers navigate to the page they need.

Making your PDF link accessible and clear

Readers benefit from knowing what they're about to open. Instead of generic link text like "Click here", describe what the PDF contains: "Download our 2024 annual report (PDF, 3 MB)" or "View the installation guide". This tells readers the file type and size before they click, which is especially helpful on mobile devices where opening a large PDF can use data or take time.

If you're linking from a webpage, you can also add a title attribute to your HTML link that shows a tooltip when someone hovers over it: <a href="guide.pdf" title="User guide, 2 MB">Read the guide</a>. In website builders and word processors, this option is usually in the link settings dialog.

Test your link in different browsers and on mobile devices to make sure the PDF opens correctly and displays properly. Some older phones or tablets may have trouble with very large PDFs or certain PDF features like embedded videos or forms.

Frequently Asked Questions

Can I link to a PDF on someone else's website?

Yes, as long as the PDF is publicly available and the website owner hasn't blocked external links. Use the full web address in your link. However, if the file moves or the owner removes it, your link will break. Linking to PDFs you control on your own server is more reliable.

What happens when someone clicks a PDF link on mobile?

The PDF usually opens in the device's default PDF viewer or web browser. On iPhones and iPads, it typically opens in Safari or Apple Books. On Android, it opens in the default PDF app or Chrome. Large PDFs may take a moment to load. You can't control which app opens it, but the link itself works the same way as on a desktop.

How do I make a PDF link open in a new tab instead of the same window?

In HTML, add target="_blank" to the link: <a href="file.pdf" target="_blank">Open PDF</a>. In website builders and word processors, look for an option like "Open in new window" or "Open in new tab" in the link settings dialog. This keeps your page open while the PDF appears in a separate tab.

Why isn't my PDF link working?

The most common reasons are a typo in the web address, the PDF file not being uploaded to the server yet, or the file being in a location that isn't publicly accessible. Double-check the URL by pasting it directly into your browser's address bar. If the PDF opens that way, the address is correct. If not, verify the file is uploaded and check your server's permissions settings.

Can I track how many times someone clicks a PDF link?

Website analytics tools like Google Analytics can track clicks to PDFs if you set up event tracking or use a link shortener with built-in analytics. By default, a simple link to a PDF doesn't report back to you. Your web hosting provider may also show PDF downloads in server logs, though this requires some technical knowledge to interpret.