Compress PDF to 5MB
Upload any PDF and automatically reduce its file size to 5MB or less
Drop a PDF that’s too big for a 5MB upload limit, and get back one that fits — with the best image quality the size allows. Each page is re-rendered as an optimized JPEG and packed into a fresh PDF, with an adaptive algorithm that maxes out quality right up to the 5MB ceiling.
And everything runs in your browser. Nothing gets uploaded.
How It Works
Each page gets rendered to a canvas using PDF.js, converted to a JPEG at a specific quality level, and embedded into a fresh PDF via pdf-lib. The tool tries multiple scale/quality combinations — starting generous and working down — until the total file size drops below 5MB. Once it finds a combination that works, it binary-searches upward to maximize quality within the size limit. The whole thing takes seconds for most documents.
Examples
Job Application with Scanned Documents
A candidate scanned their diploma, transcripts, and ID into one PDF for a government job portal that caps uploads at 5MB.
scanned-documents.pdf
12 pages, 18.4 MB
300 DPI color scans
scanned-documents-5mb.pdf
12 pages, 4.7 MB
73% reduction
Client Presentation Deck
Marketing team exported a 40-slide deck from PowerPoint as PDF. Full of high-res product photos. Email bounced back.
Q4-presentation.pdf
40 pages, 32 MB
Q4-presentation-5mb.pdf
40 pages, 4.9 MB
85% reduction
Insurance Claim with Photos
Someone photographed car damage from multiple angles and combined 8 photos into a PDF. The insurer’s portal won’t accept anything over 5MB.
claim-photos.pdf
8 pages, 9.2 MB
iPhone 15 full-res photos
claim-photos-5mb.pdf
8 pages, 3.8 MB
59% reduction
Who Uses This
Shrinking scanned resumes, transcripts, and certificates for online application portals.
Meeting strict upload limits on tax, visa, and permit submission forms.
Getting presentation decks and reports under email attachment limits.
Submitting assignments, theses, and application materials to university portals.
Common Mistakes
This tool converts pages to JPEG images inside a PDF. Text won’t be selectable or searchable afterward. If you need searchable text, use a lighter compression method or run OCR on the output.
More pages means less space per page. A 200-page PDF squeezed into 5MB gives each page roughly 25KB — that’s blurry. Split long documents into smaller chunks first, then compress each one.
The tool will still re-render it as JPEG images, which can actually increase the file size or degrade quality for no reason. Check your file size first — if it is already under 5MB, you don’t need this.
Technical Details
- Processing: 100% client-side — nothing leaves your browser
- Rendering Engine: PDF.js (Mozilla) for page rendering
- PDF Builder: pdf-lib for assembling the compressed output
- Compression Method: JPEG re-rendering with adaptive quality/scale
- Target Size: 5MB (5,120 KB) maximum
- Browser Support: Chrome, Firefox, Safari, Edge
Frequently Asked Questions
Why do email providers and portals have a 5MB limit?
Most email servers cap attachments at 20-25MB, but many government portals, job sites, and insurance forms set their own limits — often 5MB or even lower. It’s a storage and bandwidth decision on their end. You can’t change it, so the file has to shrink.
Will my compressed PDF look blurry?
It depends on page count. A 5-page PDF compressed to 5MB still looks sharp — each page gets about 1MB of image data. A 100-page document will look noticeably softer because there is less space per page. For long documents, splitting into parts before compressing gives better results.
Can I still copy text from the compressed PDF?
No. The compression turns each page into a JPEG image, so text becomes part of the picture. If you need copyable text afterward, you’d have to run OCR software on the compressed file. For most upload scenarios, this isn’t an issue since the recipient just needs to read the document.
Is there a page limit?
No hard limit. But practically, anything over 50-60 pages gets tight for a 5MB target. The tool will compress whatever you throw at it — the question is whether the output quality is acceptable. Fewer pages means better quality per page.
Does this tool upload my files anywhere?
Nope. Everything happens right in your browser tab. PDF.js renders the pages, pdf-lib builds the new file, and the download comes from a local blob URL. No server ever sees your document. Close the tab and the data is gone.