Compress PDF to 1MB
Reduce PDF file sizes for email, web forms, and uploads, from 5MB down to 2MB, 1MB, or even smaller. Free, instant, and browser-based. No server uploads. Your documents stay private.
PDF pages may be converted to images
If the file is too large to compress losslessly, each page will be rasterized as a JPEG image. Text will no longer be selectable or searchable in the compressed output.
How PDF compression works: two passes, in order
Pass 1 — lossless optimization. pdf-lib parses the PDF's internal object structure, strips metadata (author, editing history, embedded thumbnails), deduplicates repeated objects, and recompresses the internal streams with a tighter DEFLATE setting than most PDF exporters use by default. Nothing about how the document looks or reads changes — text stays selectable, fonts stay embedded. A typical text-heavy PDF exported from Word or Google Docs shrinks by 20-40% at this stage alone, because the bulk of an exported PDF's weight is often unused font subsets and editor metadata rather than content.
Pass 2 — page rasterization, only if Pass 1 wasn't enough. Each page is rendered to a canvas at a resolution chosen to stay legible (roughly 150-200 DPI at typical page sizes), then re-encoded as JPEG and reassembled into a new PDF. This is the same fallback technique desktop tools like Acrobat use for aggressive compression. It works on any PDF, including scanned documents that were never optimizable losslessly in the first place, but it removes the text layer — the page becomes a picture of the text rather than the text itself.
The compressor tries Pass 1 first and only escalates to Pass 2 if the result is still over your target, so a PDF that's already close to your limit may finish without losing text selectability at all.
- 1Upload your PDF. Drag and drop or click to select a PDF document from your device.
- 2Choose target size. Set your target: 5MB, 2MB, 1MB, or a custom limit. Pass 1 tries lossless optimization; Pass 2 rasterizes pages if needed.
- 3Download compressed PDF. Download the compressed PDF directly to your device. No server upload. Your documents stay private.
Which PDFs shrink the most: scanned vs. text
Text PDFs exported from Word, Google Docs, or a print-to-PDF driver are usually small already, because most of the weight is fonts, metadata, and unused objects. Pass 1 lossless optimization typically brings these under 1MB while keeping the text fully selectable and searchable.
Scanned PDFs, where each page was photographed or run through a scanner, are really just images wrapped in a PDF, so they start large — a phone-scanned 10-page document at full camera resolution commonly runs 15-30MB. These need Pass 2, which recompresses every page as a high-resolution JPEG. You can reach almost any target size, but the text is not selectable unless the scan was already run through OCR before you got it.
If your PDF mixes both, such as a text report with a couple of scanned signature pages, the compressor keeps the light pages lossless where it can and only rasterizes the heavy image pages needed to reach your target — so a 20-page report with 2 scanned pages might keep 18 pages fully text-selectable.
Which target for which document
| Document | Target | Why |
|---|---|---|
| A Word/Docs export that's still too big for a web form | Target 1MB, let Pass 1 run alone | Text PDFs are almost entirely fonts and metadata — lossless optimization alone usually clears a 1MB cap with the text still selectable. |
| A scanned contract or ID going to a government portal | Target 500KB-1MB | Scanned pages are images already; Pass 2 rasterization is doing the real work regardless of your target, so there's no lossless option to protect. |
| A slide deck exported to PDF for email | Target 2-5MB depending on the recipient's limit | Decks carry embedded images at presentation resolution; a moderate target keeps them legible without forcing aggressive rasterization. |
| A report where a few pages have scanned signatures | Target 1-2MB | The compressor rasterizes only the heavy pages needed to hit your target, leaving text pages selectable — a tighter target forces more pages into Pass 2. |
| Several PDFs that need to become one file under 1MB | Merge first, then compress the result | Compressing each file separately before merging wastes the compression budget — merge once, then let the 2-pass algorithm work on the combined page count. |
Compress a PDF to an exact size
Type any target into the size control: 1MB for most web upload forms, 2MB or 5MB for email attachments, or a strict cap like 500KB for government, visa, and job-application portals. You can enter the value in MB or KB.
The compressor works down from the original and stops as soon as the file fits, so you keep the best quality that still meets your limit. Smaller targets lean harder on Pass 2, so a scanned document squeezed to 500KB will look softer than the same file at 2MB. Need an exact image size instead? Use compress image to size.
Known limits
Very long PDFs (100+ pages) that need Pass 2 rasterization can take a while and use a meaningful amount of memory, since every page becomes a full-resolution canvas bitmap before re-encoding. On memory-constrained mobile browsers this occasionally fails partway through; a desktop browser handles large documents more reliably.
PDFs with interactive form fields, embedded video, or JavaScript will have those features stripped if the file needs Pass 2 rasterization, since the output becomes a flat sequence of page images. If your PDF has fillable fields and it's already under your target after Pass 1, those fields are preserved — the loss only happens when rasterization is required.
Password-protected or encrypted PDFs need to be unlocked before compression — this tool doesn't attempt to read or crack encrypted content, it can only process a PDF it can already open.
Merged several PDFs? Compress the combined file to 1MB
Combine your documents with the free Merge PDF tool, then bring the result back here to shrink it to 1MB or your target size. Both steps run entirely in your browser.
Frequently asked questions
Will the compressed PDF still be readable?
Yes. For small PDFs, we use lossless compression (stripping metadata) which preserves full quality. For larger PDFs that need rasterization, the pages become high-resolution images that look the same visually but text is no longer selectable.
Why is text no longer selectable after compression?
When a PDF is too large to compress losslessly, we render each page to an image and re-embed it. This is the same technique used by Adobe Acrobat and other PDF tools. The visual output looks identical but the text layer is removed.
What if my PDF can't reach the target size?
We'll show you the best size achieved. Very large PDFs with many high-resolution images may not reach every target size even at low quality settings. In that case, consider splitting the PDF into smaller parts.
Does compressing my PDF here send it to a server?
No. pdf-lib — the library doing the work — parses and rewrites the PDF's byte stream entirely inside your browser's JavaScript engine; there is no upload endpoint in this tool's code for it to call. Pass 2's rasterization uses the Canvas API to render each page to an image, again in memory on your device. You can verify this yourself in your browser's Network tab: no request carries your file's bytes.
Can I compress to 2MB, 5MB, or another size?
Yes. Use the target size control to set 5MB, 2MB, 1MB, or any custom limit. The compressor works down from large to small, as aggressively as your target requires.
How do I compress a scanned PDF?
Drop it in and pick a target size. Scanned pages are images, so the compressor uses Pass 2 to recompress each page. You can reach almost any size, though the text stays non-selectable unless the scan was already run through OCR. A 20MB scan usually drops under 2MB with no meaningful loss of readability.
Can I compress a PDF to exactly 500KB or 300KB?
Yes. Enter the target in KB, for example 500kb, in the size control. Very small targets rely on aggressive rasterization, so text-heavy pages can look softer. If readability matters, try 800KB to 1MB first.
How do I merge PDFs and compress the result to 1MB?
Use the free Merge PDF tool to combine your files, download the merged PDF, then drop it here and set a 1MB target. Both steps run entirely in your browser with no uploads.
Learn more
From the blog
How to compress PDF for email
Step-by-step guide to reducing PDF file size for email attachments.