PDF Compression Calculator
Estimate the image DPI and quality a PDF needs to hit a target file size, from its page count and current size.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the PDF Compression Calculator does
This PDF compression calculator will estimate the image DPI and quality a PDF needs to hit a target file size, from its page count and current size. Fill in all 4 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for working out what DPI a scan needs to fit an email attachment limit. People using this often want the PDF info and page counter next.
How to use it
- Enter the page count and current size of your document.
- Enter the size you need to reach, such as a 5 MB email attachment limit.
- Choose what the pages mostly contain, since that determines what is driving the size.
- Read the per-page budget and the suggested DPI, then check the feasibility verdict before committing.
How it works
PDF file size is almost always dominated by one thing: embedded images. A text and vector document costs a few kilobytes per page plus a one-off charge for embedded font subsets, which is why a hundred-page report exported from a word processor is often under a megabyte. A twenty-page scan at 300 DPI in colour can be eighty megabytes, because every page is a full-resolution photograph of a sheet of paper.
That tells you where compression effort belongs. Working out a per-page budget — your target divided by the page count — converts an abstract goal into the concrete question of what each page can afford, and the DPI suggestion follows from that. A 250 KB page budget comfortably holds 300 DPI greyscale; a 25 KB budget holds 150 DPI bitonal and nothing more.
The three biggest levers, in order: resolution, colour depth and encoding. Halving the DPI quarters the pixel count. Converting a colour scan to greyscale cuts it to a third of the data before compression; converting text-only pages to bitonal black and white cuts it dramatically further, and CCITT or JBIG2 encoding of bitonal scans is extraordinarily efficient on text. Those choices are also irreversible, which is why keeping the original is part of the process.
Two cautions. First, structural PDF tools — including the page editors on this site — cannot compress an image-heavy document, because they copy image data without touching it; shrinking such a file needs a tool that decodes and re-encodes the images, which is a different operation. Second, if the aim is to email a scanned text document, running OCR and exporting as text is often the right answer rather than compressing the scan: it produces a file a hundredth of the size, and it is searchable.
When to use it
- Working out what DPI a scan needs to fit an email attachment limit.
- Checking whether a target file size is achievable before trying.
- Deciding between greyscale and bitonal for a batch of scanned documents.
- Estimating how large a text-only version of a scanned document would be.
Common mistakes to avoid
- Expecting a structural PDF tool to shrink an image-heavy file. It copies image data untouched.
- Compressing a scanned text document when OCR and a text export would be a hundred times smaller and searchable.
- Downsampling without keeping the original. Resolution and colour depth cannot be recovered afterwards.
Frequently asked questions
What DPI should I scan at to keep PDFs small?
200 DPI greyscale is a good general choice for text documents, giving roughly 100–150 KB per page. For text-only pages, 300 DPI bitonal with CCITT or JBIG2 encoding is both smaller and sharper. Reserve 300 DPI colour for pages where the colour carries information.
Why did re-saving my PDF not make it smaller?
Because the tool restructured the document without touching the images, and images are what the size consists of. Shrinking an image-heavy PDF requires decoding and re-encoding those images at lower resolution or quality.
What is the smallest a scanned page can realistically be?
A bitonal text page at 300 DPI with JBIG2 or CCITT Group 4 encoding commonly lands between 20 and 60 KB. Below that, the honest answer is to OCR the document and export it as text, which costs a few kilobytes per page and is searchable.