# Compress PDF

> Compress PDF makes a PDF smaller by turning each page into a compressed JPEG image at the quality you choose. It works best on scanned documents. Text in the result is no longer selectable.

URL: https://atechcraft.com/compress-pdf/
Category: PDF Tools
Last updated: 2026-12-01
Author: Abdul Moid Khan, ATechCraft

Runs in your browser. Your data never leaves your device.

## How to use the Compress PDF

1. Choose a PDF file.
2. Pick a preset or set image quality and resolution (DPI).
3. Click Compress and wait while each page is rendered.
4. Compare 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:

1. [PDF.js](https://mozilla.github.io/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.
2. The canvas is saved as a **JPEG** at your chosen quality.
3. [pdf-lib](https://pdf-lib.js.org/) 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.

1. Choose the file and the **Balanced** preset.
2. Click **Compress PDF** and watch the progress bar: "Compressing page 3 of 6…".
3. 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

1. **Use it for scans and photo PDFs**, not for text-based documents.
2. **Check small text after compressing.** Lower DPI blurs fine print first.
3. **Compress images before making a PDF** when you can: shrink photos with the [Image Compressor](https://atechcraft.com/image-compressor/), then build the PDF with [Images to PDF](https://atechcraft.com/images-to-pdf/). That keeps more control.
4. **Only need part of it?** Remove pages with [Split PDF](https://atechcraft.com/split-pdf/) first; fewer pages means a smaller file.
5. **Combine afterwards** with [Merge PDF](https://atechcraft.com/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.
