How to compress a PDF to meet any upload size limit
Updated June 10, 2026 · 6 min read
You finally finish scanning the lease, the court bundle, or the visa paperwork — and the portal spits it back: "File exceeds the maximum allowed size." This guide explains why PDFs balloon in size, what the upload limits actually are, and how to get under them without turning your document into a blurry, unsearchable mess.
Common upload limits you'll run into
Exact caps vary by institution, but these ranges cover most of what people hit in practice:
| Where you're uploading | Typical limit |
|---|---|
| Email attachments (Gmail, Outlook) | 20–25 MB |
| Court e-filing systems | 10–35 MB, varies by court |
| Immigration & government portals | often 4–6 MB per file |
| Job application systems | 2–5 MB |
| University / scholarship applications | 2–10 MB |
Note how low some of these are. A 6 MB cap sounds generous until you scan a 20-page document and end up with 40 MB.
Why scanned PDFs are so huge
A PDF made from a Word document is mostly text and fonts — usually well under 1 MB. A scanned PDF is completely different: every page is a full photograph of a sheet of paper. At a typical scanner setting of 300 DPI in color, each letter-size page becomes an image of roughly 8 million pixels. Stored at decent quality, that's 1–3 MB per page. A 20-page lease easily reaches 30–50 MB.
The fix is not to retype the document — it's to recompress those embedded page images at a smaller size and quality. Done right, the text stays perfectly readable while the file shrinks by 80–95%.
The trap: compression that destroys your document
There are two fundamentally different ways a tool can compress a PDF, and the difference matters enormously for official documents:
- Rasterizing ("flattening") converts every page — including pages that were real text — into a single low-resolution image. The file gets smaller, but text can no longer be selected, copied, or searched, and screen readers fail. Some courts and agencies require searchable text and will reject flattened files.
- Structural compression opens the PDF's internal structure and recompresses only the embedded images, leaving text layers, fonts, vector graphics, bookmarks, and hyperlinks untouched. The result is still a proper PDF — just smaller.
HandyCompress uses structural compression. If your PDF contains selectable text before compression, it contains selectable text after.
Step by step: hitting a target size
- Open the PDF compressor and drop your file. Processing happens in your browser — the file never uploads anywhere, which matters when the document is a tax return or a medical record.
- Pick a preset or set a target. The presets (Email / Government / Web / Print) cover the common cases. If the portal says "maximum 6 MB," use the target-size mode and type it in — the tool searches for the highest quality that fits under your number.
- Check the result. Open the compressed file and zoom in on a page. Scanned text should still be crisp at 100% zoom.
- Download. The compressed copy saves alongside your original — nothing is overwritten.
Compress your PDF now — free, no upload
Set an exact target size or pick a preset. Text stays selectable. Files never leave your device.
Try the PDF compressor →Still too big? Three more levers
- Rescan smarter. If you control the scanner, 200 DPI grayscale is plenty for text documents and produces files a fraction of the size of 600 DPI color.
- Split the document. Many portals accept multiple files. Splitting a 60-page bundle into three 20-page parts often beats compressing harder.
- Remove unneeded pages. Blank backs of pages from duplex scanning add megabytes for nothing.
A note on privacy
Think about what people compress to meet upload limits: court filings, immigration paperwork, tax documents, medical records. These are precisely the files you shouldn't hand to a random "free online compressor" that processes them on its servers. HandyCompress runs entirely in your browser via WebAssembly — you can disconnect from the internet after the page loads and it still works. Read more in how we verify that claim.
Quick answers
How much can a scanned PDF be compressed?
Typically 80–95%. A 40 MB scan at 300 DPI color usually compresses to 2–6 MB while staying clearly readable, because most of the original size is image detail finer than anyone needs for reading text.
Will compressing a PDF make the text unselectable?
Only if the tool rasterizes pages. Structural compression — what HandyCompress uses — recompresses only the embedded images and leaves text layers, fonts, and links intact. If text was selectable before, it stays selectable.
Is it safe to compress confidential documents online?
Only with a client-side tool. Server-based compressors receive a full copy of your document. HandyCompress processes files in your own browser — nothing is transmitted, so there is no copy to secure, retain, or leak.
Related: HEIC vs JPG vs WebP vs AVIF — which format should you use?