How to Compress PDF Without Losing Quality
A 30MB PDF is too large to email, slow to load on a web page, and wasteful to store. But compressing it with the wrong settings turns crisp text into a blurry mess and sharp images into pixel soup.
The good news is that most PDFs can be reduced by 50-80% with zero visible quality loss — if you use the right approach for the right type of file. This guide covers how.
Why PDFs Get So Large
Before compressing, it helps to understand what is making the file big:
- High-resolution images — A single 300 DPI photo embedded in a PDF can add 5-15MB. This is the most common cause of bloated PDFs.
- Embedded fonts — If the PDF includes full font files (not just subsets), each font can add 500KB-2MB.
- Metadata and editing layers — PDFs exported from InDesign, Illustrator, or Photoshop often contain hidden editing information.
- Scanned pages — Each scanned page is stored as a full raster image, typically 300-600KB per page.
- Duplicate resources — Poorly generated PDFs sometimes embed the same image or font multiple times.
Understanding the cause tells you which compression method will be most effective.
Compression Levels Explained
Most PDF compression tools offer multiple levels. Here is what they typically mean:
Low Compression (High Quality)
- Reduces file size by 10-30%
- Keeps images at or near original resolution (300 DPI)
- No visible difference from the original
- Use when: The PDF needs to be printed at high quality, or the recipient will zoom in on images
Medium Compression (Balanced)
- Reduces file size by 40-60%
- Downsamples images to 150-200 DPI
- Indistinguishable from the original on screen
- Use when: The PDF will be viewed on screen, shared via email, or posted on a website
High Compression (Smallest Size)
- Reduces file size by 60-80%
- Downsamples images to 72-100 DPI
- Images may look slightly soft when zoomed in, but text stays sharp
- Use when: File size is the priority and the document will only be viewed at normal zoom on screen
For most use cases, medium compression is the sweet spot. It produces a file that looks identical to the original on any screen while cutting the size in half or more.
Method 1: Browser-Based Compression (Fastest)
The quickest way to compress a PDF is with a browser tool that processes the file on your device:
- Go to pdfcrush.dev and select “Compress PDF”
- Drop your file or click to upload
- Choose your compression level
- Download the compressed result
The entire process happens in your browser using WebAssembly. The file is never uploaded to a server, which matters if the PDF contains anything confidential.
When to use this: Occasional compression of individual files, sensitive documents, quick one-off tasks.
Method 2: Remove Hidden Bloat
PDFs accumulate invisible weight that can be stripped without any impact on appearance:
- Metadata — Author name, revision history, software version, creation timestamps
- Embedded thumbnails — Small preview images stored inside the PDF
- Duplicate fonts — The same font included multiple times by buggy export tools
- JavaScript and form fields — Interactive elements you may not need
- ICC color profiles — Embedded color management data for print workflows
Stripping these elements typically reduces file size by 10-30% with zero change to how the document looks or prints.
Tools that handle this: Most online compressors do this automatically. For command-line use, qpdf --linearize or Ghostscript can strip these elements.
Method 3: Optimize Images Separately
If your PDF contains a few very large images, the most effective approach is to optimize the images before embedding them:
- Extract images from the PDF (many tools support this)
- Compress each image appropriately — JPEG at 80-85% quality for photos, PNG compression for graphics
- Rebuild the PDF with the optimized images
This is more effort but gives you maximum control over the quality-size trade-off for each individual image.
Method 4: Convert Scanned Documents with OCR
If your PDF came from a scanner, every page is a full-page raster image. A 20-page scanned document can easily reach 40-60MB.
Running OCR (Optical Character Recognition) converts those page images into actual text, which takes a fraction of the space:
- Before OCR: 20 pages at 2MB each = 40MB
- After OCR: Searchable text with compressed background images = 3-5MB
Tools for OCR:
- OCRmyPDF (free, command-line, excellent quality)
- Adobe Acrobat (paid, best OCR accuracy)
- Google Drive (upload PDF, open with Docs — free but loses formatting)
Bonus: After OCR, the text becomes searchable and selectable, which is useful beyond just file size.
Method 5: Re-Export from the Source
If you have access to the original document (Word, InDesign, Illustrator, etc.), re-exporting with the right settings often produces a much smaller file than compressing after the fact:
- From Word: File > Save As > PDF > “Minimum size (publishing online)”
- From InDesign: Export with “Smallest File Size” preset
- From Illustrator: Save as PDF with “Optimize for Fast Web View”
This avoids the compression-of-compression problem and gives the cleanest result.
What NOT to Do
- Do not compress an already-compressed PDF again. Running the same file through a compressor twice rarely helps and can degrade quality. If the first pass did not reduce the size enough, try a different method rather than repeating the same one.
- Do not use maximum JPEG compression on text-heavy documents. JPEG artifacts are especially visible around sharp text edges.
- Do not downsample below 72 DPI. Images become obviously pixelated.
- Do not upload sensitive documents to random online tools. Use a tool that processes locally if the content is confidential.
Quick Reference Table
| PDF Type | Best Method | Expected Reduction |
|---|---|---|
| Photos and graphics heavy | Medium compression (150 DPI) | 50-70% |
| Design tool export (InDesign, etc.) | Re-export with web settings | 40-60% |
| Scanned document | OCR + compression | 70-90% |
| Text-heavy with embedded fonts | Strip metadata + subset fonts | 15-35% |
| Already compressed | Usually not worth re-compressing | 0-5% |
Step-by-Step: The Practical Approach
For most people, this workflow handles 90% of cases:
- Try a compressor first. Drop the file into pdfcrush.dev with medium compression. Check the result.
- If still too large, check whether the PDF has scanned pages. Try selecting text in the document — if you cannot select it, the pages are scanned images.
- For scanned PDFs, run OCR first (OCRmyPDF is free), then compress the result.
- For design exports, go back to the source application and re-export with smaller settings.
- As a last resort, consider splitting the PDF into smaller parts and sharing them separately.
The goal is usually to get a file under 10MB for email (most providers cap attachments at 20-25MB) or under 5MB for web upload forms. Most PDFs can hit these targets without any visible quality loss.
Compress your PDF now — free, private, processes in your browser.
Try PDF Toolkit for free
Merge, split, and compress PDFs directly in your browser. No signup required.
Open PDF Toolkit