What you're actually doing

You cannot put a document directly into a link itself — a link is just text that points somewhere. What you can do is create a link that opens your email program with the document already attached, or create a link that downloads the document when clicked. The method depends on what you want the person on the other end to experience.

The most common setup is an email link with an attachment, which opens the recipient's email program with your document ready to send. This works in Gmail, Outlook, Apple Mail, and most other email clients. The second option is a download link, which lets someone click a link and get the file directly without opening email at all.

Key Takeaways

  • Email links with attachments use a special code format that tells your email program to open with the document already attached and ready to send.
  • The document must be hosted on the internet (in cloud storage like Google Drive or Dropbox) for a download link to work — you cannot attach a file from your computer directly through a link.
  • Creating an email link takes about two minutes and works in Google Docs, Microsoft Word, and most website builders without any special software.
  • Download links are simpler to set up if you already use cloud storage, and they work for anyone with a web browser regardless of their email program.

Creating an email link with an attachment in Google Docs

Open your Google Doc and place your cursor where you want the link to appear. Highlight the text you want to turn into a link (for example, "Download my resume"). Press Ctrl+K on Windows or Cmd+K on Mac to open the link dialog.

In the URL field, type this format exactly: mailto:recipient@email.com?subject=Your Subject Here&body=Message text here. Replace "recipient@email.com" with the actual email address, "Your Subject Here" with what you want in the subject line, and "Message text here" with any text you want in the email body. Click Apply, and the link is ready.

When someone clicks this link, their email program opens with the subject and message already filled in. However, this method does not attach the actual document — it only opens email. To include the document itself, you need to use a download link instead (see the next section).

Creating a download link from cloud storage

Upload your document to Google Drive, Dropbox, OneDrive, or another cloud storage service. Right-click the file and select Share. Change the permission to "Anyone with the link can view" (or "Anyone with the link can download" if you want to prevent editing). Copy the sharing link.

The link you copied will look something like drive.google.com/file/d/1a2b3c4d5e6f7g8h9i0j/view. This link works as-is — anyone who clicks it will see or download the document depending on your permission settings. You can paste this link into an email, a website, a document, or anywhere else you need it.

If you want to customize the link appearance, highlight text in your document (for example, "Click here to download"), press Ctrl+K or Cmd+K, and paste the cloud storage link into the URL field. This makes the link look like regular text instead of a long web address.

Creating an email link with attachment in Microsoft Word

Open your Word document and select the text you want to turn into a link. Press Ctrl+K on Windows or Cmd+K on Mac. In the dialog that opens, paste your cloud storage download link into the Address field. Click OK.

Word does not have a built-in way to attach files through a mailto link, so the cloud storage method is your best option. When someone clicks the link, they will download the document directly from your cloud storage instead of receiving it through email. This is actually faster and more reliable than email attachment links, because the file stays in one place and you can update it without resending emails.

Using a website builder or HTML

If you are building a website or using a platform like Wix, Squarespace, or WordPress, most builders have a built-in link tool. Highlight your text, click the link icon, and paste your cloud storage URL into the link field. The platform handles the rest.

If you are writing HTML directly, the code looks like this: <a href="https://drive.google.com/file/d/YOUR-FILE-ID/view">Download Document</a>. Replace the URL with your actual cloud storage link and the text "Download Document" with whatever you want the link to say. When someone clicks it, they will download or view the file depending on your cloud storage permission settings.

Why you cannot attach files directly to a link

A link is just a text pointer — it cannot carry a file inside it the way an email attachment can. The file has to live somewhere on the internet (cloud storage, a server, a file hosting site) for a link to point to it. This is actually an advantage: the file stays in one place, you can update it without resending links, and it works for anyone with a web browser.

If someone asks you to send a document through a link, they almost always mean a download link to cloud storage, not an email link. Download links are faster, more reliable, and work across all devices and email programs.

Troubleshooting common problems

The link does not work when someone clicks it. Check that your cloud storage permission is set to "Anyone with the link" rather than "Only people you invite". If the link is old, the file may have been moved or deleted — regenerate a new sharing link from the current file location.

The document opens in the browser instead of downloading. This is normal behavior for PDFs and images. If you want it to download instead, most cloud storage services have a download button next to the preview. You can also right-click the link and select "Save link as" to download it manually.

The email link opens but does not have the document attached. Email links cannot attach files — they only open your email program with text pre-filled. Use a cloud storage download link instead, or attach the document manually after the email opens.

Frequently Asked Questions

Can I attach a file from my computer directly to a link?

No. The file must be on the internet first — in cloud storage like Google Drive, Dropbox, or OneDrive. Once it is there, you can create a link to it. This is actually safer than email attachments because the file stays in one place and you control who can access it.

What is the difference between a download link and an email link?

A download link points to a file in cloud storage and lets someone get it directly by clicking. An email link opens their email program with text pre-filled, but cannot attach the actual document. For sending documents, download links are faster and more reliable.

Do I need special software to create a link to a document?

No. Google Docs, Microsoft Word, and most website builders have link tools built in. You just need cloud storage (Google Drive, Dropbox, OneDrive) to host the file. All of these are free or low-cost.

What happens if I delete the document after I share the link?

The link will break and people will see an error message. Keep the document in your cloud storage as long as you want the link to work. You can move it to a folder or archive it, but do not delete it.

Can someone edit the document if I send them a download link?

Only if you set the permission to "Anyone with the link can edit". By default, most cloud storage links are set to view-only, which means they can see it but not change it. You control this in the Share settings.