How to Compress a PDF to an Exact Size for an Upload Limit
Why scanned PDFs are big, how far you can shrink one and still read it, and how to land under a form's limit without guessing. With the numbers behind it.
By the WipeMark team7 min read
Key takeaways
- A scanned PDF is a stack of photos. Its size is almost all image data, so shrinking it means redrawing each page at a lower resolution and stronger JPEG compression.
- Resolution sets readability. 10 pt type is about 21 pixels tall at 150 dpi and 10 at 72 dpi; below about 8 pixels the letters run together.
- The only reliable way to hit an exact limit is to build the PDF and measure it, adjusting until it fits. Presets like "medium compression" can't promise a number.
- Grayscale helps documents. In our tests a grayscale JPEG was 10% to 23% smaller than color at the same quality, room that goes into sharper text.
- Read the limit the strict way. 2 MB is 2,000,000 bytes on some sites and 2,097,152 on others; stay under the smaller figure.
An application portal asks for your degree certificate as a PDF "not exceeding 2 MB", or 500 KB, or 200 KB. Your phone's scanning app produced a 4 MB file. Most free compressors offer "low", "medium" and "high" and give you whatever size comes out, which may or may not fit. This guide explains why scanned PDFs are big, how small one can get before the text suffers, and how to land under an exact limit without trial and error.
Why a scanned PDF is so big
A PDF made by a scanner or a scanning app is not text. Each page is a photograph of the paper, wrapped in a PDF. Apps save those photos at high resolution, often 300 dpi, and high JPEG quality, because they don't know where the file is going. An A4 page at 300 dpi is 2480 × 3508 pixels, almost 9 million pixels, and a page can easily be 1 to 3 MB.
Text PDFs, the kind exported from Word or a browser, are different: the letters are stored as text with fonts, and the file is small. If a text PDF is big, the weight is usually embedded images or fonts. The rest of this guide is about scans, which is what upload limits usually catch.
What compression actually does
There are three ways to shrink a scanned PDF, and they stack.
Lower the resolution. Redraw each page with fewer pixels. Going from 300 dpi to 150 dpi cuts the pixel count to a quarter.
Raise the JPEG compression. Lower quality throws away detail the eye notices least, at first: subtle texture in the paper, slight noise. Pushed far, it smears the edges of letters.
Drop the color. A grayscale image stores one channel instead of three. In our tests with mozjpeg, the JPEG encoder our tool uses, a grayscale JPEG was 10% to 23% smaller than the same image in color at the same quality.
Re-packing the PDF itself, removing duplicate objects or metadata, saves a few kilobytes at most on a scan. That is why "compress" buttons that only do this barely change the size.
How small can you go and still read it?
Readability comes down to how many pixels tall the letters are. Type is measured in points, 72 to the inch, so the pixel height of a line of text is the point size divided by 72 and multiplied by the dpi.
| DPI | A4 page in pixels | 10 pt type |
|---|---|---|
| 300 | 2480 × 3508 | 41.7 px |
| 150 | 1240 × 1754 | 20.8 px |
| 110 | 909 × 1286 | 15.3 px |
| 90 | 744 × 1052 | 12.5 px |
| 72 | 595 × 842 | 10.0 px |
| 50 | 413 × 585 | 6.9 px |
As a rule of thumb, from how JPEG treats small detail: letters 12 pixels or taller read cleanly after compression, 8 to 12 pixels read if you zoom in, and below about 8 pixels the strokes run together. So 150 dpi is comfortable for normal type, 90 dpi is about the floor for 10 pt text, and the fine print on a certificate, often 7 or 8 pt, needs more.
Try your own document's smallest type:
How small can a scan go and stay readable?
| DPI | A4 page | 10 pt type | |
|---|---|---|---|
| 300 | 2480 × 3508 | 41.7 px | Clear |
| 200 | 1654 × 2339 | 27.8 px | Clear |
| 150 | 1240 × 1754 | 20.8 px | Clear |
| 110 | 909 × 1286 | 15.3 px | Clear |
| 90 | 744 × 1052 | 12.5 px | Clear |
| 72 | 595 × 842 | 10.0 px | Zoom to read |
| 60 | 496 × 702 | 8.3 px | Zoom to read |
| 50 | 413 × 585 | 6.9 px | Letters merge |
A rule of thumb from how JPEG treats small text: 12 px and up reads cleanly, 8 to 12 px needs zoom, under 8 px the letters run together.
Hitting an exact limit
Because image size depends on what is in the image, no setting gives a predictable file size. A page of plain typed text compresses far better than a page with a photo or a patterned background. The only way to land just under a limit is to measure:
- Draw each page at a starting resolution, 150 dpi.
- Save every page as a JPEG at some quality, build the PDF, and measure the whole file.
- If it is over the limit, lower the quality; if under, raise it. Repeat, halving the step each time, until the file is as good as it can be under the limit. Seven or eight rounds are enough.
- If even the lowest quality is over, drop the resolution one step, to 110, then 90, 72, 60 and 50 dpi, and repeat.
Measuring the finished PDF, not the images, matters: the PDF wrapper adds a few hundred bytes a page, and on a tight limit that is enough to fail.
This is what our PDF compressor does, entirely in your browser. On a three-page test PDF of 808 KB, built from full-size photos, it reached 195 KB for a 200 KB limit at 150 dpi, at 33% JPEG quality, in color.
Measures the whole PDF against your limit, steps the resolution down only if it must, and runs on your device. Nothing is uploaded.
Compress a PDF nowReading the limit correctly
Upload limits are written in KB or MB, and the two ways of counting differ: 1 MB is 1,000,000 bytes in decimal units and 1,048,576 in binary ones. A "2 MB" limit can be 2,000,000 or 2,097,152 bytes, a gap of nearly 100 KB. A file in that gap passes on one site and fails on another.
Read every maximum the decimal way: 200 KB means 200,000 bytes, 2 MB means 2,000,000. Then the file passes however the site counts. The guide to KB and KiB goes into why computers and forms disagree and how to read a file's exact size.
Color or black and white
For most documents, black and white (strictly, grayscale) is the better choice under a tight limit. Certificates, transcripts, bank statements and IDs are read for their text, and the color adds bytes without adding information. The bytes saved go back into resolution or quality, and the small print stays sharper.
Keep color when the color carries meaning: a colored university seal or stamp a reviewer needs to recognise, a photo on an ID card, or a signature in blue ink that the form says must be blue.
Photos of pages instead of a PDF
If you only have phone photos of the pages, you can turn them into one PDF in the same step. Pick the photos in page order; each becomes one page the shape of the photo, scaled to A4. Take the photos flat and square in daylight, with the paper filling the frame: everything around the paper, the desk, the shadow of your phone, costs bytes and looks careless.
When the PDF is text, not a scan
If you exported the PDF from a word processor or a browser, it is probably small already, and the tool will tell you when it is under the limit before you do anything. Upload it as it is: it keeps selectable text and looks sharper than any image.
If a text PDF is still too big, the weight is usually photos or logos placed in the document, or embedded fonts. Going back to the source works better than compressing the PDF: in the word processor, compress the pictures or replace them with smaller ones, then export again. Redrawing a text PDF as images, which is what a scan compressor does, fits it under the limit too, but the text becomes pictures and can no longer be searched or copied.
Common mistakes
Scanning at the highest setting "to be safe". 600 dpi color makes enormous files and gains nothing on a screen. Scan at 200 or 300 dpi and let the compressor bring it down.
Compressing the same file again and again. Each pass re-encodes the pages and loses a little more. Start from the original every time.
Shrinking past readability. A file under the limit that the reviewer can't read gets rejected later, by a person. Check the smallest print.
Including pages nobody asked for. Every extra page shares the same limit. Upload what the form asks for.
Renaming a JPG to .pdf. Changing the extension doesn't change what is inside the file. Many portals check the contents and reject it, and the ones that don't may show the reviewer a file that won't open. Turn the photos into a real PDF instead.
Leaving it to the last evening. Portals slow down near a deadline, and a file that fails at 11:50 pm leaves no time to fix it. Compress and test the upload a few days early.
Before you upload
- Open the compressed PDF and zoom to 100% on the smallest print. If you can't read it, the reviewer can't either: use black and white, remove pages the form doesn't need, or check whether a bigger limit is allowed.
- Check the page count against what the form asked for.
- Check the size in bytes in Properties or Get Info against the limit read the decimal way.
- Keep your original. The compressed PDF's pages are pictures, so its text can't be selected or searched, and you will want the full-quality version for anything else.
Privacy
A certificate, a transcript or an ID document is exactly the kind of file you shouldn't scatter across the internet. Many free online compressors upload the file to their servers to process it. A compressor that runs in your browser does the work on your own device, and the file never leaves it. Whatever tool you use, the only place your document needs to go is the portal that asked for it.
Questions people ask
How do I compress a PDF to under 200 KB?
Redraw each page as an image at a resolution that keeps the text readable, around 150 dpi, save it as a JPEG, rebuild the PDF, and measure it. Adjust the JPEG quality until the PDF is just under 200,000 bytes; if even low quality is too big, lower the resolution and repeat. Our PDF compressor does exactly this in your browser.
Why does my PDF stay big after compressing?
Most compressors only re-pack the file or apply a fixed quality setting. A scanned page saved at 300 dpi and high quality needs its images re-encoded at a lower resolution to shrink a lot. If the PDF is text rather than scans, its size may be mostly fonts, which image compression can't touch.
Will compressing a PDF make the text unreadable?
It can if you go too far. At 150 dpi normal 10 pt type is about 21 pixels tall and reads cleanly; at 72 dpi it is 10 pixels and needs zooming; at 50 dpi it is about 7 and starts to blur. Check the smallest print in the result before uploading.
Should I use black and white?
For printed documents, yes. Grayscale drops the color information, so the same size limit leaves more room for resolution and quality. Keep color only when a seal, stamp or photo on the document has to be seen in color.
Is it safe to upload my documents to a PDF compressor?
Many online compressors upload your file to their server. Certificates and ID documents are personal data, so prefer a tool that works on your own device. Ours runs in the browser and never uploads the file.
Fit a PDF under any limit
Free, no sign-up. Runs on your device; nothing is uploaded.