# Compress PDF

> Compress a PDF in your browser and see the size before and after. Lossless clean-up, re-encoded photos, or scan mode. No upload, no signup.

- URL: https://www.docutils.dev/tools/reduce-pdf-size/
- Published: 2026-11-26
- Updated: 2026-11-27

---

Make a PDF smaller for email and upload limits, with before-and-after sizes. Your file is processed in this tab and isn’t uploaded to our servers. Free on docutils.dev, no account needed.

## How to use Compress PDF

1. Drop one PDF on the box. Its current size is shown once it has been read.
2. Pick a method. **Re-encode images** (the default) is right for most files with photos; choose **Light**, **Balanced** or **Strong**. **Clean up only** changes nothing visible. **Scan mode** is for scanned documents and lets you set the resolution and JPEG quality.
3. Click **Compress PDF**. A progress bar shows each stage, then you see the size before and after and what was changed.
4. If the new copy is smaller, click **Download** to save it with `-smaller` added to the name. If it isn’t, the tool says so and offers your original file instead.

## Features

- Three methods with different trade-offs: lossless clean-up, photo re-encoding that keeps text and vectors untouched, and a scan mode that rebuilds each page as one image.
- Shows the size before and after, how many images were re-encoded, and which were left alone and why (transparency masks, CMYK, small images).
- Never hands you a bigger file: when the result isn’t smaller, it says so and gives you your original back instead.
- An image is only replaced if its new version is at least 10% smaller, so already-compact images keep their original quality.
- Clean-up and re-encoding keep text selectable, links clickable and form fields fillable.

## About Compress PDF

How much a PDF can shrink depends on what makes it big. In most large PDFs that’s **images**: phone photos and scans saved at full camera resolution. Re-encoding those as JPEGs capped at 2,000 pixels on the long side (Balanced) or 1,240 pixels (Strong, about 150 dpi on an A4 page) often halves a file or better, while text, fonts and vector drawings are left exactly as they were. **Clean up only** is lossless: it compresses streams some generators store uncompressed, removes objects left over from earlier edits and embedded page thumbnails, and rewrites the file with compressed cross-reference data. On a PDF that was already saved efficiently, it may save almost nothing.

**Scan mode** renders every page with pdf.js and stores it as one JPEG. It is the strongest option for scanned paperwork, because it also flattens odd scanner formats this tool can’t re-encode directly. On a PDF with real text it’s the wrong choice: the text becomes a picture, so it can’t be selected, searched or read by a screen reader, and links stop working.

There’s no guaranteed percentage, and this tool doesn’t claim one. Text-only PDFs are usually small already. Some images are deliberately left alone, because re-encoding them would damage transparency or change colours: soft masks, CMYK and spot-colour images, 1-bit scans and images with custom decode settings. Saving a new copy also removes any certificate-based digital signature in the original, so reduce the size **before** a document is digitally signed.

## Specs

- Runs: in the browser tab
- Built on: pdf-lib, pdf.js and @cantoo/pdf-lib (decryption)
- Cost: free, no account needed
- Methods: Lossless clean-up, image re-encoding (3 levels), scan mode (72–200 dpi)
- Images re-encoded: JPEG and 8-bit gray/RGB; masks, CMYK and 1-bit left alone
- Input: One PDF, up to 500 MB
- Category: [Compress and unlock PDFs](https://www.docutils.dev/categories/pdf-optimize/)

## Questions

### How do I compress a PDF without uploading it?

Drop the PDF here, pick a method (Re-encode images is the usual choice) and click Compress PDF. The file is processed in this tab and isn’t uploaded. Download the new copy when it is smaller.

### How do I reduce the size of a PDF without losing quality?

Choose Clean up only. It’s lossless, so nothing visible changes, but savings are usually small. For a big drop in size, Re-encode images on Light keeps photos close to the original while capping their resolution at 3,000 pixels.

### How much smaller will my PDF get?

It depends on the contents. PDFs full of photos or scans often shrink by half or more with Balanced or Strong. Text-heavy PDFs are usually compact already and may shrink only a little. The tool shows the exact before and after sizes.

### Why didn’t my PDF get smaller?

It was probably already efficient: mostly text, or images that are already well compressed. The tool won’t give you a larger copy. Try Strong, or Scan mode if the PDF is a scan.

### How do I get a PDF under 1 MB or 2 MB for an upload form?

Start with Re-encode images on Balanced. If it’s still too big, try Strong, then Scan mode at around 100 dpi for scanned documents. If one method can’t get there, split the PDF into parts with Split PDF.

### Is this the same as compressing a PDF?

Yes, reducing size and compressing mean the same thing here. This tool combines lossless compression with optional image re-encoding, and shows you what it did instead of promising a fixed ratio.

### Will my text still be searchable?

With Clean up only and Re-encode images, yes: only images change. Scan mode turns each page into an image, so text in that copy isn’t selectable or searchable.
