Compress PDF Online
Reduce PDF size by recompressing images embedded in the document. Choose your quality target, see the size before and after.
Drag and drop a file here
or click to browse
One PDF
How to use PDF Compress
- Select the oversized PDF you want to shrink; pdf.js opens it locally and reports its current size.
- Pick a target DPI. 150 is the sweet spot for on-screen reading; drop to 100 or 72 for the smallest files.
- Set the JPEG quality slider. Lower quality means a smaller file but more visible artefacts on photos.
- Click "Compress". Each page is rendered to a canvas at the chosen DPI and re-encoded as a JPEG image.
- The smaller PDF downloads automatically, and the tool shows you exactly how many bytes (and what percentage) you saved.
How to compress a PDF in your browser
Large PDFs are a daily nuisance: email servers bounce attachments over 10 MB, web forms reject oversized uploads, and cloud storage fills up fast. This compressor shrinks a PDF by re-rendering each page at a lower resolution and re-encoding it as a JPEG, then assembling the results into a new, lighter document — all without sending your file anywhere.
How the compression works
Every page is drawn onto an off-screen canvas at the DPI (dots per inch) you select. The canvas is then exported as a JPEG at your chosen quality level, and pdf-lib stitches those images into a fresh PDF. Two settings control the final size: DPI governs how many pixels each page contains, and JPEG quality governs how aggressively each pixel is compressed. Lowering either one reduces the file size; lowering both produces the smallest result.
When this tool is the right choice
This rasterizing approach excels on scanned documents, image-heavy brochures, presentations exported to PDF, and anything where the visual layout matters more than selectable text. It is the most dependable way to force a stubborn, oversized scan down to an emailable size. It isnotthe right tool for text-only reports where you need to keep the text searchable — for those, your word processor's native PDF export usually produces a smaller file already.
Choosing DPI and quality for shrinking
For compression these two dials work together, and the goal is the lowest pair that still reads cleanly:
- 72–100 DPI, 50–70% quality: the most aggressive setting — turns a bloated email attachment into something that sails under a 5 MB limit.
- 150 DPI, 70–80% quality: the everyday sweet spot, indistinguishable from the original on any screen.
- 200–300 DPI, 85–95% quality: reserve for documents headed to a printer, where the extra resolution actually shows.
A worked example: a 28 MB colour brochure scan at its native resolution typically lands around 2–3 MB at 100 DPI / 60% quality — roughly a 90% reduction with no visible loss on screen. The tool reports the exact bytes saved after each run, so if the result still feels heavy, step the DPI down one notch and compress again.
Where this shrinks files and where it cannot
Because compression here means re-photographing each page at a lower resolution, the savings are proportional to how much of the page was an image in the first place. A scanned contract or a photo-rich report can shed 80–95% of its weight; a born-digital page that is mostly Helvetica text was already tiny and may even grow slightly when a crisp text page is re-encoded as a JPEG. If the savings disappoint, the file was probably already efficient — that is a sign to stop, not to push the quality lower.
What you trade away
Rasterizing is a one-way door: the output PDF is a stack of flattened images, so highlightable text becomes pixels, Ctrl+F search stops finding anything, hyperlinks go dead, and form fields can no longer be filled. None of that touches your original on disk — only the downloaded copy is flattened — but it is the reason you should treat this as the last step in a workflow, after any merging, page deletion or rotation is already done.
Related PDF tools
- PDF to JPG — if you only need the pages as standalone images rather than a lighter PDF.
- Split PDF — break a memory-busting scan into parts you can compress one at a time.
- Merge PDF — reassemble those compressed parts into a single file.
- Image Compressor — shrink the source photos before you ever build the PDF.
Frequently asked questions
How does this compressor actually shrink the file?
Will text stay selectable and searchable?
What DPI should I choose?
Why did my file barely shrink — or even get bigger?
Does compressing reduce quality permanently?
Is there a file-size or page limit?
Are my files uploaded anywhere?
Related tools
More tools you might find useful in the same flow.
PDF Merge
Free PDF merger: combine any number of PDFs into one file, drag to reorder pages, no signup. Files are processed locally — never uploaded to a server.
PDF Split
Free PDF splitter: extract specific pages, ranges, or split a PDF into separate files. Browser-based, no upload, no quota, no watermarks ever.
PDF to JPG
Convert PDF to JPG online: turn every page of a PDF into a high-quality JPG image and download them all as a ZIP. Free, and files never leave your device.
JPG/PNG to PDF
Combine JPG, PNG, or WebP images into a single PDF online. Drag to reorder pages, then download the finished document instantly — no upload, no signup.
Built by Muhammad Tahir · About