PDF size is often driven by embedded photographs, scanned pages, fonts, and duplicated resources. Compression can make a document easier to email or upload, but aggressive settings may blur small text and diagrams.
There is no single best method for every PDF. Start with the current default lossless optimization when text, vectors, links or forms matter. Compare optional raster compression only when an image-only result is acceptable, then inspect the downloaded document rather than judging it solely by a smaller byte count.
Why PDF file sizes differ
A text-first PDF can already be compact because letters are stored as font instructions. A scan stores every page as an image, so resolution and image quality dominate its size. Compressing an already optimized vector document can produce little improvement or even a larger file if pages are rasterized.
Before compression, note the original size and page count. This gives you a clear basis for judging whether the new file is genuinely better.
Choose the method before a raster preset
The Compression method control offers Lossless and Raster, with Lossless selected initially. Lossless uses QPDF to regenerate object streams and recompress compatible Flate streams without converting pages to pictures. It is the appropriate first comparison when you want to retain the source's document features.
Lossless is not byte-for-byte preservation. The file is rewritten, and already optimized PDFs may show little saving or become larger. It is also not a certification of digital signatures, PDF/A compliance or correct form behavior. Keep the original and independently verify any document-level requirement.
Raster re-renders every page as a JPEG image and puts it into a new PDF. This can reduce some scanned or image-heavy files, but it flattens selectable text, active links and form fields into page pixels. The method does not retain tagged document structure as equivalent accessible text.
- Lossless: try first when document structure and vector content matter.
- Raster Light: 1.7x rendering and 82% JPEG quality for the most detailed raster preset.
- Raster Recommended: 1.3x rendering and 65% JPEG quality as a starting comparison for suitable scans.
- Raster Strong: 1.0x rendering and 50% JPEG quality; inspect small text and thin lines closely.

Load the files and inspect the actual result scope
Choose the PDF files and check the queue's filenames and page counts. Multiple selections append to the queue, so remove an unintended item or clear the queue before processing. All queued files use the selected method and raster preset; a batch is not a promise that every document will shrink by the same amount.
Run Optimize for lossless or Compress for raster, then inspect the results. Each row reports its own Before and After sizes, page count and method. The summary combines the files, so an overall saving can conceal one file that grew. Prefer the useful result for each individual document.
Nothing downloads automatically from the batch action. Use a result row's Download button for an individual file, or Download compressed PDF for one result and Download all ZIP for multiple results. The current code checks page count after lossless processing; that check does not verify every page's appearance or every interactive feature.
Check quality after compression
Open the output and inspect the smallest text, signatures, QR codes, thin chart lines and photographs. Check every page for completeness instead of looking only at the cover. If a barcode or QR code matters, test the actual compressed version rather than assuming the source's scan result still applies.
For lossless output, try the text selection, search, links and forms you need and compare with the original. For raster output, expect the content to be pictures, not functional document text. Higher raster settings can preserve more visible detail, but cannot reconstruct detail missing from the source scan.
Record the method and preset beside each candidate. For example, if an illustrative 10 MB file becomes 8 MB, the reduction is (10 - 8) / 10 x 100 = 20%, using comparable byte units. That calculation is an example, not a measured result from a new test of this guide's screenshot.
When compression is not the answer
If only a few photographs make the PDF large, compress those source images before rebuilding the document. If unnecessary pages are present, delete them. If the recipient needs only selected pages, split the document instead of sending the entire file.
A smaller number is not automatically a better result. The useful output is the smallest file that remains clear, complete, and appropriate for its destination.
Keep originals and respect processing limits
If the output is larger, unchanged or harder to read, keep the original rather than assuming compression must be beneficial. Reducing source-image size, removing unnecessary pages or sending only the required pages can be better approaches. Verify the recipient's size limit and format requirements before choosing a copy.
Compression runs in the browser and does not post the PDF to a conversion service in this code path. Loading the site, PDF libraries or QPDF runtime can still use the network. Large batches and high-resolution pages consume memory, so a successful small sample does not establish unlimited capacity.
Address validation or processing errors before using an output, and retain authoritative originals. Compression does not redact private information, certify a signature or approve a document for regulated use. Where those requirements matter, use the appropriate verification process rather than a file-size comparison alone.
Try the related tools
Apply the steps from this guide directly in your browser.
Frequently asked questions
Why did my compressed PDF become larger?
An already optimized PDF may not shrink when its objects and streams are rewritten. In Raster mode, converting efficient text and vectors into page images can also add more data. Inspect the per-file result and keep the useful version.
Can compression make text blurry?
Raster mode can blur text because it changes render resolution and JPEG quality. Lossless does not rasterize pages. Choose the method first and inspect the actual output.
Should I delete the original after compression?
No. Keep the original as the quality master because lost detail and selectable text may not be recoverable from the compressed copy.
Does every compressed PDF lose selectable text?
No. The default Lossless method does not rasterize pages. Raster intentionally creates page images and flattens selectable text, links and forms. Verify the features required by your recipient.
