The short answer: PDF compression helps a lot when a PDF is heavy because of its pictures, and hardly at all otherwise. On the Balanced setting of our rebuilt Compress PDF tool, a US Constitution with one 600 ppi scanned page went from 4.02 MB to 0.53 MB, six phone photos in a PDF from 18.2 MB to 4.1 MB, and five pages of print artwork from 21.9 MB to 1.4 MB. Two tax forms, a text-only notice and two archive scans changed by between 0% and 16%. Text stayed selectable and identical in every file.
We ran this test because our own tool used to fail it. Until November 2026, Compress PDF only re-saved the file's structure with pdf-lib. An earlier check found it saved 0.9% on the Constitution and nothing on a photo PDF. We rebuilt it to shrink oversized images, then measured old and new on the same 15 files.
What makes a PDF big
A PDF is a container. Text is stored as character codes plus the fonts needed to draw them, so a page of text is usually a few kilobytes. Vector drawings (charts, logos, table lines) are short lists of drawing instructions. Images are stored as grids of pixels, compressed with JPEG, Flate (the same method as ZIP and PNG), JPEG 2000 or JBIG2. One phone photo can outweigh a thousand pages of text.
So there are two very different kinds of saving. The first is structural: packing the file's internal objects into compressed object streams. That costs nothing in quality and helps files written with a lot of loose, uncompressed structure. The second is image recompression: scaling pictures down to the resolution the page needs and re-encoding them as JPEG. That is lossy, but it is the only way to make a photo-heavy PDF much smaller.
How we tested
We collected 15 PDFs, all public domain or under Creative Commons licences, chosen to cover the kinds of file people try to compress:
| Pages | Size | What is inside | |
|---|---|---|---|
| US Constitution, House Document 110-50 (GPO) | 85 | 4.02 MB | Text, plus one 600 ppi greyscale scan of 3.5 MB; digitally signed |
| Federal Register notice, 17 Sept 2024 (GPO) | 2 | 213 KB | Text only; digitally signed |
| NIST SP 800-63-3, Digital Identity Guidelines | 76 | 1.60 MB | Text and diagrams |
| USGS Fact Sheet 2024-3001 | 6 | 5.17 MB | Photos (greyscale, RGB and CMYK JPEG) |
| The same fact sheet, permission-locked | 6 | 5.13 MB | Encrypted by us with AES-256 (owner password only) |
| IRS Form W-9 (March 2024) | 6 | 141 KB | Fillable form |
| IRS Form 1040 (2025) | 2 | 220 KB | Fillable form |
| Wikipedia article “Saturn”, Wikipedia's PDF download | 31 | 2.48 MB | Text and 25 images, printed by headless Chrome |
| Wikimania 2023 slides (PowerPoint export) | 27 | 2.40 MB | Slides, many images with transparency |
| Wikimania 2019 slides (Google Slides export) | 20 | 2.57 MB | Slides with full-bleed photos |
| “Editing Wikipedia” brochure | 20 | 12.1 MB | Print layout, CMYK JPEGs at 300 ppi |
| “Illustrating Wikipedia” brochure, high resolution, 5 of 12 pages | 5 | 21.9 MB | Print layout, uncompressed CMYK images |
| Ladies' Home Journal, September 1890 (scan) | 28 | 22.1 MB | JPEG 2000 and JBIG2 scan |
| A Pocket Hand-Book of Biography, 1890 (Internet Archive scan) | 272 | 17.9 MB | JPEG 2000 and JBIG2 scan |
| Six phone photos through our Image to PDF | 6 | 18.2 MB | 9–22 MP JPEGs, page size “Fit to image” |
Each file went through the real tool pages in Chromium 156, driven by Playwright on an Apple M2 Mac: once through the old tool, and once through each of the new tool's three strengths, Light (200 ppi, JPEG quality 85), Balanced (150 ppi, quality 75) and Strong (100 ppi, quality 60). We recorded the size of the download and the time from clicking Compress to the download starting.
To check what changed on the page, we rendered every page of the original and the result at 100 dpi with poppler's pdftoppm and computed SSIM per page (structural similarity, in colour; 1 means identical). We report the lowest page, because one blurred page matters more than an average. To check the text, we extracted it with pdftotext from both files and compared it after collapsing white space.
The results
| Before | Old tool | Light | Balanced | Strong | |
|---|---|---|---|---|---|
| Brochure, uncompressed CMYK (5 pages) | 21.9 MB | −0.1% | −92.7% | −93.8% | −94.7% |
| US Constitution (600 ppi scan page) | 4.02 MB | −0.9% | −82.2% | −86.8% | −89.4% |
| Six phone photos | 18.2 MB | +0.0% | −51.9% | −77.4% | −91.0% |
| Wikipedia “Saturn” | 2.48 MB | −52.5% | −62.5% | −65.2% | −67.9% |
| USGS fact sheet | 5.17 MB | −0.1% | −17.5% | −24.9% | −32.1% |
| Federal Register notice | 213 KB | −15.8% | −15.8% | −15.8% | −15.8% |
| Google Slides deck | 2.57 MB | −0.9% | −0.9% | −15.3% | −37.9% |
| PowerPoint deck | 2.40 MB | −1.3% | −7.1% | −8.5% | −37.3% |
| NIST guidelines | 1.60 MB | −1.9% | −4.5% | −4.7% | −4.9% |
| IRS Form W-9 | 141 KB | −4.5% | −4.5% | −4.5% | −4.5% |
| Brochure, CMYK JPEG | 12.1 MB | −1.5% | −1.5% | −1.5% | −1.5% |
| Pocket Hand-Book scan | 17.9 MB | −0.4% | −0.4% | −0.4% | −0.4% |
| Ladies' Home Journal scan | 22.1 MB | −0.0% | −0.0% | −0.0% | −0.0% |
| IRS Form 1040 | 220 KB | +0.9% | 0% (original) | 0% (original) | 0% (original) |
| Locked fact sheet | 5.13 MB | Error | 0% (original) | 0% (original) | 0% (original) |
| Lowest-page SSIM, Light | Balanced | Strong | Text identical | |
|---|---|---|---|---|
| Brochure, uncompressed CMYK | 0.992 | 0.991 | 0.990 | Yes |
| US Constitution | 0.998 | 0.996 | 0.986 | Yes |
| Six phone photos | 0.949 | 0.872 | 0.706 | No text |
| Wikipedia “Saturn” | 0.986 | 0.978 | 0.962 | Yes |
| USGS fact sheet | 0.998 | 0.998 | 0.994 | Yes |
| Google Slides deck | 1.000 | 0.977 | 0.801 | Yes |
| PowerPoint deck | 0.997 | 0.976 | 0.910 | Yes |
| NIST guidelines | 1.000 | 1.000 | 1.000 | Yes |
| All other files | 1.000 | 1.000 | 1.000 | Yes |
Each of the new tool's runs took between 0.12 and 2.6 seconds. The slowest was the phone-photo PDF on Light, which decodes and re-encodes six photos of 9 to 22 megapixels. The old tool took between 0.13 and 0.83 seconds.
What compressed, and why
Scans and photos placed at full resolution
The three biggest savings all came from images with far more pixels than their page needs. The Constitution's one scanned page is a 2,642 × 4,177 pixel JPEG on a letter-size page: 600 ppi for a page you read on screen. On Balanced it became 1,044 × 1,650 pixels and 175 KB. That is still about 237 ppi where it actually sits on the page, because the scan is drawn smaller than the page. The other 84 pages are text and were not touched. The worst page's SSIM was 0.996.
The phone photos are a harder case. Our Image to PDF tool's “Fit to image” setting makes each page the size of the photo at 72 dpi, so a 12 MP photo becomes a page 42 × 56 inches. Judged by page size, none of those photos has too many pixels. The new tool treats any page larger than A3 as A3, so on Balanced each photo was scaled to 2,480 pixels on its long side. That is why this file has the lowest scores. At 100 dpi, a page that size renders 5,600 pixels tall, so each remaining photo pixel is drawn more than twice over and the comparison is effectively zoomed in. With both files rendered 1,600 pixels on the long side, about what a laptop screen shows, the lowest page scored 0.959 on Light, 0.918 on Balanced and 0.770 on Strong.
The print brochure saved the most of all, but not because of downsampling. Its CMYK images were stored completely uncompressed: 21.9 MB of raw pixels for five pages. Any compression at all would have helped. Our tool converts them to RGB JPEG, which looks right on screen (lowest SSIM 0.991) but is not what a printer wants. If the file is going back to print, keep the original.
Files with bloated structure
The Wikipedia article is the one file the old tool did well on: −52.5%. Wikipedia's PDF download is printed by headless Chrome, which wrote the article as 10,663 separate objects, most of them small uncompressed dictionaries. Packing those into compressed object streams halves the file without changing a pixel. The Federal Register notice and the W-9 gained in the same way, by 15.8% and 4.5%. The new tool does the same packing and then shrinks images on top, which took “Saturn” to −65.2%.
What did not compress, and why
- Text-only documents and forms. There is nothing heavy to remove. The NIST guidelines saved 4.7%, and only one of its 15 images was worth re-encoding. The 1040 form came out larger after re-saving, so the tool returned the original.
- Archive scans. Both 1890 scans were already compressed hard. Each page is split into a JBIG2 layer for the text, a black-and-white format that is very efficient, and a JPEG 2000 layer for the paper and pictures. Browsers can't encode either format, and re-encoding them as JPEG would make them bigger. The tool kept all 107 and 544 images as they were, for −0.0% and −0.4%.
- CMYK JPEGs from print workflows. The “Editing Wikipedia” brochure holds 48 CMYK JPEGs. In a PDF, a CMYK JPEG's colour values can be stored inverted or not. Browsers always decode them as if they are inverted. For these files that gives a photo negative, which we saw in a test render before we added the check. The tool now keeps CMYK JPEGs unless the PDF marks them as inverted, which left this brochure at −1.5%.
- Images with transparency. 40 of the 56 images in the PowerPoint deck have soft masks: cut-out logos and screenshots with rounded corners. JPEG has no transparency, so they stay as they are. Balanced still trimmed the decks by 8.5% and 15.3% through their photos; Strong, which scales full-slide photos down further, took both to about −37%, with the lowest slide at 0.80 SSIM.
- Encrypted PDFs. pdf-lib can't decrypt, so the new tool returns the locked fact sheet unchanged and says so. The old tool stopped with the message “Expected instance of e, but got instance of undefined”.
Signed PDFs and forms
Both GPO documents carry a digital signature. In the originals, poppler's pdfsig reports “Total document signed”. In all six compressed copies it reports “Not total document signed”: the signature covers bytes that no longer exist. This happens with any tool that rewrites a file, ours included. Compress a signed PDF for reading if you like, but send the original wherever the signature is the point. The tool now warns when a file it rewrites was signed.
The IRS forms carry a different kind of signature: Adobe “Reader extension” rights, a leftover from when the free Adobe Reader could not save filled-in forms without them. Re-saving removes them. All 27 form fields of the W-9 were kept, and the tool says when this happens.
Limits of this test
- SSIM is a guide, not a verdict. A score of 0.99 on a mostly-text page can hide a softened photo, which is why we report the worst page rather than the average, and why we looked at the worst pages ourselves.
- We judged pages by poppler's rendering. Adobe Acrobat converts CMYK to screen colours with colour profiles, so the RGB images made from the uncompressed CMYK brochure may look slightly different there than in the original.
- The tool judges how many pixels an image needs from the size of its page, not from where it is drawn. An image shown at a quarter of the page keeps more pixels than it needs. Images inside annotations, and inline images in the page's drawing code, are never touched.
- Times are from one M2 Mac in Chromium. A phone will be slower on large photo PDFs, and very large files are limited by the browser's memory.
- 15 files is a small sample. Treat the percentages as examples of each kind of PDF, not as averages.
What to do with your PDF
- Look at what makes the file heavy. If it was made from scans, phone photos or exported print artwork, Compress PDF on Balanced will usually cut it by well over half. Light is the safer choice for anything that will be printed.
- If it is mostly text, a form or an archive scan, expect a few percent at most. When only a few pages matter, sending fewer pages helps more: Split PDF or Extract PDF pages cut out the pages you need.
- If you are making the PDF yourself from photos, shrink them first with Compress Image, or pick the A4 page size in Image to PDF so the page is a sensible size.
- Keep the original of anything signed, encrypted or going to a printer. The tool never returns a file bigger than the one you gave it, but it can't keep a signature valid.