What does Compress PDF do?
Compress a PDF of any size in your browser. Recompress the images inside while text stays selectable, optimise the structure, or flatten pages. No upload.
- Price
- Free
- Account
- Not required
- Processing
- Entirely in your browser; your data and files are not uploaded
- Works on
- Any modern browser on desktop, tablet or phone
- Category
- PDF Tools
How to use the compress pdf
- Drop a PDF onto the drop zone or click to choose one.
- Select a compression level: High (smallest size), Basic (medium size, better quality) or Low (highest quality). Each card shows an estimated final size. Or choose Target size and pick the size you need, from 100 KB up.
- Under More options, "Structure only" re-saves the file without touching any content, and "Flatten pages" turns every page into an image at the resolution and quality you choose.
- Click Compress, compare the before and after sizes, and download the result only if it is smaller.
Worked example
Choosing a mode
A slide deck or carousel exported with full-resolution photos is usually mostly image data, so the High or Basic compression level can shrink it substantially while every word stays selectable. A text-based report exported from a word processor gains little from any mode, and flattening can even make it larger. The tool always shows the exact sizes and tells you when the original is already smaller.
How it works
Compression levels: each embedded photo or scan (JPEG, or 8-bit RGB or grayscale Flate data) is decoded, downscaled so its longest side is at most 1400, 2200 or 3200 pixels (High, Basic or Low), and re-encoded as a JPEG at quality 50, 75 or 85. Target size estimates the compressed size of each image from its pixel count, chooses the best settings that fit (longest side 600 to 3,200 pixels, quality 30 to 85), and if the real file is still too large, recalibrates and compresses again, up to three times. A new image is only kept if it is at least 10% smaller than the original. CMYK, spot-colour, indexed and masked images, JPEG 2000 and soft masks are left untouched so they cannot change colour. Text, fonts and vectors are not modified. Lossless: the document is re-saved with pdf-lib using compressed object streams, which packs the internal object table more tightly. Page content is not changed. Flatten pages: each page is rendered with PDF.js at dpi ÷ 72 times its size, encoded as a JPEG at your quality setting, and placed on a new page of the same size with pdf-lib.
Assumptions
- The compression levels change only image data; very large images are downscaled, which reduces detail when zoomed in.
- Flatten pages output is a PDF of page images. Text becomes part of the picture.
- Savings depend entirely on the file. No target size is promised.
Frequently asked questions
Are my files uploaded?
No. Your PDF is processed in your browser on your own device and is never sent to our server. You can disconnect from the internet after the page loads and the tool still works.
Is there a file size limit?
No. You can add a PDF of any size. Everything runs in your browser, so the practical limit is your device memory: Chrome or Edge on a computer handles the largest files, while phones may run out of memory on files of several hundred MB.
Why did my PDF not get smaller?
Many PDFs are already well compressed. If a PDF is mostly text, there are few images to shrink, and Structure only just repacks internal structure. Flattening can produce larger files for text-only documents because a page image holds more data than the text it replaces. When the output is not smaller, the tool tells you to keep the original.
Does compressing images make text blurry?
No. The compression levels only touch the pictures inside the PDF. Text, fonts and vector graphics are kept as they are, so they stay sharp and selectable. Only Flatten pages (under More options) turns text into part of an image.
What do I lose with Flatten pages?
Text is no longer selectable or searchable, links and form fields stop working, and fine detail gets softer. Use it for scans and photo-heavy documents where that does not matter, and keep your original.
Which resolution should I choose?
72 dpi is fine for on-screen reading, 110 dpi is a good balance, and 150 dpi keeps small text legible when printed at home.
Can I use a password protected PDF?
Not for editing. Encrypted or permission-restricted PDFs are refused, because editing them without decrypting would create a broken file or bypass restrictions set by the author. If you are allowed to, remove the protection in the software that created it first.
Limitations
- There is no file size limit. Very large PDFs are processed in your device memory, so they work best in Chrome or Edge on a computer and can be slow or run out of memory on phones.
- CMYK, spot-colour and JPEG 2000 images are not recompressed, so print-ready PDFs may shrink less.
- Structure only does not downsample images, so savings are often small or zero.
- Flatten pages removes selectable text, links, bookmarks and form fields.
- Encrypted or permission-restricted PDFs cannot be compressed.