Topic guide
PDFs & Files
A link is easier to send, easier to update and kinder to inboxes than an attachment. Here is how to set one up properly.
Email attachments get stripped, blocked, duplicated and lost. A link to a file avoids all of that: everyone opens the same copy, you can replace it later, and nobody’s inbox fills up. Modern browsers open PDFs on their own, so for most people a link to a PDF just works.
Choose where the file lives
There are three common homes for a shared file. Pick based on who needs to open it and how long the link must last.
| Option | Good for | Watch out for |
|---|---|---|
| Cloud drive link (Google Drive, Dropbox, OneDrive) | Quick sharing with people you know | Sharing settings, sign-in prompts, viewer pages instead of the raw file |
| Static host (GitHub Pages, Netlify, Cloudflare Pages and similar) | Public documents, menus, price lists, portfolios | Public by default; anyone with the link can open it |
| Your own website | Files that belong with your brand | You need a site and a way to upload |
For a menu, a flyer, a CV or a public report, a static host gives you the cleanest result: a short link that opens the PDF directly in the browser. See hosting an HTML file for the upload steps; a PDF uploads exactly the same way.
Step by step: a clean public link for a PDF
- Name the file well. Use lowercase and hyphens:
spring-menu-2027.pdf, notMenu FINAL (2).pdf. The name becomes part of the link. - Check the size. Large PDFs are slow on phones. Use the file size checker to see sizes and compare them with your host’s limits.
- Upload it to your host, either on its own or in a folder with other files.
- Copy the link and open it in a private browser window to confirm it opens without a sign-in.
- Optionally, add a small landing page. An
index.htmlwith a title, a short description and a download button looks more finished than a bare file, and gives you room for more than one document later.
Keep the link stable
The best part of a link is that you can update the file without sending a new one. To make that work:
- Keep the same file name when you replace the file, so the link does not change.
- If you need versions, put the date inside the document rather than in the file name, or keep an
archive/folder for old copies. - With cloud drives, use the “replace file” or “manage versions” option rather than uploading a new copy, which usually creates a new link.
Make large files smaller
| File type | Easy ways to shrink it |
|---|---|
| Use your PDF app’s “reduce file size” or “optimize” export; avoid scanning at very high resolution | |
| Photos | Export at the size they will be viewed, and save as WebP or a quality-adjusted JPEG |
| Slides | Export to PDF rather than sharing the original presentation file |
| Video | Host on a video platform and share or embed that link instead |
Control who can open it
Not every file should be public. Be clear about what you need:
- Public: anyone with the link can open it, and it may be found by search engines if it is linked from elsewhere. Fine for menus and flyers.
- Unlisted: public, but not linked anywhere. Treat it as public anyway, because links get forwarded.
- Restricted: only named people can open it after signing in. Use a cloud drive’s sharing controls for this.
Never put personal data, such as ID documents, contracts with addresses or medical letters, on a public host. Use a service with access controls and expiring links.
Make PDFs readable for everyone
- Export from a document with real headings, so screen readers can navigate it.
- Add alt text to images in the source document before exporting.
- Set the document title in the PDF properties; browsers show it in the tab.
- Prefer a web page for short content. A one-page announcement is often better as a simple HTML page than as a PDF. Our HTML and CSS basics guide shows how to build one, and the HTML previewer lets you see it before publishing.
Sharing other file types
The same rules apply to zips, audio files, images and spreadsheets. Browsers display images, audio, video and PDFs directly; most other types will download. If people need to view a spreadsheet, share it from a cloud spreadsheet app or export it to PDF.
For a comparison of where to host files for free, see free hosting alternatives.
Quick checklist
- File named in lowercase with hyphens
- Size checked and reduced if needed
- Uploaded and opened in a private window
- Sharing level matches what the file contains
- Replacement plan that keeps the same link
Tools
Free tools
Small, free tools that run right in your browser. No sign-up, nothing to install.
-
HTML previewer
Paste HTML and CSS, see it live in a safe sandbox, then download it as an index.html file.
Open tool -
File size checker
See if your files fit a host's upload limits before you try. Nothing is uploaded.
Open tool -
HTML path checker
List every link, image and script in a page and flag the paths that will break once hosted.
Open tool