How to Compress a PDF Online

To compress a PDF online, open the PDF Compressor, drop in one PDF (up to 50 MB), and click Compress PDF. The tool rebuilds the file in your browser, shows the original and new sizes, and only offers a smaller copy if it actually saved space. Results depend heavily on how the PDF was created: structurally messy files can shrink, while scanned, image-heavy PDFs usually barely change.
Try it now
PDF Compressor
Loading tool…
How to compress a PDF step by step
- Add the file. Drop a PDF onto Drop a PDF to compress, or click to choose one. The tool takes one PDF at a time, up to 50 MB.
- Compress. Click Compress PDF. The button shows Compressing… while the file is rebuilt.
- Read the result. If the file got smaller, you'll see PDF compressed with four numbers: Original size, Output size, Saved, and Reduction as a percentage. If it didn't get smaller, you'll see PDF is already optimized.
- Download. Click Download. A smaller file is saved as
yourfile-compressed.pdf. If the original was kept, you get the original file back under its own name. - Start over. Click Reset to clear the file and try another.
What this compressor actually does
It helps to know what's happening so your expectations are realistic. The PDF Compressor loads your PDF with the pdf-lib library and saves it again using object streams, a PDF feature that packs the document's many small internal objects together more compactly. Re-saving also writes a clean copy of the file's structure.
It does not:
- resample or re-encode images
- lower image resolution
- remove fonts, pages, or text
- offer quality levels or presets
So you'll never see blurry images or missing content from this tool. The trade-off is that savings only come from the file's structure. A PDF made up mostly of large photos or scanned pages stays roughly the same size because the images are most of its bytes.
PDFs most likely to shrink:
- files made by software that writes an uncompressed or verbose internal structure
- documents with a large number of small objects, such as long text-heavy reports
- files whose structure is simply less efficient than a modern re-save
PDFs unlikely to shrink much:
- scanned documents and phone "scanner app" PDFs, where each page is a photo
- PDFs already exported with "reduce file size" or "optimize" options
- small, simple PDFs that are already compact
Worked example: reading the result panel
Suppose you're emailing quarterly-report.pdf and want to know whether compressing it is worthwhile. You drop it in and click Compress PDF.
If the panel showed Original size 8 MB and Output size 6 MB, then Saved would read 2 MB and Reduction would read 25.0% (2 ÷ 8 = 0.25). You'd download quarterly-report-compressed.pdf.
If instead the panel said PDF is already optimized, with output size equal to original size, Saved shows 0 B. Nothing is lost by trying, because you simply keep your original. At that point, the options in the next section are your best bet.
When the compressor isn't enough
If you need a much smaller file and structure compression didn't do it, try these approaches:
- Send fewer pages. Often the fastest win. Use the PDF Splitter to keep only the pages the recipient needs, or break a large file into parts that each fit under an upload limit. Our guide to splitting a PDF online walks through both.
- Rebuild a scanned PDF from images. For scans where you don't need selectable text, export the pages with PDF to JPG at a lower JPEG quality setting, then rebuild them into a PDF with JPG to PDF. This re-encodes the images, which is what actually shrinks a scan. Text won't be selectable afterwards, and how much smaller the file gets depends on the source. PDF compression vs conversion explains this trade-off in detail.
- Shrink images before they go into a PDF. If you're building a PDF from photos, run them through the Image Compressor first. JPG to PDF embeds each image as it is, so smaller images mean a smaller PDF.
Troubleshooting
"Could not compress PDF" error. The file may be damaged, or it may not be a real PDF despite the extension. Open it in your usual PDF viewer to check, and re-export it from the original app if possible.
Password-protected PDFs. The compressor can't unlock encrypted files. It may fail, or produce an output that doesn't open properly. Remove the password in an app that knows it (only for files you're allowed to modify), then compress the unlocked copy.
The file isn't added. Files over 50 MB, empty files, and non-PDFs are skipped. For larger files, split the PDF into parts first and compress each part.
Slow or crashing on a phone. The whole file is loaded into memory and rebuilt there. A 40 to 50 MB PDF can be heavy for a phone with little RAM. Close other tabs or switch to a computer.
Scanned PDF barely changed. That's expected with this tool, as explained above. Use the image-based workaround or one of the desktop options below.
Other ways to compress a PDF
- macOS Preview. Choose File > Export and set Quartz Filter to Reduce File Size. This does recompress images, sometimes aggressively, so check that text and photos are still readable.
- Adobe Acrobat. Acrobat's Reduce File Size and Optimize PDF features can downsample images and remove unused data, with fine control over the settings. It's the strongest option for scans, though the desktop app is paid. Adobe's free online compressor uploads your file to Adobe.
- Re-export from the source. If you made the PDF yourself in Word, Pages, or Google Docs, exporting again with a smaller or "minimum size" option often beats any after-the-fact compressor.
- Windows "Microsoft Print to PDF" or Chrome "Save as PDF". Printing a PDF to a new PDF can sometimes shrink it, but it can also make the file larger or flatten links and form fields. Treat it as an experiment rather than a reliable fix.
Privacy
The PDF Compressor runs entirely in your browser using pdf-lib. Your PDF is read from your device, rebuilt in memory, and saved back to your device. It's never uploaded to Toolstik servers, which matters for contracts, tax documents, and medical records.
For the full set of tools, including merging and image conversion, see the best free PDF tools online.
Frequently asked questions
Tools in this guide
PDF Compressor
Reduce PDF file size in your browser by rebuilding the document structure.
PDF Splitter
Split a PDF into separate files or extract page ranges. Processed locally in your browser.
PDF to JPG
Convert every PDF page to a JPG image. Set quality and download as a ZIP.
JPG to PDF
Convert JPG and PNG images to PDF with page size, orientation, and margin controls.
Keep reading
- PDFPDF Compression vs PDF Conversion: What's the Difference?PDF compression vs conversion: learn when to shrink a PDF, when to turn it into images or rebuild it from JPGs, and what each choice costs in text and quality.
- PDFHow to Split a PDF into Multiple FilesSplit a PDF online into multiple files: save every page as its own PDF or break it into page groups like chapters, then download a ZIP. Runs in your browser.
- PDFBest Free PDF Tools Online: Merge, Compress, Convert & SplitThe best free PDF tools online for merging, splitting, compressing, and converting PDFs, all running in your browser with no uploads, sign-ups, or watermarks.