Hopp til hovedinnhold
All Posts
PDFcompressionguidetechnical

Complete Guide to PDF Compression: How It Works and When to Use It

Everything you need to know about PDF compression — the technical mechanics, compression techniques, when it helps (and when it doesn't), and how to get the best results.

FileMuncher TeamFebruary 17, 20268 min read

PDF compression is one of those topics that sounds simple — make the file smaller — but gets complicated fast when you start asking "how?" and "why doesn't this always work?"

This guide covers how PDF compression actually works at a technical level, what you can realistically expect in terms of size reduction, and when compression helps versus when you're better off doing something else.

What Makes a PDF File Large?

Before you can understand compression, you need to understand what's inside a PDF. A PDF file is not a single compressed blob — it's a structured container with multiple types of content, each of which contributes to file size differently.

Images

Images are almost always the biggest contributor to PDF file size. A single high-resolution photograph embedded in a PDF can be 5–15MB on its own. PDFs generated from scanned documents are effectively collections of images — every page is a rasterized JPEG or PNG.

Images inside PDFs can be stored in several formats:

  • JPEG (already compressed, lossy)
  • PNG (lossless compression)
  • JBIG2 (for black-and-white scanned text — very efficient)
  • DCTDecode (JPEG-based, most common)
  • Flate/Deflate (ZIP-like compression, used for lossless data)

When the images inside a PDF are already compressed (e.g., JPEG at 85% quality), re-compressing the PDF will yield minimal gains. When images are stored as raw bitmap data or lossless PNG, there's significant compression potential.

Fonts

Embedded fonts are often overlooked as a size contributor. A font file can be 50KB–500KB. PDFs that embed multiple fonts (especially CJK fonts like Chinese, Japanese, or Korean) can add several megabytes from fonts alone.

Modern PDF tools use font subsetting — only embedding the specific characters used in the document rather than the full font. This typically reduces font-related size by 80–95%.

Content Streams

The actual page content — text positions, vector graphics, drawing operations — is stored in content streams. These are usually already compressed using Deflate (ZIP). Their contribution to file size is typically small compared to images.

Metadata and Structure Overhead

Every PDF contains metadata (title, author, creation date, modification history), cross-reference tables for navigating the document, and structural overhead. For most documents, this is a few kilobytes — negligible.

How PDF Compression Works

PDF compression tools use one or more of these techniques:

Image Downsampling

High-resolution images are scaled down to a lower resolution. A 300 DPI image scaled to 150 DPI uses roughly 75% less storage. For documents that will only be viewed on screen (typically 96 DPI), images at 300 DPI are storing much more data than what's ever rendered.

Image Recompression

Images stored at high JPEG quality (e.g., 95%) are re-encoded at a lower quality (e.g., 70%). The JPEG format is lossy — each re-encoding introduces some quality loss — but modern recompression algorithms are good at minimizing visible degradation.

Font Subsetting

If fonts aren't already subsetted, the tool removes unused characters. This can dramatically reduce size in font-heavy documents.

Object Stream Compression

Individual PDF objects (pages, images, fonts) can be grouped into compressed object streams. This is a purely structural optimization — no quality loss, typically 5–15% size reduction on top of other techniques.

Removing Redundant Data

PDFs that have been edited multiple times can accumulate orphaned objects — old versions of modified content that are no longer referenced but still present in the file. Linearization and cleanup removes these dead objects.

Realistic Compression Expectations

Understanding what to expect helps avoid frustration. Here's a practical breakdown:

Source Document TypeTypical CompressionWhy
Scanned document (TIFF or raw images)60–85%Lossless images → JPEG recompression
Office doc printed to PDF (Word, PowerPoint)20–50%Some image compression, font optimization
PDF with embedded photos at high quality40–70%Image recompression is the main lever
Already-compressed PDF5–15%Little room left to compress
Text-only PDF (no images)5–20%Little image data to compress
PDF/A archival format10–30%Archival PDFs often store uncompressed data

The "Already Compressed" Problem

If you run a PDF through a compressor and get minimal reduction — or even a larger file — it usually means the original was already well-optimized. Re-encoding already-compressed JPEG images can occasionally increase size because the re-encoder can't beat the original encoding efficiency.

When to Compress a PDF (and When Not To)

Compress when:

  • Sharing via email: Most email providers have attachment limits (typically 25MB). A 30MB scanned contract may need to be under 10MB to send.
  • Uploading to a portal: Government forms, legal portals, and business systems often have upload limits.
  • Web delivery: PDFs embedded on websites or shared as links load faster when smaller.
  • Storage efficiency: If you're archiving thousands of PDFs, even 30% compression multiplies into significant storage savings.

Don't compress when:

  • Printing the document: High-resolution images matter for print quality. Compressing for print can result in blurry output.
  • Archiving for legal purposes: Some legal and regulatory archiving standards require uncompressed or lossless formats. Check requirements before compressing legal records.
  • The document will be further edited: If you or someone else will edit the PDF again, work with the original and only compress the final version.
  • OCR accuracy matters: Compressing a scanned document before OCR (optical character recognition) can reduce text recognition accuracy by degrading image quality.

Quality vs. Size Trade-offs

Every compression tool balances quality and file size along a spectrum. Here's how to think about the settings:

High Quality / Gentle Compression

  • JPEG quality: ~80–85%
  • Image downsampling: to 200 DPI or none
  • Result: 10–30% size reduction with imperceptible visual change
  • Best for: Documents with important visual content (photos, diagrams, color charts)

Balanced (Most Common)

  • JPEG quality: ~65–75%
  • Image downsampling: to 150 DPI
  • Result: 30–60% size reduction, minor quality degradation on close inspection
  • Best for: General document sharing, email attachments, web uploads

Maximum Compression

  • JPEG quality: ~40–60%
  • Image downsampling: to 96–120 DPI
  • Result: 50–80% size reduction, visible quality loss on photos and scanned docs
  • Best for: Text-heavy documents where images are secondary, or when file size is critical

Step-by-Step: Compressing a PDF with FileMuncher

FileMuncher's PDF compressor processes your PDF entirely in your browser — files never leave your device.

Step 1: Navigate to the PDF Compressor. No account required.

Step 2: Drop your PDF onto the upload area or click to browse. The file is read into browser memory.

Step 3: Choose your compression level:

  • High Quality — conservative compression, maximum visual fidelity
  • Medium — balanced reduction, recommended for most documents
  • Maximum Compression — aggressive compression for smallest possible file

Step 4: Click Compress. Processing happens locally. For typical documents (under 50MB), expect 2–10 seconds.

Step 5: Review the results — you'll see original size, compressed size, and percentage reduction. Click Download.

Troubleshooting: Why Didn't My PDF Compress Much?

If you're seeing less compression than expected:

The PDF is already compressed. Run the original through a PDF info tool and check image compression types. If they're DCTDecode (JPEG) at quality 80+, there's limited room to reduce further.

The PDF is mostly text. Text compresses to near its minimum size quickly. A 2MB text-only PDF may only compress to 1.5MB.

Images are very small. If images in the PDF are already low-resolution (96–150 DPI), downsampling has no effect.

The PDF contains PDF/A or PDF/X compliance metadata. Archival formats include extra data for standards compliance that compression tools preserve.

Frequently Asked Questions

Does compression permanently change my original PDF?

No — compression tools create a new file. Your original is untouched unless you overwrite it. Always keep the original for documents where quality is important.

Can I reverse compression after I've compressed a PDF?

No. Lossy compression (JPEG reencoding) discards data permanently. The compressed file is the smallest it can be, but the quality of the original is not recoverable from it.

Will compression remove my digital signatures?

Compression that rewrites the PDF structure can invalidate digital signatures, because digital signatures certify a specific byte sequence. If your PDF has digital signatures that need to remain valid, consult the tool's documentation or test with a non-critical copy first.

What's the difference between "compress" and "optimize" PDF tools?

These terms are often used interchangeably. Technically, compression focuses on reducing image data size, while optimization is a broader term that includes structural cleanup, font subsetting, and removing redundant data. Most tools labeled "compress" do both.

Is there a minimum PDF size below which compression stops helping?

For small PDFs (under 500KB), the overhead of the compression process may exceed the gains — especially for already-optimized files. Compression is most valuable for PDFs above 2MB.


Compress your PDF now — browser-based, private, free, with no file size limits imposed by upload servers.

Try it yourself — free

All FileMuncher tools run in your browser. No signup, no uploads, no file size limits.