How to compress a PDF offline without uploading it (and reduce its size without ruining the quality)
To compress a PDF offline, use a tool that runs on your own computer: on a Mac, open the file in Preview and choose File > Export with the Quartz filter Reduce File Size; on Windows, Linux or Mac, run the free Ghostscript command gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o smaller.pdf original.pdf. Both shrink the images inside the PDF, which is where almost all the weight is, and neither sends the file anywhere.
How much you gain depends on what the PDF contains. A scanned contract or a brochure full of photos can lose most of its size. A 40-page report that is mostly text may barely change, because there is nothing heavy to remove. This guide explains why, walks through every free method step by step, and shows when an online compressor is fine and when it is better to keep the file on your machine.
What PDF compression actually does
A PDF is a container. Inside it there are text and the fonts to draw it, vector graphics (lines, charts, logos), images, and a lot of structural data. Compression tools work on three of those things:
- Images. This is the big one. The tool downsamples them (fewer pixels, for example from 300 dpi to 150 dpi) and re-encodes them, usually as JPEG. Adobe describes its own image settings as reducing file size "by downsampling and compressing images".
- Fonts. A PDF can embed whole fonts or only the characters actually used, which is called subsetting. Subsetting a font that was embedded in full saves space. Ghostscript subsets fonts by default in all its presets.
- Unused or extra objects. Embedded thumbnails, search indexes, duplicate resources, comments, leftover data from earlier edits. Acrobat's Optimized PDF dialog has panels called Discard Objects, Discard User Data and Clean Up for exactly this.
Fonts and objects usually give small savings. Images give large ones, and they are also the only part where quality can suffer.
Why a text PDF barely shrinks and a scan shrinks a lot
Text in a PDF is stored as characters, plus the font needed to draw them. A page of text weighs a few kilobytes. A long financial report is big because it has many pages, not because each page is heavy, so there is very little to squeeze.
A scan is the opposite. Every page is a photograph of a sheet of paper, often taken at 300 dpi or more, in full colour. That is far more detail than you need to read it on screen or print it on an office printer, and downsampling plus JPEG re-encoding removes most of those bytes.
Our own measurement shows the same split. We ran the LocalPDF compression settings on 26 real PDFs in September 2026 (documents, scans, CVs, manuals, posters, bank statements, ebooks, reports):
| Type of PDF | Saving | Files |
|---|---|---|
| Scans, photos, posters, graphic CVs | 61-89% | 7 of 26 |
| Mixed documents | 12-39% | 8 of 26 |
| Text documents with few images | 1-8% | 10 of 26 |
| Password protected, not processed | none | 1 of 26 |
The median saving per file was 16%, and 23% on the total size. The measurement used the same settings with an image library outside the browser, so read it as an order of magnitude, not as a promise for your file. If a site tells you it will cut any PDF by 70%, it is talking about scans.
Can you reduce PDF size without losing quality?
Partly. Removing unused objects and subsetting fonts is lossless, but it rarely saves much. Real savings come from images, and downsampling or JPEG re-encoding always throws some detail away. Apple says it plainly on its own help page: "When compressed, the PDF may be of lower quality than the original."
What you can control is whether the loss is visible. Three rules help:
- Text should stay text. Good compression never turns text into an image, so it stays sharp at any zoom and remains selectable and searchable.
- Pick the resolution for the use. About 150 dpi is comfortable for reading on screen and for email. For printing, keep 300 dpi.
- Compress the original, once. Compressing an already compressed file again adds new JPEG artefacts on top of the old ones. Keep the original and always export to a new file name.
Compress a PDF on Mac with Preview (free, built in)
Preview is already on every Mac and works offline. Apple documents the steps on its page Reduce the size of a PDF in Preview on Mac.
- Open the PDF in Preview.
- Choose File > Export.
- In the Quartz Filter pop-up menu, choose Reduce File Size.
- Type a new name in the Export As field so you keep the original.
- Click Save.
Depending on your macOS version, the same Export dialog also shows checkboxes: Optimize images for screen, Save images as JPEG and Create Linearized PDF (the last one makes the file open faster in web browsers, it does not make it much smaller). Apple's page for current macOS versions lists all three.
On the Mac we used to write this guide (macOS 27.0.1, October 2026), the Reduce File Size filter re-encodes images as JPEG at quality 0.7, at a resolution of 144, with images capped at 2400 pixels. Older versions of macOS had harsher settings, and the filter has a long reputation for blurry pictures. Open the exported file, zoom into a photo or a signature, and compare it with the original before you send it.
Advanced users can build a custom filter in ColorSync Utility: click Filters in the toolbar, duplicate a locked filter with the Duplicate button and edit the copy, or add a new one and choose Add Image Effects Component to set size and compression. Apple describes this on its page Add or modify Quartz filters.
Compress a PDF with Ghostscript (free, Windows, Mac, Linux)
Ghostscript is a free, open source PDF and PostScript engine, available under the AGPL licence. It has no window, you use it from the terminal, and it gives the most control of the free tools.
Install it from the official download page on Windows or Linux, or with Homebrew on a Mac:
brew install ghostscript
Then, in the folder that holds your file, run:
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o smaller.pdf original.pdf
On Windows the program is called gswin64c (or gswin32c on 32-bit systems), so the command becomes:
gswin64c -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o smaller.pdf original.pdf
The -o option sets the output file and also turns on batch mode, so Ghostscript exits when it has finished. The important part is the preset after -dPDFSETTINGS. According to the Ghostscript documentation:
| Preset | Colour and grey images | Black and white images | Use it for |
|---|---|---|---|
/screen |
72 dpi | 300 dpi | smallest file, screen only |
/ebook |
150 dpi | 300 dpi | email, reading on screen |
/printer |
300 dpi | 1200 dpi | office printing |
/prepress |
300 dpi | 1200 dpi | professional print |
Two details matter. Ghostscript only downsamples an image when its resolution is more than 1.5 times the target, so a 200 dpi scan is left alone by /ebook. And /printer and /prepress do not downsample colour images at all, so on a scan they may save little.
Start with /ebook. If the file is still too big for your purpose and you only need to read it on screen, try /screen and look carefully at small print. Ghostscript rebuilds the whole PDF, so check that links and form fields still work, compare the two sizes, and keep whichever file serves you better.
Make the PDF smaller when you create it: Word and Office
If you still have the original Word, Excel or PowerPoint file, the best compression is to export a lighter PDF in the first place. Microsoft explains the options on its page Save or convert to PDF or XPS in Office desktop apps.
- In Word on Windows, choose File > Save As (or Save a Copy) and pick the folder.
- Choose PDF as the file type. In the newer save screen, click More options to reach the classic dialog.
- Select Minimum size (publishing online) instead of Standard (publishing online and printing).
- Click Save.
Microsoft's own advice is to pick Minimum size when file size matters more than print quality. This only works for documents you create: it does nothing for a PDF someone sent you.
Adobe Acrobat: Reduced Size PDF and Optimized PDF (paid)
If you already pay for Acrobat, it has two compression commands. Adobe documents them on its page Reduce PDF file size (updated 16 October 2026):
- Quick: on Windows choose Menu > Save as Other > Reduced Size PDF, on Mac File > Save as Other > Reduced Size PDF. Pick a version in Make compatible with, click OK, then Save. Apply to Multiple Files processes a batch with the same settings.
- Advanced: Save as Other > Optimized PDF opens a dialog with panels for Images, Fonts, Transparency, Discard Objects, Discard User Data and Clean Up. Adobe documents it as an Acrobat Pro feature.
Acrobat is the most complete option and works offline, but it is not free, and buying it only to shrink a file now and then is hard to justify.
Free Windows desktop option: PDF24 Creator
Windows has no built-in PDF compressor. The free program PDF24 Creator fills the gap: according to its own page (October 2026) it includes a PDF compression tool, works without an internet connection, keeps files on your computer and is free without restrictions. It installs only on Windows. It does much more than compression, so it is a good choice if you handle PDFs every day.
Online compressors: quick, but the file is uploaded
iLovePDF, Smallpdf and Adobe's free online tool all compress in a few seconds, and for a flyer or a public document they are a sensible choice. According to their own pages in October 2026, iLovePDF offers three levels (Extreme, Recommended, Less compression), Smallpdf offers Basic for free with Moderate and Strong reserved for Pro and says it deletes files after one hour, and Adobe's online tool offers High, Medium and Low and says the file is deleted from its servers unless you sign in.
The trade-off is simple: to compress the file, they need to receive it. For a payslip, a medical report, a contract or a scan of your ID card, you may prefer that the file never leaves your computer, or your employer may require it. We look at what each service says it does with uploaded files in our guide on whether online PDF tools are safe.
LocalPDF: compression in the browser, without uploading
LocalPDF is a browser extension made by us, Osabee, the publisher of this guide. It works in Chrome and Edge on Windows, macOS, Linux and ChromeOS, and it is useful when you want compression without installing a desktop program and without sending the file to a website.
When you click its icon, LocalPDF opens as a full page in a browser tab. You drag the PDF in, choose Compress, and the result is saved through the browser's normal download. The PDF libraries are packaged inside the extension, so the work makes no network request at all: the file is opened, changed and saved on your computer.
What it does to your file, exactly:
- images are re-encoded as JPEG at quality 0.75 and scaled so the long side is at most 1600 pixels, which still prints at about 200 dpi on A4;
- text stays real text, selectable and searchable;
- images with transparency are left untouched, because JPEG has no transparency and a transparent logo would turn into a black box.
The part we care about most: if the saving would be under 5%, LocalPDF tells you the PDF is already as small as it gets, saves nothing and does not count the run. A text report will often get that message, and that is the honest answer. LocalPDF cannot open password-protected PDFs: it asks you to save a copy without the password in your PDF reader and try again.
Pricing is simple. Merge, Split and JPG to PDF are free and unlimited. Compress and Organise pages share 5 free runs in total (they do not renew each month); after that, a one-time licence of $14.99 / €12.99 / £10.99 unlocks unlimited compression and page editing on up to 3 devices, with no subscription. LocalPDF is not on the Chrome Web Store or Edge Add-ons yet: the LocalPDF page says when it is available.
If you also need to combine files before sending them, see our guide to merging PDFs without uploading them. If one page is the problem, a heavy photo appendix for instance, it can be smarter to split the PDF and send only the pages you need.
Make a PDF smaller for email
Both big free mailboxes set the same attachment limit. Google's help page says: "For personal Gmail accounts, the limit is 25 MB", and above that Gmail replaces the attachment with a Google Drive link. Microsoft's page on Outlook.com sending limits gives 25 MB for attachments too. Work accounts can have different limits set by your administrator.
A practical order of attack:
- Check what makes the file heavy. If it is a scan or full of photos, compression will help a lot. If it is mostly text, it will not, and you need another approach.
- Compress a copy with Preview, Ghostscript
/ebook, PDF24 Creator or LocalPDF, and aim comfortably below the limit. - If it is still too big, split it into two attachments, or remove the pages the recipient does not need.
- For very large files, share a link from your cloud storage instead of attaching the file.
Which method should you use?
| Situation | Best free choice |
|---|---|
| Mac, occasional use | Preview, File > Export, Reduce File Size |
| Any OS, maximum control | Ghostscript with /ebook or /screen |
| You still have the Word file | Save as PDF with Minimum size |
| Windows, many PDFs every week | PDF24 Creator |
| Public document, no privacy concern | an online compressor |
| Sensitive file, no install, any desktop OS | LocalPDF in Chrome or Edge |
Frequently asked questions
How can I compress a PDF without losing quality?
A PDF can be compressed without visible quality loss by keeping text as real text and reducing only oversized images to a sensible resolution, about 150 dpi for screen and email or 300 dpi for print. Fully lossless compression, such as removing unused objects and subsetting fonts, exists but usually saves little. Always compress the original once, export to a new file name and compare both versions at high zoom.
How do I compress a PDF offline for free?
On a Mac, open the PDF in Preview, choose File > Export and pick Reduce File Size in the Quartz Filter menu. On Windows, Mac or Linux, the free Ghostscript command gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o smaller.pdf original.pdf compresses a PDF without any internet connection. On Windows, the free PDF24 Creator program also compresses PDFs offline.
Why is my PDF still large after compressing it?
A PDF stays large after compression when its weight does not come from images. Text, fonts and vector graphics are already compact, so a long text report barely shrinks: in our test on 26 real PDFs, text documents with few images lost only 1-8%. Splitting the file or removing unneeded pages is often the only way to make such a PDF much smaller.
How do I make a PDF small enough to email?
To email a PDF, keep it under the attachment limit, which is 25 MB for personal Gmail accounts and for Outlook.com according to Google and Microsoft. Compress a copy with Preview, Ghostscript /ebook or another offline tool, and aim well below the limit. If the PDF is still too big, split it into parts or share it as a cloud link.
Does compressing a PDF reduce the quality?
Compressing a PDF reduces image quality to some degree, because downsampling and JPEG re-encoding discard detail; Apple warns that a compressed PDF may be of lower quality than the original. Text is not affected by good compression tools and stays sharp and searchable. The loss is usually invisible at 150 dpi on screen, but check photos, signatures and small print before sending.
What do the Ghostscript /screen, /ebook, /printer and /prepress settings mean?
The Ghostscript PDFSETTINGS presets set the target image resolution. According to the Ghostscript documentation, /screen downsamples colour and grey images to 72 dpi, /ebook to 150 dpi, while /printer and /prepress target 300 dpi and do not downsample colour images. For email and screen reading, /ebook is the usual starting point; /screen gives the smallest Ghostscript file.
Is it safe to compress a PDF online?
Compressing a PDF online means uploading the file to the service's servers. For public documents this is usually fine, and vendors such as Smallpdf and Adobe state on their pages that uploaded files are deleted after a while. For contracts, payslips, medical records or ID scans, an offline tool such as Preview, Ghostscript, PDF24 Creator or LocalPDF keeps the PDF on your own computer.