ToolSite
All posts

How to Reduce PDF File Size Without Losing Readability

Shrink PDF files for email, web uploads, and storage while keeping text sharp. Free browser-based PDF compressor works offline with no file upload needed.

By ToolSite6 min readguides

Why PDFs Get Bloated

A one-page invoice with text and a small logo should be about 50 KB. Instead, it is 2 MB. A 10-page report with a few charts is 20 MB. An email attachment gets rejected because the file is over the 25 MB limit.

PDF bloat has three main causes:

  1. Embedded high-resolution images: a 4000 × 3000 pixel photo embedded in a PDF but displayed at 400 × 300 pixels is 100 times larger than it needs to be. The full-resolution image is stored in the file even though you only see a small version of it.
  2. Embedded font files: PDFs can embed entire font files, not just the characters used. A document using three fonts might carry 1 MB or more of font data. If the document uses only a handful of characters from each font, 99% of that data is wasted.
  3. Redundant data and metadata: PDFs that have been edited and saved multiple times accumulate incremental changes, old object versions, and edit history. These leftovers increase file size without contributing anything visible.

Compression targets these three sources. Done right, a PDF can shrink by 50% to 80% while looking identical at normal viewing size.

How PDF Compression Works

The PDF Compressor reduces file size through three operations, all running locally in your browser:

  1. Image downsampling: embedded images are reduced to a reasonable resolution for screen viewing (typically 150 DPI). A 3000 × 2000 pixel photo becomes 1500 × 1000 pixels. That is one quarter of the pixels and roughly one quarter of the size contribution from that image.
  2. Image recompression: images stored in lossless formats or with low compression are re-encoded as JPEG at around quality 85. Lossless PNG images inside the PDF convert to lossy JPEG, which dramatically reduces their size with minimal visible difference on screen.
  3. Object cleanup: unused objects, duplicate data, incremental save history, and metadata bloat are stripped from the file. This is the digital equivalent of taking out the trash; it removes data that the PDF no longer references or needs.

Text and vector graphics (logos, diagrams, fonts) are not touched by image compression. They render at full sharpness regardless of the compression level.

Choosing a Compression Level

LevelImage QualityTypical ReductionBest For
LowNear-original20-30%Archival copies, documents you might print
MediumGood at screen size40-60%Email attachments, file sharing, most general use
HighAcceptable at screen size60-80%Web uploads, previews, documents where file size matters most

Medium compression is the right setting for most situations. Text stays crisp. Images look fine on a monitor. File size drops by roughly half. If the document contains critical photos or barcodes, test medium first, then drop to low if you notice quality issues.

What Stays Sharp

Text and vector graphics are resolution-independent. They are not affected by image compression at all. A PDF consisting mostly of text and simple vector logos compresses extremely well because there are few or no raster images to downsample.

Documents that compress the most:

  • Text-heavy reports with a few embedded photos.
  • Forms with vector fields and one logo.
  • Invoices with small embedded graphics.
  • Presentations exported as PDF with vector shapes.

Documents that compress the least:

  • Photo albums exported as PDF (every page is a high-res image).
  • Scanned documents (every page is an image; compression is just image recompression).

What to Check After Compression

Always open the compressed PDF and inspect it before deleting the original.

  • Photos at normal viewing size: at medium compression, embedded photos should look identical to the original. Zoom to 200% if you need to check for JPEG artifacts, but at normal size you should not see a difference.
  • Barcodes and QR codes: these are images. High compression can make them unreadable to a scanner. Test with your phone or scanner on the compressed version. If scanning fails, use low compression or avoid compressing pages with barcodes.
  • Text clarity: should be completely unaffected. If text looks soft or blurred after compression, the original PDF likely has text rendered as images rather than text objects. This is common with scanned documents. In that case, compression is degrading the image that contains the text. Use low compression and consider running OCR to add a searchable text layer.
  • Fine lines and small details: thin lines in diagrams may become slightly softer if they were part of a raster image. Vector lines are unaffected.

Before You Compress

  • Save the original: compression is lossy for images. Once you downsample and recompress, you cannot get the original resolution back. Keep the uncompressed PDF as your master copy.
  • Check current size: if the PDF is already under 500 KB, compression may not produce meaningful savings. The overhead of compression might even increase the file size for very small, well-optimized PDFs.
  • Test on a copy: compress a duplicate, compare with the original, then decide which to use.

Command-Line Alternative

Ghostscript compresses PDFs from the terminal with fine-grained control:

# Medium compression, good for screen viewing
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
   -dPDFSETTINGS=/ebook \
   -dNOPAUSE -dQUIET -dBATCH \
   -sOutputFile=compressed.pdf original.pdf

# Preset options (lowest to highest compression):
# /screen:    72 DPI, smallest, web-only
# /ebook:     150 DPI, good for screens
# /printer:   300 DPI, good for printing
# /prepress:  300 DPI, color preserved, largest

Install Ghostscript with sudo apt install ghostscript (Linux) or brew install ghostscript (macOS).

Recompressing a Previously Compressed PDF

Avoid compressing the same PDF multiple times. Each pass is lossy for images. Going from original to medium is fine. Going from medium to high on the same file compounds the quality loss. Always go back to the original if you need a different compression level.

Try it yourself: open the PDF Compressor. Upload a PDF that contains embedded images, such as a report with photos or screenshots. Apply medium compression. Download the result and note the file sizes of both the original and the compressed version. Open them side by side. At normal viewing size, images should be indistinguishable. Zoom in to 200% on a photo to see where compression artifacts appear if they matter for your use case. Try low and high compression on the same original to see how file size and quality trade off.

Related Reading