How to use the Compress PDF
- 1Choose a PDF file.
- 2Pick a preset or set image quality and resolution (DPI).
- 3Click Compress and wait while each page is rendered.
- 4Compare sizes and download the result if it is smaller.
What does Compress PDF do?
Compress PDF makes a PDF file smaller by redrawing each page as a JPEG image at a resolution and quality you choose, then saving those images as a new PDF. It works in your browser, so the document is never uploaded. You see the size before and after and only download the result if it is actually smaller.
There is an important trade-off, stated plainly: after compression, text is no longer selectable, searchable or copyable, because every page becomes a picture. This method suits scanned documents and photo-heavy files that must fit an email or upload limit. It does not suit contracts you need to search or forms you need to fill in.
How does this PDF compression work?
Professional desktop tools shrink PDFs by optimising the objects inside them: recompressing images, removing duplicate fonts, stripping metadata. Doing that reliably needs large native libraries. This tool uses a simpler, fully in-browser method:
- PDF.js (Mozilla, Apache-2.0) draws each page on a canvas at your chosen DPI. At 72 DPI, one PDF point becomes one pixel; at 144 DPI, a page is drawn twice as wide and twice as tall.
- The canvas is saved as a JPEG at your chosen quality.
- pdf-lib builds a new PDF with one page per image, at the original page size.
The size of the result depends mostly on resolution and quality. An A4 page is 8.27 × 11.69 inches, so at 120 DPI it becomes about 992 × 1403 pixels; at 200 DPI, about 1654 × 2338 pixels, nearly three times as many.
| Preset | DPI | JPEG quality | Good for |
|---|---|---|---|
| Smallest | 96 | 0.50 | Email and web forms with tight limits |
| Balanced | 120 | 0.65 | Reading on screen |
| Print quality | 200 | 0.80 | Printing; still smaller than raw scans |
Worked example
A bank asks for your statements as one PDF under 2 MB. You scanned 6 pages at 600 DPI and the file is 18 MB.
- Choose the file and the Balanced preset.
- Click Compress PDF and watch the progress bar: "Compressing page 3 of 6…".
- The result line shows the real sizes, for example "18 MB → 1.4 MB (92% smaller)".
Open the downloaded file and zoom in on small print to check it is still readable. If not, try 150 DPI at quality 0.7.
Now take a 6-page report exported from Word, 300 KB, with no images. Compressing it may give 900 KB: larger, because sharp text drawn as a picture takes more data than text stored as letters. The tool tells you this and you simply keep the original.
Tips
- Use it for scans and photo PDFs, not for text-based documents.
- Check small text after compressing. Lower DPI blurs fine print first.
- Compress images before making a PDF when you can: shrink photos with the Image Compressor, then build the PDF with Images to PDF. That keeps more control.
- Only need part of it? Remove pages with Split PDF first; fewer pages means a smaller file.
- Combine afterwards with Merge PDF if you compressed parts separately.
Limitations
- Text becomes an image: no selecting, searching, copying or screen-reader access.
- Links, bookmarks, form fields and annotations are removed.
- Vector drawings (charts, CAD plans) become pixels and lose sharpness when zoomed.
- Text-only PDFs may grow, as explained above.
- Speed and memory: each page is rendered one at a time to save memory, but hundreds of pages at high DPI can still take minutes on a phone.
- Encrypted PDFs must be unlocked first.
Key terms
- DPI (dots per inch): how many pixels are used for each inch of the page.
- JPEG quality: how much detail the JPEG encoder keeps, from 0 to 1.
- Rasterise: turn text and shapes into a grid of pixels.
Frequently asked questions
Why is the text no longer selectable?
This tool re-draws each page as a picture. That removes hidden text layers and fonts, which is part of the saving, but it also means you cannot select, search or copy text.
Why did my PDF get bigger?
Text-only PDFs made by Word or Google Docs are already small. Turning them into images can make them larger. The tool shows both sizes so you can keep the original.
Which settings should I use?
For email, 100 to 120 DPI and quality 0.6 is usually fine. For printing, use 200 DPI or more and quality 0.8.
Are my documents uploaded?
No. Pages are rendered with PDF.js and rebuilt with pdf-lib in your browser.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.