Compress PDF
Choose a PDF, pick lossless clean-up or strong compression, and see the exact before and after size — compressed on your device, never uploaded.
- Free
- No account
- Runs in your browser
- Nothing uploaded
Removes unused data and compresses anything stored uncompressed. Text, images and quality stay exactly the same, so the saving is often small — large only for bloated files.
Runs entirely in your browser — your input is never uploaded, logged, or stored.Privacy policy
What is Compress PDF?
Compress PDF makes a PDF file smaller inside your browser, and tells you plainly how much smaller — or that it could not. It is for the everyday problem of a PDF too big to email or upload to a form, especially a scanned document or a file full of photos, when you would rather not send a private document to someone else's server.
Be clear about one thing first: compressing in a browser is weaker than the big server-side tools, which run programs like Ghostscript that can re-encode each image inside a PDF individually. This tool does not pretend otherwise. It offers two honest modes and always shows the original size, the new size and the percentage change. If the result is not smaller, it says so and recommends keeping your original.
Lossless clean-up is designed to change nothing you can see. The PDF is opened with pdf-lib and rewritten keeping only what the document still uses: objects nothing refers to any more (leftovers from editing, unused fonts and images, old versions kept by incremental saves) are dropped, any stream stored without compression is compressed with Deflate — the same lossless method as ZIP — and small objects are packed into compressed object streams. Text stays selectable, images keep every byte, and bookmarks, links and form fields are kept. Many PDFs are already stored efficiently and shrink only a few percent or not at all; files that have been edited and re-saved many times, or exported by software that skips compression, can shrink a lot. One caution: pdf-lib reads PDFs leniently, so if the original is malformed, parts it cannot parse may be missing from the result — open the compressed file and check it before you delete the original.
Strong mode rasterises: pdf.js, Mozilla's PDF renderer, draws each page as a picture at the resolution you choose (72, 100, 110 or 150 DPI; 110 by default, which turns an A4 page into 909 × 1286 pixels), saves it as a JPEG at the quality you set (70 by default), and a new PDF is built with each picture filling a page of exactly the original size. This is what makes big scans and photo-heavy PDFs dramatically smaller. The price is real: text becomes part of the image, so it can no longer be selected, searched or copied, links and form fields stop working, bookmarks are gone, and fine print can blur at low resolutions. Use it for scanned documents, not for text documents you still need to search. For a PDF that is mostly text, strong mode often makes the file bigger, and the tool will tell you.
Password-protected or permission-locked PDFs are refused in both modes. Files up to 200 MB are accepted.
Your file never leaves your device: it is read, compressed and handed back inside the browser tab. You can check in your browser's developer tools (Network tab) that no request carries the PDF — the site loads its own scripts and analytics, never your documents.
1. The file's first bytes are checked for the PDF signature, and pdf-lib opens it; encrypted and damaged files are refused with a specific message (in both modes). 2. Lossless: every stream stored without a compression filter (other than XMP metadata, which is left readable) is Flate-compressed if that makes it smaller; the decoded bytes are identical. 3. Lossless: starting from the document catalog and info dictionary, every object still referenced is marked; everything else is deleted. The file is saved with compressed object streams and a cross-reference stream. 4. Strong: each page is rendered by pdf.js at the chosen DPI (pixels = points × DPI ÷ 72, reduced only for pages that would exceed 16 megapixels or 8,192 pixels per side), painted on white, and encoded as a JPEG at the chosen quality by the browser. 5. Strong: a new PDF is built with pdf-lib, one page per JPEG, each page the original page's displayed size in points with the JPEG drawn to fill it. The JPEG bytes are embedded as-is. 6. The original and new sizes and the percentage change are shown; a result that is not smaller is labelled as such.
| Lossless clean-up | Strong (rasterise) | |
|---|---|---|
| Typical saving | 0–10% for tidy files; more for bloated or uncompressed ones | Large for scans and photos; can grow text-only files |
| Text selectable and searchable | Yes | No — text becomes part of the image |
| Image quality | Unchanged | Re-encoded as JPEG at the DPI and quality you choose |
| Links, bookmarks and form fields | Kept | Lost |
| Page sizes | Unchanged | Unchanged |
| Best for | Any PDF, safe first try | Scanned documents and photo-heavy PDFs |
Worked examples
- Lossless: a 2-page PDF carrying a 200 KB object that nothing in the document uses → that object is dropped and the file shrinks by more than 195 KB; both pages keep their exact sizes.
- Lossless: a PDF edited and saved incrementally, with an old 100 KB version of an object still inside → only the current version is kept, saving more than 95 KB.
- Lossless: a PDF whose page content was stored uncompressed → the content is Deflate-compressed; decompressing it gives back exactly the same bytes.
- Lossless: a PDF that is already tidy → not smaller; the tool says so and recommends keeping the original.
- Strong at the default 110 DPI: each A4 page is rendered at 909 × 1286 pixels and placed on an A4 page (595.28 × 841.89 pt) in the new PDF.
How to use Compress PDF
- Click "Choose a PDF" or drop a PDF onto the box.
- Pick a Mode: "Lossless clean-up" (safe, keeps text) or "Strong (rasterise pages)" — for strong, also choose a Resolution and JPEG quality.
- Click "Compress PDF" and compare the Before, After and Change figures.
- Click "Download" if the file got smaller. If it says "Not smaller — keep your original", keep the file you have (or try the other mode).
Common errors
- "Not smaller — keep your original" — the PDF was already stored efficiently (lossless), or it is mostly text so page images take more space than the text did (strong). Keep the original; for scans, try strong mode or a lower resolution or quality.
- "… is encrypted (password-protected or locked against editing)" — the PDF is protected. Open it in a PDF reader with the password, save or print an unprotected copy, and compress that.
- "… is actually a JPG file, not PDF" — the file is an image with a .pdf name. Use an image compressor, or convert it with JPG to PDF.
- "… could not be read — the PDF is damaged or incomplete" — the download did not finish or the file is corrupt. Download it again, or open it in a PDF reader and save a fresh copy.
- Text looks blurry after strong compression — the resolution or quality was too low for small print. Use 150 DPI or a higher JPEG quality, or use lossless clean-up for text documents.
- "… over the 200.00 MB limit for this tool" — the file is too large to process safely in browser memory. Split it with Split PDF, compress the parts, and merge them again.
FAQ
How do I compress a PDF without uploading it?
Use a compressor that runs in your browser, like this one. Choose the PDF, pick a mode and click "Compress PDF" — the file is processed on your own device and downloaded directly, never sent to a server.
How can I make a PDF smaller for email?
If it is a scan or full of photos, use Strong mode at 100 or 110 DPI — that usually shrinks it the most. If it is a text document, try Lossless clean-up first so the text stays searchable; if that saves too little, a text PDF generally cannot be shrunk much further without making it an image.
Does compressing a PDF reduce its quality?
Lossless clean-up does not change quality at all — only how the file is stored. Strong mode does: pages become JPEG images, so text is no longer selectable and fine detail can soften, especially at 72 DPI or low quality settings.
Why didn't my PDF get smaller?
Many PDFs are already stored efficiently, so a lossless rewrite has nothing to remove. And a text-only PDF can get bigger in strong mode, because a picture of a page takes more space than the text itself. The tool shows this plainly so you can keep the original.
Is this as strong as iLovePDF or Smallpdf?
Not always. Server tools can re-encode each image inside a PDF individually while leaving text as text, which a browser cannot do as well. The trade-off is privacy: here the file never leaves your device, and you see exactly what was gained.
Is it safe to compress confidential PDFs here?
Yes. Nothing is uploaded — the PDF is read and compressed in your browser tab and is gone when you close it. You can confirm in your browser's developer tools that no network request carries the file.
Will the text in my PDF still be searchable after compression?
With Lossless clean-up, yes — text, links, bookmarks and forms are all kept. With Strong mode, no: each page becomes an image, so text cannot be searched, selected or copied.
Is there a file size limit?
Files up to 200 MB are accepted. Everything happens in your device's memory, so very large files — especially in strong mode, which renders every page — work best on a desktop computer.
Related tools
- Merge PDFAdd two or more PDFs, put them in the order you want, and download one combined PDF — merged on your own device, never uploaded.
- Split PDFChoose a PDF, type the pages you want, and extract them, delete them, or split the file into separate PDFs — all on your own device.
- PDF to JPG ConverterPick a PDF, choose the pages and resolution, and download each page as a JPG image — rendered on your own device, never uploaded.
- Image CompressorDrop JPG, PNG or WebP images, set a quality or a target size in KB, and download smaller files — compressed on your device, never uploaded.
Prefer AllUtil on Google
One click adds AllUtil to your Google preferences. You'll see our tools highlighted with a Preferred badge in Search and AI answers.