If you’re asking how to add a PDF to WordPress, the short version is that WordPress treats a PDF like any other media file: you upload it to the Media Library, then either link to it or embed it on a page. The whole process takes under a minute once you know which block to use. What takes longer, and what most tutorials skip, is getting the file size, naming and tracking right so the PDF actually helps your site.
Below are the four ways to add PDF files in 2026, plus the hosting side of things: upload limits, load times and how Google handles your documents.
The short answer
In the Block Editor, click the + icon, search for the File block, upload your PDF, and WordPress creates a download link plus an optional inline preview. In the Classic Editor, use Add Media > Upload Files, then Insert into post. Both routes store the file in /wp-content/uploads/ and give you a permanent URL you can reuse anywhere.
Method 1: The File block (Block Editor)
This is the default method for any modern WordPress install, and it needs no plugin. The File block outputs a link and, for PDFs specifically, can render an inline viewer using the browser’s built-in reader.
- Open the post or page and click the black + button where you want the file to appear.
- Search for File and select the block.
- Click Upload to add a new PDF from your computer, or Media Library to pick one you’ve already uploaded.
- Edit the link text (WordPress uses the file title by default, so name it something like “2026 Pricing Guide” rather than “final_v3”).
- In the block sidebar, toggle Show inline embed if you want visitors to read the PDF on the page, and set the height in pixels.
- Turn on the Download button if you want an obvious call to action, then publish.
One detail worth changing: under block settings, set the link to open in a new tab. Visitors who click into a PDF and then hit the back button often lose their place, and that hurts your time on page.
Method 2: Classic Editor (Add Media)
Plenty of sites still run the Classic Editor, and the flow there hasn’t changed in years. Place your cursor where the link should go, then click Add Media above the toolbar.
- Switch to the Upload Files tab and drag the PDF file into the window, or click Select Files to browse.
- Fill in the Title field, because that text becomes the anchor text of your hyperlink.
- Set Link To as Media File so the link points at the PDF rather than an attachment page.
- Click Insert into post.
If you only want to link existing words to a document, highlight the text, click the link icon, and paste the PDF’s URL from the Media Library instead. That’s the cleanest option inside long-form articles.
Method 3: Embed a PDF without a plugin
The File block’s inline embed uses an <object> tag under the hood, which is why it works without extra code. If you need more control, add a Custom HTML block and paste an iframe pointing at the file URL, setting the width to 100% and a height around 700px.
A second no-plugin option is the Google Drive viewer. Upload the PDF to Drive, set sharing to anyone with the link, then use Drive’s Embed item code. It renders reliably on mobile, where native PDF previews are inconsistent, though you’re then dependent on a third-party service staying available.
For a closer look at this topic, see our guide: How to Upload a Font in WordPress: The 2026 Guide.
Method 4: PDF Embedder and other plugins
Plugins earn their place when you need a proper reading experience: page navigation, zoom controls, mobile-friendly rendering and download blocking. PDF Embedder is the best known, and usage is simple: install it, then paste a shortcode like [pdf-embedder url="https://yoursite.com/wp-content/uploads/2026/guide.pdf"] or use its block.
Alternatives worth a look include PDF Poster, Algori PDF Viewer and EmbedPress, which also handles Drive and Dropbox links. Keep in mind that every viewer plugin loads its own JavaScript library, often 100KB or more, so I’d only install one if the inline embed genuinely isn’t good enough. If you’re weighing building something custom instead, our take on whether AI tools can build a usable WordPress plugin is a useful reality check.
Adding a PDF in Elementor
Elementor has no dedicated PDF widget in the free version, so most people use one of two approaches. Drag in a Button widget and paste the PDF URL as the link, which gives you a clean download CTA. For an on-page reader, drop an HTML widget in and paste an iframe or the PDF Embedder shortcode via the Shortcode widget.
File size, upload limits and speed
WordPress supports PDF uploads out of the box, but your server sets the ceiling. Default limits run anywhere from 2MB on cheap shared plans to 128MB or more on managed platforms, and the value comes from PHP directives like upload_max_filesize and post_max_size. If you hit “exceeds the maximum upload size for this site”, the fix lives in your PHP configuration, not in WordPress itself.
Aim to keep customer-facing documents under 2MB, ideally closer to 500KB. A 15MB brochure will take several seconds to open on a mid-range phone, and it eats bandwidth every single time someone clicks. Compress before uploading: flatten unused layers, downsample images to 150dpi and strip embedded fonts you don’t need.
- Serve PDFs from a CDN so repeat downloads don’t hammer your origin server.
- Avoid uploading dozens of near-identical versions, since Media Library bloat also inflates your backups.
- Replace files rather than re-uploading, using a plugin like Enable Media Replace, so existing links never break.
Will Google index your PDF?
Yes. Google crawls and ranks PDF documents alongside HTML pages, as confirmed in Google’s list of indexable file types. That cuts both ways: a PDF can rank, but it usually converts worse than a real page because it has no navigation and no internal links.
My rule of thumb: if the content is meant to be read, publish it as a page. If it’s meant to be printed, filled in or filed (price lists, spec sheets, order forms, menus), a PDF is the right format. Setting a descriptive document title and a keyword-friendly filename helps either way.
Accessibility, gating and tracking
Scanned PDFs are images, so screen readers get nothing from them. Export from the source application with tags and reading order intact, following the guidance in the federal Section 508 PDF authoring rules, and add alternative text to charts.
If the document is a lead magnet or a paid download, you’ll want the file behind an email form or a payment step rather than sitting on a public URL. There are several lighter ways to sell digital files on WordPress without a full store. To see whether anyone actually opens what you publish, track outbound clicks in hosting-level analytics or a GA4 file download event.
Frequently Asked Questions
How do I embed a PDF in WordPress without a plugin?
Use the built-in File block and switch on “Show inline embed”, which renders the PDF in the browser’s native viewer at whatever pixel height you set. The other no-plugin route is a Custom HTML block containing an iframe that points to the file’s URL in /wp-content/uploads/.
How do I insert a PDF into a website?
Upload the file to your server or media library, copy its direct URL, then either hyperlink text to that URL or place it inside an iframe or object tag. The two-step pattern (upload, then reference) is the same in WordPress, Squarespace, Webflow or hand-coded HTML.
How do I display a PDF file on a WordPress page?
Add the File block, upload the document, enable the inline embed and set a height of roughly 700 to 900 pixels for a readable full-width view. For page controls, zoom and better mobile rendering, a viewer plugin such as PDF Embedder handles it more gracefully.
Does WordPress support PDF files?
Yes, PDF is one of the default allowed file types in every WordPress install, and since version 4.7 the Media Library also generates image thumbnails from the first page. The only common blocker is your server’s maximum upload size, which is typically 2MB to 128MB depending on the host.
Want PDFs that load fast for every visitor?
Big documents expose slow hosting quickly, especially on mobile connections. See how our managed WordPress hosting for businesses pairs LiteSpeed caching with a 35-location CDN, or start a 14-day trial and upload your first file today.