pdf.cihat.dev

Compress PDF

Compress a PDF for free and reduce its file size by saving the photos inside it as smaller JPEGs. You see the size before and after, and the file is compressed in your browser without being uploaded.

How to use it

  1. Drop a PDF on the page or choose one.
  2. Pick a level: Light, Medium or Strong. For a scanned document, try Pages as images.
  3. Press Compress and compare the before and after sizes.
  4. If the file got smaller, press Download compressed PDF.

What browser compression can and cannot do

In most large PDFs, photos take up the space. This tool re-encodes them as smaller JPEGs, removes unused objects left over from earlier edits and saves the file with compressed object streams. Text, fonts, vector drawings and links stay exactly as they were.

A photo is swapped only when the new copy is at least 8% smaller. Some images are skipped: CMYK JPEGs, images under 64 × 64 px, images with colour-key masks or decode arrays, and Flate images with transparency.

It cannot aim for an exact size such as 100 KB or 1 MB. You pick a level and see what it gives.

LevelLongest side of each photoJPEG quality
LightUp to 2400 px82
Medium (default)Up to 1600 px72
StrongUp to 1100 px58
Pages as imagesWhole page at 110 dpi60

Why a text-only PDF barely shrinks

A PDF saved from a word processor is mostly text and fonts, and those are already compressed inside the file. With no photos to shrink, there is little left to gain, and the tool tells you so.

If the result is not smaller than your original, there is no download. You never get back a file bigger than the one you put in.

When to use Pages as images

A scan is a stack of page-sized pictures. Pages as images redraws every page as one JPEG at 110 dpi, which gives the smallest result for scans.

It has a cost: text can no longer be selected or searched, and links stop working. Use it for scans and photos of paper, and keep the original if you may need to copy text from it later.

Where the size of a PDF comes from

A PDF is a container. Text and drawing instructions sit in content streams compressed with Flate, the same deflate method zip files use. Photos are stored either as JPEG data (the DCTDecode filter) or as Flate-compressed pixels, and fonts are embedded so the file looks the same everywhere (ISO 32000-1, Table 6). Text and fonts are already small; in a large PDF, the bulk is usually photos and scanned pages.

That is why this tool goes after the images. A photo taken at 4000 × 3000 pixels and placed 8 cm wide on a page carries far more detail than anyone sees: even a 300 dpi print needs only about 945 pixels across 8 cm. At Medium, such a photo is saved again at no more than 1600 px on its long side.

Since PDF 1.5, small objects can also be packed together in compressed object streams (section 7.5.7). The tool saves that way, which trims a little more off files written without them.

Real results from our own test files

These are sizes the tool reported on files we made to check it. Your files will differ, but the pattern holds: photos shrink a lot, text barely at all.

FileSettingBeforeAfter
PDF of large photosMedium6.26 MB416 KB
The same filePages as images6.26 MB107 KB
One photo made into a PDFMedium172.5 KB143.7 KB
Text-only reportAny levelIts sizeNot smaller: no download

Getting under an email or upload limit

Gmail (personal accounts) and Outlook.com both take attachments up to 25 MB. Upload forms set their own limits, usually stated next to the field. The tool cannot aim at an exact size, so work toward a limit in steps: Medium first, then Strong, and for a scan, Pages as images.

For a scan you can work out Pages as images in advance. At 110 dpi an A4 page becomes 909 × 1286 pixels: 210 mm and 297 mm divided by 25.4, times 110. If the file is still too big after that, split it into parts or remove the pages you do not need to send.

Questions people ask

How do I reduce the size of a PDF for free?

Drop it here, choose Medium and press Compress. If the result is smaller, download it. There is no account and no watermark.

Can I compress a PDF to 100 KB, 200 KB or 1 MB?

Not to an exact target. You pick a level and see the real result; for scans, Pages as images gives the smallest file.

Why is my compressed PDF not smaller?

Your PDF is probably mostly text, or its photos are already small. Text and fonts are already compressed inside a PDF, so try Strong, or Pages as images for a scan.

Does compressing a PDF reduce quality?

Photos lose some detail, more at Strong than at Light. Text, fonts and vector graphics stay sharp at every level except Pages as images, which turns each page into a picture.

How do I compress a PDF on Mac or iPhone?

Open this page in Safari or another current browser and compress the file here. There is nothing to install, and the PDF stays on your device.

How do I get a PDF under 25 MB to email it?

Compress it at Medium, then Strong if needed. If it is still over 25 MB, split it into parts and send them separately.

Is it safe to compress a PDF online?

On this page the PDF is compressed in your browser and never uploaded, so no copy of it is left on a server.

Can I compress a password-protected PDF?

Not directly. Take the password off first with Unlock PDF, using the file’s own password, then compress the unlocked copy.