PDFApr 15, 2026 · Updated Oct 13, 2026 · 4 min read

How to Compress PDF Files Without Losing Quality (2026)

Large PDFs create real problems — email attachment limits, slow uploads, storage costs, and impatient recipients. How much a PDF shrinks depends on what is inside it: in our test a photo-heavy report lost 80–84% of its size, while a text-only file barely changed. This guide explains how compression works and how to choose the right balance between size and quality.

📦
Try the PDF Compressor
Free, no signup
→
DG
Derek Giordano
Designer & Developer
In this guide
01Two Ways to Compress a PDF02Worked Example: Both Methods on Two PDFs03Choosing Resolution and Quality04Compression Best Practices

Two Ways to Compress a PDF

A PDF holds text (as characters plus embedded fonts), vector drawings, embedded images and structure. Compressors take one of two routes:

Recompress the images, keep everything else. Desktop tools such as Ghostscript, qpdf-based scripts or Acrobat's Optimize PDF downsample the embedded photos to a target resolution and re-encode them, and can also subset fonts and pack objects more tightly. Text stays text — selectable, searchable and readable by screen readers — and links and form fields survive.

Render every page as an image. Browser-based compressors, including our PDF Compressor, usually draw each page to a canvas and save it as a JPEG, because that is what a browser can do reliably. It works very well on scans, which are images already, but the text becomes part of a picture and links and form fields are gone.

Worked Example: Both Methods on Two PDFs

We made two PDFs with LibreOffice 24.2: a 5-page text-only document and a short report with three landscape photographs from Wikimedia Commons. We then compressed each with an images-only script (pikepdf and Pillow: photos downsampled to 150 DPI at their printed size, JPEG quality 75, everything else untouched) and with our browser tool at its Balanced preset (108 DPI, JPEG quality 65). We counted extractable text characters with pdftotext (scripts and results in our test folder, October 13, 2026).

FileOriginalImages-only recompressionPages rendered as JPEG
Text-only, 5 pages39.2 KB, 42,553 text chars25.0 KB (−36%), all text kept2.0 MB (51× larger), no text
Report with 3 photos1.6 MB, 4,362 text chars265 KB (−84%), all text kept339 KB (−80%), no text

On the photo report both methods saved roughly 80%, but only the images-only route kept the text. On the text-only file there were no images to shrink, and rendering pages as pictures made it 51 times larger. That result led us to change our own tool: when rendering would produce a larger file, it now hands back your original unchanged and says why, and it warns whenever the PDF has a text layer that the compressed copy will lose.

Choosing Resolution and Quality

For on-screen reading, 150 DPI at the image's printed size is a sensible ceiling: a 6.5-inch-wide photo needs about 975 pixels across. For print, keep 300 DPI. JPEG quality around 70–80 is usually indistinguishable on screen for photographs; drop lower only for thumbnails. Text, line art and charts drawn as vectors need no resolution setting at all — which is exactly why rasterizing them is costly.

How much a PDF shrinks depends almost entirely on what is in it. Image-heavy files and scans shrink a lot; text-only files barely change and are usually small already.

Compression Best Practices

Always keep the original uncompressed file. Compression is a one-way operation — you cannot uncompress a PDF back to its original quality. Work from the original whenever you need to re-compress at different settings.

Compress after all edits are complete. Each compression cycle degrades image quality slightly. Editing a compressed PDF and re-compressing it compounds the quality loss.

Test the compressed file before sending. Open it, zoom to 100%, and check image quality, text sharpness, and that all pages rendered correctly. A 30-second review prevents embarrassing quality issues.

Frequently Asked Questions

How much can I compress a PDF?+
It depends on the content. In our test, a report with three photographs shrank by about 80–84% while a text-only file shrank by 36% with images-only recompression and grew 51-fold when its pages were rendered as images. Scans and photo-heavy PDFs compress the most.
Does compression affect text quality?+
Depends on the method. Tools that recompress only the embedded images leave text as text, so it stays sharp, selectable and searchable. Tools that render each page as an image (most browser-based compressors, including ours) turn the text into pixels: it can blur at low DPI and can no longer be selected, searched or read by a screen reader.
Can I compress a PDF multiple times?+
Technically yes, but each pass degrades image quality further with diminishing returns on file size. Compress once from the original at your desired level.
Why is my compressed file still large?+
The PDF may contain vector graphics or fonts rather than images. These compress minimally. The document may also already be optimized by its creator.
Try it yourself

Shrink scans and image-heavy PDFs in your browser — free, private, no signup.

⚡ Open PDF Compressor
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.