A PDF that refuses to attach to an email or upload to a form is almost always carrying images far bigger than the page needs. The fix takes minutes, and you do not need paid software: a free online compressor handles most files, and the other four methods below cover the rest.
The short answer is to match the method to the file. A scanned document shrinks most when you compress its images. A report full of photos shrinks most with a compressor's quality setting. And if the file must land under a hard limit like 100 KB, only a command-line tool gives you that much control. The table below picks the method for you.
The 5 Methods at a Glance
| Method | Best for | Typical reduction | Cost |
|---|---|---|---|
| Online PDF compressor | One-off files, any computer | 50–85% | Free |
| Preview on a Mac | Mac users, no install | 30–50% | Free |
| Compress the images inside | Photo-heavy or scanned PDFs | 60–90% | Free |
| Cut what the file doesn't need | Bloated exports, extra pages | 10–40% | Free |
| Ghostscript (command line) | Batch jobs, exact size targets | 50–90% | Free |
Start with method 1. It solves the problem for most people in under a minute, and the result tells you whether you need the stronger methods at all.
Method 1: Use an Online PDF Compressor
An online compressor is the fastest route because there is nothing to install and nothing to learn. You upload the file, pick a compression level, and download the smaller version. FrostRank's free PDF Compressor runs entirely in your browser, so the file never leaves your computer — which matters when the document is a contract, a medical form, or anything else you would not email to a stranger.
Pick the level by what the file is for. The lightest level is right when the PDF will be printed or read closely. The middle level suits email attachments and uploads. The strongest level is for files that only need to be readable on screen.
In our test of the tool, a 1.93 MB example file came out at 1.47 MB on the lightest level, 598 KB in the middle, and 239 KB on the strongest — the same file, three very different sizes. That spread is the point: compression is a trade-off between size and image quality, and the right level depends on the destination, not the file.
Method 2: Use Preview on a Mac
If you are on a Mac, the compressor is already installed. Open the PDF in Preview, choose File, then Export, and pick Reduce File Size from the Quartz Filter menu. Apple's own guide walks through the same steps, and warns that the resulting quality may vary — which is honest, because this filter has no strength setting.
Preview's filter works by resampling and re-compressing the images inside the file, so a scanned document shrinks a lot and a text-only document barely moves. Expect roughly 30 to 50 percent off a typical file. The export sheet also offers checkboxes to optimize images for screen and save images as JPEG, which can help further on image-heavy files.
The weakness is control: one fixed filter, no dial to turn. If the result looks too soft, or barely shrank at all, move on to method 3 or 5 instead of running the filter twice — re-compressing an already compressed file just adds damage.
Method 3: Shrink the Images Inside the PDF
Most oversized PDFs are oversized because of their images. A single phone photo dropped into a document can be 4,000 pixels wide; printed on an A4 page, it only needs about 1,200. Every extra pixel is weight the file carries for no visible benefit. That is why image compression beats every other method on photo-heavy files.
The practical way to do it is before the PDF exists: compress the images first, then build the PDF. Our guide to compressing JPG images covers the quality settings that keep photos looking sharp while cutting most of their size. If the PDF already exists, an online compressor with a quality setting does the same job in one pass — it is, in effect, compressing the images for you.
Watch for one trap: screenshots and scans saved as PNG. PNG is lossless, which is great for sharp text and terrible for file size. A full-page scan saved as PNG can be several megabytes; the same page as a JPEG at sensible quality is a few hundred kilobytes. Converting those images before they reach the PDF is often the single biggest win available.
Method 4: Cut What the File Doesn't Need
Not all PDF weight is images. Exported PDFs often carry embedded fonts for every typeface used, metadata from the software that made them, hidden layers, and pages nobody reads. How a PDF stores images and fonts explains the structure; the practical upshot is that a file can be fat even when its pages look simple.
Check the easy wins first. If the PDF has pages the recipient will never need — a cover sheet, an appendix, blank pages from a bad export — remove them and save a new copy. If the file was exported from design software, re-export it with font embedding limited to the characters actually used, and with layers flattened.
Also check for duplicates: a logo pasted as a full-resolution image on every page, or the same chart embedded twice. These are common in files assembled from several sources, and each duplicate costs the full size of the image every time it appears.
Method 5: Ghostscript on the Command Line
When you need an exact result — a file under 200 KB, or fifty files compressed the same way — Ghostscript is the tool. It is free, open source, and already installed on most Linux systems and Macs with Homebrew. The command below reprocesses a PDF with the "ebook" preset, which downsamples images to 150 dpi: a good balance for screen reading.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
The -dPDFSETTINGS value is the only part you need to choose. The presets run from smallest to largest file: /screen at 72 dpi for screen-only reading, /ebook at 150 dpi for general use, /printer at 300 dpi for printing, and /prepress for print production. UC Berkeley's guide to manipulating PDFs documents the same command and presets.
Two warnings apply. First, Ghostscript builds a new file rather than editing yours, so keep the original until you have checked the result. Second, it strips hyperlinks by default; add -dPrinted=false if the links matter. For batch work, wrap the command in a loop over a folder — the same settings, applied identically to every file.
How Small Should You Aim For?
The target depends on where the file is going. Gmail refuses attachments over 25 MB, as Google's attachment limits page confirms, and many mail servers cap out far lower. Job portals and government forms commonly cap uploads at 1 or 2 MB. Some application forms are stricter still, with limits of 100 KB or 200 KB per file.
Those hard limits are why the method matters. A 100 KB target on a scanned document usually needs Ghostscript's /screen preset or a compressor's strongest level, plus images converted to JPEG first. A 1 MB target is far easier: the middle level of any decent compressor gets most files there without visible damage.
Do not chase the smallest number for its own sake. A CV at 800 KB uploads everywhere and still prints cleanly; squeezing it to 90 KB only makes the photo look worse. Pick the limit your destination actually enforces, then stop when you reach it.
Best Free PDF Compressor: Which One to Use
Most free PDF compressors fall into two groups: tools that upload your file to a server, and tools that work in your browser. The results are similar; the difference is privacy. An upload-based tool — Smallpdf, iLovePDF, and similar services — sends your document to someone else's server, processes it there, and usually deletes it after an hour or so. That is fine for a public flyer and a bad idea for a contract.
A client-side compressor never uploads anything. FrostRank's PDF Compressor processes the file in your browser, so it works offline once loaded and nothing you compress ever leaves your machine. For sensitive documents, that is the deciding factor — not the compression ratio, which is comparable either way.
Our comparison of six JPG-to-PDF tools found the same split in that corner of the market: the free tools that ask for an upload are convenient, and the ones that work locally are the ones to use for anything private. Judge a compressor by three things: does it run locally, does it offer more than one strength, and does it tell you the before-and-after sizes. If it fails any of those, find another.
If Your PDF Started as a Scan
Scanned PDFs deserve a special note because they are the worst offenders: every page is a full-page image, often saved at high resolution in PNG. Before compressing, check how the scan was made. A 300 dpi colour scan of a text page is far heavier than it needs to be; 200 dpi greyscale is usually enough for text, and it can halve the file before compression even starts.
If you scan with a phone, use an app that exports compressed PDFs directly. Dociq, our free Android scanner app, scans documents and exports them as PDF, so a fresh scan starts small instead of needing to be shrunk afterwards. Get it on Google Play: Dociq: AI PDF Scanner & OCR. For scans you already have, the methods above still apply: a compressor's strongest level, or Ghostscript's /screen preset, will do the heavy lifting.
What Not to Do
Do not compress the same file twice. Each pass re-compresses images that are already compressed, so quality falls while the size barely moves. If the first pass did not reach your target, go back to the original and use a stronger setting — never compress the compressed copy.
Do not trust a tool that promises "100% lossless" compression on a photo-heavy PDF. Real lossless methods — removing metadata, cleaning unused objects — save a few percent at most. Any big saving on an image-heavy file comes from lossy image compression, and an honest tool says so.
And do not delete the original until you have opened the compressed file and checked it. Skim every page: look for blurry text, banding in photos, and missing content. Compression bugs are rare, but a corrupted export discovered after the original is gone is a much bigger problem than a large file.
Frequently Asked Questions
What is the best free PDF compressor?
For most people, a free online compressor that runs in the browser: upload the file, pick a level, download the result. FrostRank's PDF Compressor is free, works entirely client-side so the file never leaves your computer, and offers three levels. Upload-based tools can match it on size, but they send your file to a server.
How do I compress a PDF to 100KB?
Start with an online compressor on its strongest level, or use Ghostscript with the /screen preset, which downsamples images to 72 dpi. If the file is a scan, make sure the pages are JPEG-compressed rather than PNG first. A text-heavy PDF may still not reach 100 KB — in that case, split it or ask whether the limit is per file or per upload.
Does compressing a PDF reduce quality?
It can, but only in the images. Text and vector graphics survive compression untouched; photos and scans lose detail as the quality setting drops. The lightest level is visually identical for most files, the middle level is fine for screens, and the strongest level can look soft on close inspection. Always keep the original until you have checked the result.
Why is my PDF so large?
Usually oversized images. A phone photo at full resolution, a scan saved as PNG instead of JPEG, or the same logo embedded at full size on every page can each add megabytes. Embedded fonts, metadata, hidden layers, and extra pages add weight too, but images are the usual cause by a wide margin.
Is it safe to compress a PDF online?
It depends on the tool. A client-side compressor processes the file in your browser, so it never leaves your computer — that is the safest option for contracts, medical forms, and financial documents. Upload-based tools send the file to a server; check the service's privacy policy and delete the file from their servers afterwards if that option exists.
Can I reduce PDF size on my phone?
Yes. On iPhone or Android, open the PDF in a browser-based compressor — no app is needed — or use the Files app's built-in options where available. For scanned documents, a scanner app that exports compressed PDFs saves the step entirely: scan at a sensible resolution and let the app handle the compression.