PDF Compression Explained
A 40-page contract can weigh 200 KB while a two-page scanned letter weighs 8 MB. The difference is almost never the text: it is what the PDF carries around the text — images at print resolution, whole fonts embedded several times, objects left behind by every edit, and previews nobody sees. Compression is the craft of removing or re-encoding those parts while keeping what matters.
This guide explains where the bytes go, what a compressor can do losslessly, what the lossy settings actually change, how to choose a target, and why the honest answer is sometimes "this file is already as small as it can be".
Where the bytes go
Every PDF is a set of objects: page content streams (the drawing instructions), fonts, images, annotations, forms and a table that says where each object lives. A size analysis lists these by category and usually tells the whole story in one look.
- Images — by far the usual culprit. A scanned page at 300 dpi is a 2,500 × 3,500 pixel picture; stored as a lossless PNG-style image it can take 5–20 MB per page.
- Fonts — a full Unicode font is 2–20 MB. Well-made PDFs embed only the glyphs they use (a "subset"); many exporters embed the whole font, once per document section.
- Incremental updates — each save in some editors appends a new revision rather than rewriting the file, so an edited document carries every previous version.
- Duplicate objects — the same logo image or font embedded once per page instead of once per file.
- Extras — thumbnails, embedded files, JavaScript and metadata streams that are not needed to display the pages. Structure tags do not belong on this list: screen readers and reflow depend on them (tagged PDF, PDF/UA), so a compressor should keep them.
Try it: PDF Size Analyzer Try it: PDF Font Analyzer Try it: PDF Image Extractor & Analyzer
Lossless: what changes nothing you can see
Lossless steps rewrite the file without touching a single pixel or glyph. Object streams pack small objects together and deflate them; a fresh cross-reference table drops the leftovers of old revisions; identical objects are merged; unused resources are removed; content streams that were stored uncompressed are deflated. On a document that was saved carelessly, this alone can halve the size. On one that was exported well, it saves a few percent — and a good tool reports "no reduction" rather than pretending.
Font subsetting is lossless for the reader but not always for the file's future: a subset font cannot be used to type new text in that PDF later. If a form still needs to be filled, keep the full fonts.
Lossy: images are where the real savings are
Two levers apply to every image in the file. Resolution: a photo displayed 10 cm wide needs about 150 pixels per inch on screen and 300 for print, so a 600-dpi scan can be downsampled to a quarter of its pixels with no visible change. Encoding: re-encoding as JPEG at quality 75–85 keeps photographs looking identical at normal zoom while dividing their size by five or more. Line drawings, screenshots and text scans are the exception — JPEG blurs sharp edges, so they should stay lossless or be kept at high quality.
A compressor that works in your browser applies these levers to each image and shows the before and after sizes. In this site's Compress PDF tool they are two settings of the "Re-compress images" mode: Image quality (JPEG quality, 70 by default) and "Downscale images larger than" (a maximum size in pixels, 1800 by default, applied to the longest side of each image — about 150 dpi along the long side of an A4 page). As a rough guide, quality 70 with 1200 px suits email and the web, quality 80 with 1800 px suits reading on tablets, and "Keep original size" with quality 90 suits a file that will be printed. Its "Rasterise pages" mode is different: it turns every page, text included, into a JPEG at a chosen dpi — the grayscale tool's whole-page mode does the same — so text is no longer sharp, selectable or searchable. Nothing is uploaded, so the largest files are the ones that benefit most from local processing.
| Cause | Lever | Kind | Watch out |
|---|---|---|---|
| ImagesScan stored lossless: up to 5–20 MB a page | Downsample; re-encode as JPEG at quality 75–85600 dpi → a quarter of the pixels; photos five times smaller or more | Lossy | Line drawings, screenshots, text scans: keep lossless or high qualityBelow quality 50 or 72 dpi: ugly for a few percent saved |
| Colour in scans | Convert to grayscaleTypically 30–60 % smaller | Lossy | Only if colour is not needed |
| Fonts2–20 MB per full font | Subset: embed only the glyphs used | Lossless for the reader | Keep full fonts if a form still needs fillingA subset font cannot type new text later |
| Incremental updatesEvery earlier version kept | A fresh cross-reference tableDrops the leftovers of old revisions | Lossless | no caveat in this guide |
| Duplicate objectsOnce per page, not per file | Merge identical objects | Lossless | no caveat in this guide |
| ExtrasThumbnails, embedded files, JavaScript, metadata | Remove themNot needed to display the pages | RemovalNothing you see changes; the item is gone | Keep structure tagsScreen readers and reflow depend on them |
- By far the usual culprit
Lossless steps alone can halve a carelessly saved file but save only a few percent on a well-exported one; the honest number is the one measured on your document.
Choosing a target
- Email attachment limit (10–25 MB): start at quality 80 with images capped at 1800 px; go down to quality 70 and 1200 px only if it is still too large.
- Upload portals with a hard cap (2–5 MB): quality 70 and 1200 px, then grayscale if colour is not needed — a colour scan converted to grayscale is typically 30–60 % smaller. Rasterising whole pages is a last resort, because any real text becomes an image.
- Archive or legal copy: lossless only, so the document stays exactly what was signed.
- Web viewing: linearise ("Fast Web View") in addition to compressing, so the first page appears before the whole file has downloaded.
- Scanned documents you need to search: run OCR first, on the full-resolution scan, then compress by re-compressing the images. Recognition accuracy depends on the resolution and sharpness OCR sees, so downsampling first costs accuracy; the text layer adds only a few kilobytes per page and survives image re-compression (but not rasterising).
When a PDF cannot get smaller
If a size analysis shows that images are already JPEG at a modest resolution, fonts are subset, and there are no old revisions, the file is close to its floor. Pushing the JPEG quality below 50 or the resolution below 72 dpi makes the document ugly for a few percent of savings. At that point the useful options are structural: split the document, remove pages that are not needed, or convert a scan to grayscale.
Beware of tools that always report a big saving. A compressor cannot know in advance what your file contains; one that promises "up to 90 %" on every file is describing its best case, not yours. The honest number is the one measured on your document, shown before you download.
Try it: PDF Size Analyzer Try it: Split PDF Try it: Delete PDF Pages
Frequently asked questions
Does compressing a PDF reduce its quality?
Lossless compression does not; it only rewrites the file more efficiently. Lossy image compression changes images — downsampled and re-encoded — and the amount is under your control; text, vector graphics and fonts are left as they are. The exception is rasterising: a mode that renders whole pages to images (such as "Rasterise pages" in Compress PDF or the whole-page mode of Grayscale PDF) turns text into pixels, so it can blur and is no longer selectable.
Why did my PDF not get smaller?
Because it was already well made: subset fonts, JPEG images at a sensible resolution, no leftover revisions. Look at the size analysis; if images dominate and are still large, try a lower image quality, a smaller maximum image size or grayscale; otherwise the file is at its floor.
Is it safe to compress a signed or certified PDF?
Any rewrite of the file invalidates a digital signature, because the signed bytes change. Compress before signing, or keep the signed original and compress a copy for circulation.
Can I compress a PDF without uploading it?
Yes. The compression tools on this site run entirely in the browser — the file is opened and rewritten on your device, the before/after sizes are measured there, and only the result you download exists.
References
- ISO 32000-2:2020 — Document management — Portable document format — Part 2: PDF 2.0The current PDF standard: file structure, objects, pages, fonts, annotations, forms and encryption.
- PDF Reference — ISO 32000-1:2008 (PDF 1.7), Adobe copyThe freely readable PDF 1.7 specification: page trees, content streams, metadata, permissions and the standard security handler.
Tools mentioned in this guide
Reduce PDF file size by re-compressing images, rewriting the structure or rasterising pages — with real before/after numbers.
Find out why a PDF is so large: bytes by category (images, fonts, content, metadata), the biggest objects and what would help.
Convert a colour PDF to grayscale — either the whole page or only the embedded images.
Linearise a PDF for Fast Web View so the first page shows while the rest downloads — real linearisation via qpdf in WebAssembly.
Extract every image embedded in a PDF at its original resolution, and see dimensions, colour space and encoding of each.
Remove JavaScript, open actions, launch actions, attachments, links, annotations, forms and metadata from a PDF.
Convert PDF pages to JPG images at the resolution and quality you choose — all pages or a selection.
Flatten PDF forms so filled fields become permanent page content, and optionally remove annotations.