How to Embed a PDF in Wix
Step-by-step guide to embedding a PDF on your Wix website. Use the Wix editor, HTML iframe, or external PDF hosting for the best results.
Wix offers a few different ways to display a PDF directly on your website. Here are the best methods depending on your needs.
Method 1: Use the Wix Document Viewer
Wix has a built-in document viewer element:
- Open the Wix Editor
- Click Add Elements (+) in the left panel
- Go to Embed & Social > Popular Embeds > Document Viewer
- Drag the viewer onto your page
- Click the element, then Change Document to upload your PDF
- Resize and position as needed
This is the easiest method and works well for most use cases.
Method 2: Use an HTML Iframe
For more control over the viewer, use an HTML embed:
- Click Add Elements > Embed & Social > Custom Embeds > Embed a Widget
- Click Enter Code and paste:
<iframe src="YOUR_PDF_URL" width="100%" height="600" style="border: none;"></iframe>
- Replace
YOUR_PDF_URLwith a direct link to your PDF
You can get a hosted PDF link by uploading to Linkyhost — just drag and drop your file and copy the URL.
Method 3: Add a Download Button
If embedding is not necessary, add a button that links directly to the PDF:
- Add a Button element to your page
- Set the link to your PDF URL
- Visitors can view or download on click
Which Method Should You Use?
| Method | Best For |
|---|---|
| Document Viewer | Simple embedding, no code |
| HTML Iframe | Custom sizing and external PDFs |
| Download Button | Quick access without inline viewing |
Tips
- Keep PDFs under 10 MB for the built-in viewer
- For externally hosted PDFs, use a service like Linkyhost's PDF link generator to get a stable, fast-loading URL
- Test on both desktop and mobile after publishing