How to put a PDF on a website
Link to the file, show it inside the page, or turn it into a normal web page — and how to choose between them
By Metin Ersoy · Updated November 16, 2026
Three ways to put a PDF on a page
There are three common ways to show a PDF to visitors, and each one suits a different kind of document:
| Way | What the visitor sees | Best for |
|---|---|---|
| Download link | A link that opens or downloads the PDF | Forms, price lists, documents people print or keep |
| Embedded viewer | The PDF inside a frame on your page | Brochures and menus where the layout matters |
| Web page (HTML) | Normal text, headings and pictures | Articles, reports, guides and anything you want found in search |
You can also combine them: publish the text as a web page and add "Download the PDF" at the end for people who want to print it.
Before you upload: prepare the file
- Make it small. Large scans and photos make a PDF slow to open, especially on mobile data. Run it through Compress PDF first.
- Give it a clear file name. A name like
summer-menu-2026.pdftells visitors and search engines what the file is. Avoid spaces and names likescan0034.pdf. - Fill in the title. Browsers show the document title on the tab. Set it with Edit PDF metadata.
- Remove what should stay private. Black out personal details with Redact PDF — a black box drawn on top is not enough, the text underneath can still be copied.
- Make scanned pages searchable. A scan is only a picture. OCR PDF adds a text layer so the words can be found and copied.
Option 1: link to the PDF
Upload the file to your site (in WordPress: Media → Add New, then copy the file URL) and link to it from any page, for example "Download our price list (PDF, 1.2 MB)". Mentioning "PDF" and the size in the link text tells visitors what will happen when they click.
This is the simplest way and works in every browser. Its weakness is that the visitor leaves your page, and on a phone the PDF opens as a separate, often hard to read file.
Option 2: show the PDF inside the page
Most desktop browsers can show a PDF inside a page. In a page builder, look for a "PDF", "File" or "Embed" block — WordPress's File block, for example, has an option to show an inline embed. In plain HTML, an iframe does the same job: <iframe src="/files/menu.pdf" width="100%" height="700" title="Summer menu"></iframe>.
Three things to keep in mind:
- Phones are the weak spot. Many mobile browsers do not show the frame at all. Put a plain "Open the PDF" link right under it.
- Give the frame a title. Screen readers announce it, so describe what is inside.
- Search engines treat the PDF as a separate file. The text inside the frame does not count as part of your page.
Option 3: turn the PDF into a web page
If the PDF is mainly text — an article, a report, a manual, a policy — a real web page is usually the better choice. It fits every screen, loads fast, and the text belongs to your page.
- Open PDF to HTML and choose your PDF. It is converted in your browser and is not uploaded.
- Choose Continuous text for one flowing article, or Keep the PDF pages if readers refer to page numbers.
- Download the .html file and open it in a browser to check the headings and tables.
- Copy the content into your website. In WordPress, open the HTML file in a text editor, copy the part between the body tags and paste it into a Custom HTML block — or paste the text from the browser into the editor and let it keep the headings.
The pictures are built into the HTML file. If you publish many pictures, it is tidier to upload them to your media library and replace them there.
Prefer a document people can edit instead? PDF to Word gives a .docx file you can open in Word or Google Docs.
Which one should you choose?
- The layout is the point (a designed menu, a poster, a brochure): embed it and add a download link.
- People will print or fill it in (a form, a contract, a price list): a download link is enough.
- People will read it (news, reports, guides, instructions): turn it into a web page and offer the PDF as an extra.
Ready to try it? It is free and your file stays on your device.
Open PDF to HTML