How to Compress PDF for Website Uploads
PDFs published on websites — annual reports, product catalogs, white papers, research publications, forms, and brochures — affect user experience in ways that are easy to overlook. A 25 MB annual report that takes 8 seconds to load on a 4G connection creates friction that sends users away before they read a word. A 15 MB product catalog as an email download link may bounce back if the recipient's email server has attachment limits. Web-published PDFs have a specific quality target that is different from print-ready documents: they need to look excellent on screen at standard zoom levels but do not need the 300 DPI resolution required for commercial printing. A PDF compressed to screen-appropriate resolution is visually indistinguishable from the full-resolution version when viewed on a monitor, but may be 80–90% smaller in file size. This guide covers how to compress PDFs for website publication, what targets to aim for, and how to handle different document types — from text-heavy reports to image-rich product catalogs.
How to Compress a PDF for Web Publication
The most effective way to compress a PDF for web publication is to use a tool that understands the difference between vector content (text, line art, charts) and raster content (photographs, illustrations). Vector content should be left untouched — it is already compact and resolution-independent. Raster content should be resampled to screen-appropriate resolution (72–96 DPI) from the print-quality resolution it was exported at (300 DPI+). LazyPDF uses Ghostscript for compression, which handles this distinction correctly. The 'screen' or 'ebook' preset in Ghostscript targets resolution levels appropriate for digital viewing while preserving vector content at full quality. For most web documents, medium compression in LazyPDF achieves the optimal web-ready balance.
- 1Export your document from InDesign, Word, or your design tool as a high-quality PDF first
- 2Upload the exported PDF to lazy-pdf.com/compress
- 3Select medium compression — this targets screen-optimized resolution for raster elements
- 4Download the compressed PDF, open it, and verify visual quality at 100% zoom before uploading to your website
Target File Sizes for Different Web PDF Types
Different document types have different appropriate file size targets for web publication. The guiding principle is that users on typical broadband or 4G connections should be able to open or download the PDF within 3–5 seconds — which means targeting under 5 MB for documents that will be opened directly in a browser, and under 10 MB for documents that will be downloaded. Annual reports and corporate publications: these are image-heavy prestige documents where visual quality matters. Target 3–8 MB for web publication. A 40-page annual report with full-bleed imagery that starts at 200 MB can be compressed to under 10 MB without noticeable quality loss on screen. Research papers and white papers are primarily text and rarely need to exceed 2 MB. Forms and application PDFs should be under 500 KB — they are functional documents where images are minimal. Product catalogs with many product photographs are the most challenging: each image should be individually optimized, targeting 100–150 KB per product image at screen resolution. A 200-product catalog should target under 15 MB.
- 1Annual reports: target 3–8 MB — compress aggressively while preserving image visual quality
- 2White papers and research: target under 2 MB — text-heavy content compresses very efficiently
- 3Product catalogs: target under 15 MB — each product image should be screen-resolution
- 4Forms and fillable PDFs: target under 500 KB — minimal imagery, primarily text and form fields
Optimizing PDFs for Website Speed and User Experience
File size is not the only factor in PDF loading speed. PDF linearization — also called 'fast web view' — allows a PDF to load page by page in the browser rather than requiring the entire file to download before any page is displayed. A 5 MB linearized PDF starts showing content within a second on broadband; a 5 MB non-linearized PDF shows a blank page for 2–3 seconds while the entire file downloads. Most professional PDF creation tools (InDesign, Acrobat) support linearization as an export option — look for 'Optimize for Fast Web View' or 'Linearize' in the export settings. LazyPDF's Ghostscript-based compression also produces linearized output, which means compressed PDFs are automatically optimized for browser viewing. For PDFs embedded in web pages via iframe or PDF.js viewers, ensuring the PDF is linearized significantly improves the perceived loading experience. Users see the first page immediately while subsequent pages load in the background — which matches the reading behavior for most web-published documents where users read page by page.
- 1Check your export settings for 'Optimize for Fast Web View' or linearization option
- 2After compressing with LazyPDF, verify the PDF opens quickly in Chrome (Chrome's PDF viewer loads linearized PDFs progressively)
- 3Upload the optimized PDF to your web server and test loading speed on a mobile device
- 4For critical publications: test loading time using a browser with network throttling set to 4G
CMS and Platform-Specific PDF Upload Considerations
Different website platforms have different file size limits and PDF handling behaviors. WordPress has no enforced file size limit at the PDF level but the PHP upload limit (typically 8–64 MB depending on server configuration) applies to all media uploads. Very large PDFs may fail to upload with a generic error if they exceed the PHP memory limit during processing. Shopify limits file uploads to 20 MB for digital product files and 10 MB for page attachments. Squarespace limits uploaded files to 10 MB per file. Wix limits file uploads to 200 MB but best practice is well under that for user experience. If your web platform's limits are causing compression challenges, split very long documents into smaller sections and provide a table of contents page that links to each section. For platforms with strict limits, compress aggressively to stay well within limits rather than targeting the limit exactly — a 9 MB PDF on a 10 MB platform is fine until the platform updates their limits or a future edit adds a few KB. Target 60–70% of the platform limit as a comfortable buffer.
Frequently Asked Questions
What is a good file size for a PDF on a website?
For text-heavy documents (reports, white papers, policies), under 2 MB is excellent and under 5 MB is acceptable. For image-heavy documents (catalogs, annual reports, brochures), under 5 MB is excellent, 5–10 MB is acceptable, and over 15 MB will cause noticeable delays on typical connections. The target is that a user on a standard broadband connection should be able to open or download the PDF within 3 seconds — which corresponds to roughly under 5 MB for inline browser viewing.
Will compressing a PDF for a website affect how it looks when printed?
Compressing to screen resolution (72–96 DPI) affects print quality — images that look excellent on screen will appear lower resolution when printed. If your website PDF is also intended to be printed by users (forms, documents for reference), use moderate compression that targets 150 DPI rather than aggressive screen-quality compression. Test by printing a compressed version at full size and comparing sharpness to the original. For documents that are informational only (annual reports, white papers), screen-quality compression is appropriate as most users read on screen.
How do I make a PDF load faster on a mobile website?
The most impactful steps are: compress the PDF to reduce file size, ensure it is linearized so pages load progressively, and consider using a PDF viewer JavaScript library (PDF.js) rather than relying on the mobile browser's built-in PDF handling. On mobile, consider providing an HTML version of the document content for mobile users and the PDF as a download option for users who specifically want the PDF format — many mobile users find in-browser PDF viewing awkward regardless of file size.