Private AI Tools

How to compress a PDF without losing quality

By the Private AI Tools team · Updated · 7 min read

In short

To compress a PDF, reduce the resolution of the pictures inside it and re-encode them, while leaving text and vector graphics untouched. With Compress PDF on Private AI Tools you pick a level (Screen 72 DPI, Ebook 150 DPI or Print 300 DPI), drop the files and download smaller copies. Everything runs in your browser, so the PDF is never uploaded.

Key points

  • Almost all the weight of a large PDF is pictures: scans, photos and screenshots. Text and fonts are small.
  • The Ebook level (150 DPI) is the right default for email and reading on screen.
  • Text, fonts and vector drawings are never re-compressed, so they stay sharp and selectable.
  • If a file cannot be made smaller, you get the original back instead of a bigger copy.

Step by step

  1. Open the tool

    Go to Compress PDF. It runs in any modern browser, on a computer or a phone.

  2. Choose a level

    Pick Screen, Ebook or Print before adding files, or Custom to set the image resolution (50–600 DPI) and JPEG quality yourself.

  3. Add your PDFs

    Drop one or more files. They are compressed one after the other, and each one shows its size before and after.

  4. Check the result

    Look at the savings per file and in total. If you change the level, click Compress again to redo the files.

  5. Download

    Download each file, or all of them as a ZIP with Download all.

Why your PDF is so big

A page of text weighs a few kilobytes. A page that contains a picture can weigh several megabytes, because the picture is stored at its full resolution even when it is printed small on the page. The usual culprits are:

  • Scans saved at 300 or 600 DPI, often in color even when the document is black and white.
  • Phone photos pasted into a document: a 12-megapixel photo stays 12 megapixels even when it fills a quarter of a page.
  • Screenshots and slides exported as large lossless images.
  • Hidden extras: page thumbnails, editing data saved by design programs, and metadata.

That is why compressing a PDF is mostly about the pictures. The tool measures how large each image is actually drawn on the page, works out its effective resolution, and scales down only the ones that are sharper than the level you chose.

Which level to choose

DPI (dots per inch) is how many image pixels end up in one inch of the printed page. Fewer pixels mean a smaller file, but also less detail when you zoom in or print. For a picture that fills an A4 page, the levels mean:

LevelImage resolutionFull A4 page pictureBest for
Screen72 DPI, JPEG 50%595 × 842 px (0.5 MP)The smallest file: previews, web uploads with strict limits
Ebook150 DPI, JPEG 70%1240 × 1754 px (2.2 MP)Email, sharing, reading on a screen
Print300 DPI, JPEG 85%2480 × 3508 px (8.7 MP)Printing at home or in an office
Custom50–600 DPI, JPEG 10–95%—A precise size target
The same letterhead detail from a scanned letter: the 300 DPI original, the Ebook result at 150 DPI and the Screen result at 72 DPI
The same detail of page 1, taken from the PDFs the tool produced: the 300 DPI original, Ebook (150 DPI) and Screen (72 DPI). Ebook is hard to tell apart at normal size; Screen is still readable but visibly rough. Scan: public domain, via Wikimedia Commons.

Halving the resolution divides the number of pixels by four, which is why going from Print to Ebook makes such a difference. For scanned letters and contracts, Ebook usually looks the same as the original on screen. If the document must be printed by a professional print shop, do not compress it: send the original.

Convert images to grayscale helps less than you might expect: on our color scan of a black-and-white letter it took the Ebook result from 1.3 MB to 1.2 MB, because JPEG already stores color at a lower resolution than brightness. Use it when you want gray pictures, not as a size trick.

What we measured

We compressed three real scans at each level. The letter is the typical case: a document scanned at 300 DPI, where every page is a large photo of paper.

Test fileScreenEbookPrint
Letter, 5 pages scanned at 300 DPI · 16.3 MB287 KB (−98%)1.3 MB (−92%)7.0 MB (−57%)
Pamphlet, 21 pages with low-resolution photos · 5.0 MB1.1 MB (−79%)2.0 MB (−59%)3.5 MB (−30%)
Book scan, 4 pages in JPEG 2000 and JBIG2 · 12.1 MBunchangedunchangedunchanged

