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. Embedding a PDF is a practical choice for many Wix site owners: restaurants embed menus so diners can browse before visiting, freelancers and agencies display portfolio pieces inline, real estate agents show property brochures, and businesses publish downloadable catalogs or pricing sheets. Rather than linking visitors to an external page, an embedded PDF keeps the content on your site where visitors are already browsing.
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. The Document Viewer handles page navigation automatically and gives visitors a familiar reading interface.
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. The iframe approach gives you full control over dimensions, styling, and which viewer renders the PDF.
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
This is the fastest method to set up and works well when visitors only need to grab a copy of the document rather than read it on the page.
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
Common Mistakes to Avoid
Using the Document Viewer for very large PDFs. Wix's built-in Document Viewer works best for files under 10 MB. For larger files, host the PDF externally on Linkyhost and use an HTML iframe embed instead. This loads faster and avoids Wix's file size limitations.
Not resizing the embed for mobile. Wix's editor lets you set different sizes for desktop and mobile views. Always switch to mobile view in the editor and adjust the embed dimensions. A viewer that looks great on desktop may be unreadable on a phone if not resized.
Embedding too many PDFs on one page. Each embedded PDF loads separately, which slows down the page. If you need to share multiple documents, create a single page with download links or buttons instead of embedding all documents inline.
Forgetting to make the PDF link public. If you host the PDF on Google Drive or another cloud service, make sure the sharing settings allow public access. A private link will not load in the iframe.
Not adding a fallback download link. Some visitors may have browsers that do not render iframes well. Always include a text link or button that opens the PDF directly. This ensures every visitor can access the content.
Wix PDF Embedding Comparison
| Method | Setup Difficulty | File Size Limit | Mobile Support | Customization |
|---|---|---|---|---|
| Wix Document Viewer | Easy | ~10 MB | Automatic | Limited |
| HTML Iframe (external host) | Moderate | No limit | Manual resize | Full |
| Download Button | Easy | No limit | N/A | Full |
Tips for Better PDF Embeds on Wix
- Optimize your PDF before uploading. Use a PDF compressor to reduce file size without losing visual quality. Smaller files load faster in the embed.
- Set a meaningful default page. If your PDF has many pages, make sure the first page is the most relevant content. Visitors may not scroll further.
- Use a consistent embed size across your site. If you embed PDFs on multiple pages, use the same dimensions for a cohesive look.
- Add a descriptive title above the embed. Tell visitors what the document contains before they start scrolling through it.
Frequently Asked Questions
Can I track who views the embedded PDF on my Wix site?
Wix Analytics tracks page views, but it does not track interactions within embedded elements. To track PDF views specifically, host the PDF on Linkyhost and use link tracking. This shows you how many people viewed the document and when, independent of your Wix analytics.
Does the Wix Document Viewer work on all Wix plans?
Yes. The Document Viewer element is available on all Wix plans, including the free tier. HTML iframe embeds also work on all plans. There are no plan restrictions for embedding documents.
Can I embed a PDF from Google Drive on my Wix site?
Yes. Upload your PDF to Google Drive, set sharing to "Anyone with the link," copy the file ID from the URL, and use this iframe code: <iframe src="https://drive.google.com/file/d/FILE_ID/preview" width="100%" height="600"></iframe>. Replace FILE_ID with your actual file ID. However, Google Drive embeds can be slow and sometimes show Google's interface elements. For a cleaner viewer, use Linkyhost to host the PDF instead.
Can I embed a PDF on a Wix blog post?
Yes. Wix blog posts support embedded elements. In the Wix Blog editor, add an HTML embed block and paste the same iframe code you would use on a regular page. The PDF will appear inline within the blog post content. This is useful for posts that reference reports, whitepapers, or supplementary documents that readers may want to browse without leaving the article.
Does embedding PDFs affect my Wix site speed?
Each embedded PDF adds to your page load time because the browser must fetch and render the document separately from the rest of the page. A single well-optimized PDF (under 5 MB) has minimal impact. Multiple embeds on the same page, or large uncompressed files, will slow things down noticeably. To keep your site fast, compress PDFs with a PDF compressor before embedding, limit embeds to one or two per page, and use download buttons for any additional documents.