How to Compress PDF Files Without Losing Quality



You've got a PDF that's 47MB. Your email caps out at 25MB. The upload form on that government website maxes out at 10MB. Sound familiar?
Large PDF files are one of those small annoyances that waste a shocking amount of time. You just need to send the thing, but first you have to figure out how to shrink it without turning your crisp document into a pixelated mess.
Good news: compressing PDFs without losing visible quality is absolutely doable. You just need to understand what's making your file so large in the first place, and pick the right approach.
Why Are PDF Files So Large?
Before you start compressing, it helps to know what's eating up all that space. PDF files get bloated for a few common reasons:
Embedded images. This is the #1 culprit. If someone scanned a document at 600 DPI, or pasted in uncompressed screenshots, each image can be several megabytes. A 20-page report with high-res photos can easily hit 50MB+.
Embedded fonts. PDFs often embed entire font files to ensure the document looks the same on every device. If your document uses multiple fonts (especially decorative ones), this adds up.
Layers and metadata. Documents exported from design tools like InDesign or Illustrator can contain hidden layers, editing metadata, and vector paths that inflate file size.
Redundant objects. PDFs that have been edited multiple times can accumulate duplicate objects — the digital equivalent of saving over a file without cleaning up the old data.
Method 1: Compress Online (Fastest)
The quickest way to shrink a PDF is to use a browser-based compression tool. No software to install, no settings to fiddle with.
Here's the general process:
- Open a PDF compression tool in your browser
- Upload your file (or drag and drop)
- Choose a compression level if the option is available
- Download the compressed version
Most online tools use smart compression algorithms that analyze your PDF and apply different techniques to different elements — downsampling high-res images, removing duplicate objects, and stripping unnecessary metadata.
What to look for in an online compressor:
- No file size limits (or generous ones)
- Option to choose compression level
- Files processed in-browser or deleted quickly from servers
- No mandatory signup or watermarks
Try OnlyDocs' free PDF tools → — edit, merge, sign, and manage PDFs right in your browser with no signup required.
Method 2: Use Preview on Mac
If you're on a Mac, you've already got a decent PDF compressor built in.
- Open your PDF in Preview (the default PDF viewer)
- Go to File → Export
- In the "Quartz Filter" dropdown, select Reduce File Size
- Save
The catch: Apple's default "Reduce File Size" filter is pretty aggressive. It can noticeably degrade image quality. For documents that are mostly text, it works great. For anything with photos or graphics, you might want to try one of the other methods.
Pro tip: You can create custom Quartz filters with specific DPI and quality settings using the ColorSync Utility (in Applications → Utilities). It takes a bit of setup but gives you much finer control.
Method 3: Re-Export from the Source
If you created the PDF yourself, the best compression happens before the PDF exists.
From Microsoft Word or Google Docs:
- Go to File → Save As / Download As PDF
- Look for options like "Minimum size" or "Optimize for web"
- In Word specifically: File → Save As → PDF → "Minimum size (publishing online)"
From Adobe InDesign or Illustrator:
- Use File → Export → Adobe PDF
- Choose the "Smallest File Size" preset
- Under Compression, set image quality to Medium and resolution to 150 DPI (this is plenty for screen viewing)
From any app with Print dialog:
- Use "Print to PDF" and look for quality/size options in the PDF settings
Re-exporting from the source is almost always better than compressing after the fact, because you're controlling the quality at the point of creation rather than trying to squeeze an already-rendered file.
Method 4: Optimize Images Before Adding Them
This is the preventive medicine approach. If images are what's making your PDF huge (and they usually are), optimize them before they go into the document.
Rules of thumb for PDF images:
- For screen viewing (email, web): 150 DPI is more than enough. 72 DPI is fine for most cases.
- For printing: 300 DPI is the standard. Don't go higher unless you're doing large-format printing.
- Format matters: JPEG for photos, PNG for screenshots/graphics with text. Avoid uncompressed TIFF or BMP.
- Resize first: If your image is 4000×3000 pixels but it's displayed at 800×600 in the document, resize it to 800×600 before inserting it. You're carrying 20x more data than needed.
Tools like Squoosh (free, by Google) let you compress images with a live quality preview so you can find the sweet spot between file size and visual quality.
Method 5: Ghostscript (Command Line)
For the technically inclined, Ghostscript is a free, open-source tool that gives you precise control over PDF compression. It's available on Windows, Mac, and Linux.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/ebook \
-dNOPAUSE -dQUIET -dBATCH \
-sOutputFile=compressed.pdf input.pdf
The -dPDFSETTINGS flag controls the compression level:
| Setting | DPI | Best For |
|---|---|---|
/screen |
72 | Smallest size, screen viewing only |
/ebook |
150 | Good balance of size and quality |
/printer |
300 | High quality for printing |
/prepress |
300+ | Maximum quality, minimal compression |
For most people, /ebook hits the sweet spot — files typically shrink by 60-80% with minimal visible quality loss.
How Much Compression Should You Expect?
Real-world results vary wildly depending on what's in your PDF:
- Scanned documents (image-heavy): Often compress by 70-90%. These have the most room for improvement because the scanned images are usually stored at unnecessarily high quality.
- Text-heavy reports with a few images: Typically 30-60% reduction. The text itself is already compact; the savings come from image optimization.
- Already-optimized PDFs: Maybe 5-15%. If the PDF was exported with "web optimized" settings, there's not much fat left to trim.
- Vector-heavy design files: 20-40%. Depends on complexity of the vector paths and whether metadata can be stripped.
Quality Checklist: What to Verify After Compressing
After compressing, always do a quick check:
- Zoom to 100% and scan through the document. Do images look acceptable?
- Check text clarity. Compression should never affect text sharpness. If text looks fuzzy, something went wrong.
- Verify links still work. Some aggressive compression tools can break hyperlinks.
- Check form fields. If your PDF has fillable forms, make sure they still function.
- Compare file sizes. If you only saved 5%, it probably wasn't worth it and you should keep the original.
Common Mistakes to Avoid
Compressing multiple times. Each round of compression degrades quality further (especially for images). Compress once from the best source you have.
Using screenshots instead of exports. Taking a screenshot of a document and saving it as a PDF gives you the worst of both worlds — large file, terrible quality. Always export or print to PDF.
Ignoring the source. If you have access to the original document (Word file, InDesign project, etc.), always re-export rather than compressing the PDF. You'll get better results every time.
Over-compressing for print. If the PDF is going to be printed, don't compress below 200 DPI. It'll look fine on screen but muddy on paper.
Compress Your PDFs the Easy Way
Dealing with oversized PDFs shouldn't require a computer science degree. Whether you're emailing contracts, uploading applications, or sharing reports, the right tool makes it a 30-second task.
OnlyDocs gives you a full suite of free PDF tools — edit, merge, sign, compress, and more — right in your browser. No signup, no watermarks, no file size games. Just upload and go.
✏️ Try OnlyDocs Free — Edit, sign, and merge PDFs right in your browser. No signup required.
Open Editor →