All three files together took 5 to 10 seconds per level. The pamphlet's photos were already below 150 DPI, so Ebook only re-encoded them; Print still saved 30% just by re-encoding at 85% quality. The book scan shows the limit of a careful compressor: its page images are over 60 megapixels and the text layers are JBIG2 masks, so the tool left them alone and returned the file unchanged.

What is changed and what is not

Compression here is careful by design. Photos are re-encoded as JPEG, flat graphics (screenshots, diagrams) are re-compressed losslessly, and the whole file is then rewritten by QPDF, an open-source PDF library compiled to WebAssembly, which packs the internal structure more tightly without changing any content.

Some images are left exactly as they are, because changing them could alter how the page looks:

  • images in CMYK or other print color spaces, so colors meant for a press do not shift;
  • masks and images with special transparency;
  • very small images, where there is nothing to gain;
  • images over 60 megapixels, which would use too much memory in a browser;
  • images that would get less than 5% smaller.

Text is never turned into pictures, so it stays selectable, searchable and sharp at any zoom. Optional switches also remove page thumbnails and editor data, and the document metadata (title, author, keywords).

Why a PDF does not get smaller

If the result is not smaller than the original, the tool gives you the original back. That happens when:

  • the PDF is mostly text, such as a report exported from Word: there are no big pictures to shrink;
  • the images are already at or below the chosen resolution: try Screen, or Custom with a lower DPI;
  • the images are in CMYK, which is common in files prepared for print;
  • the pages are huge single images (over 60 megapixels) or black-and-white JBIG2 masks, as in many book scans from digital libraries;
  • the file is encrypted: remove the password first with Unlock PDF (you need to know it), then compress the unlocked copy.

Compressing a PDF for email

Gmail accepts attachments up to 25 MB, and many company mail servers set lower limits. Start with Ebook: in our test it turned a 16.3 MB scanned letter into 1.3 MB. If a document is still too big, try Screen, which is fine for reading on a phone. For very long scans, you can also split the PDF into several attachments.

Other ways to compress a PDF

MethodCostNotes
Compress PDF in the browserFreeFiles stay on your device; per-file before and after sizes
Preview on macOSFree, built inFile → Export → Quartz Filter → Reduce File Size; quick, but pictures often come out blurry
Adobe AcrobatPaidReduce File Size and Optimize PDF, with detailed settings
GhostscriptFree, open sourcegs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o out.pdf in.pdf; rewrites the whole file, including the text

Windows has no built-in PDF compressor.

How we tested

We ran every test on 24 October 2026 with the tool exactly as published, in Chrome 152 on a desktop PC (AMD Ryzen 7 5700X, NVIDIA GeForce RTX 5060, 32 GB of RAM). Sizes are the ones the tool shows (1 MB = 1,048,576 bytes); times include reading the files.

The letter PDF was built from the five 300 DPI JPEG page scans with each scan placed full-page on A4, which is what a scanner app produces. The page details in the figure were extracted from the compressed PDFs themselves, not simulated.

Test files

Frequently asked questions

Does compressing a PDF reduce the quality?

Only the pictures lose detail, and only if they are sharper than the level you choose. Text, fonts and vector graphics are not changed, so they stay as sharp as in the original.

What is the best level for email?

Ebook (150 DPI). It keeps scans and photos readable on any screen; in our test it made a 16.3 MB scanned letter 92% smaller.

Is it safe to compress confidential PDFs online?

With Private AI Tools the compression runs in your browser, so the file is never uploaded. Many other online compressors process files on their servers.

Can I compress several PDFs at once?

Yes. Drop as many files as you like: they are compressed one after the other, and you can download them all as a ZIP.

Why is my compressed PDF the same size?

The file probably has no large pictures, its pictures are already low resolution, or they use CMYK colors. In those cases there is little to remove, so the original is kept.

More guides