Guides PDF and images

How to Compress a PDF Without Losing Quality

Why PDF files get large, which settings shrink them safely and how to check the result before you send it.

A university portal accepts uploads of up to 2 MB, and your scanned degree certificate is 14 MB. A job application wants every document in one email, and the attachments add up to more than your email service allows. Situations like these are why "compress PDF" is one of the most common file tasks people search for. The good news is that most large PDFs can be shrunk dramatically without becoming hard to read, as long as you understand what is making them large in the first place.

This guide explains where the bulk of a PDF comes from, what compression actually changes, how to choose settings for different purposes and how to check the result before you submit it anywhere important.

Why PDF files get so large

A PDF is a container. It can hold text, fonts, vector drawings and images, and each of these takes up space in very different amounts.

  • Scanned pages are pictures. When you scan a page, the PDF stores a photograph of it, not the words. An A4 page scanned at 300 dots per inch is about 2,480 × 3,508 pixels, or roughly 8.7 million pixels. Stored as raw colour data, that is about 26 MB for a single page before any compression is applied.
  • Photos inserted at full resolution. A report with photos dropped straight from a phone camera may carry 12-megapixel images that are displayed at the size of a postage stamp.
  • Embedded fonts. Fonts are usually small, often tens or a few hundred kilobytes, but documents that embed many complete font families can grow noticeably.
  • Hidden extras. Page thumbnails, form data, metadata and leftovers from repeated editing can all add weight that you never see on screen.

A text-only PDF exported from a word processor is often just a few hundred kilobytes, even at dozens of pages. If your file is many megabytes, images are almost always the reason.

What compression actually changes

PDF compression works in two broad ways.

Lossless tidying rewrites the file's internal structure more efficiently, removes duplicated objects and packs data more tightly. Nothing visible changes, but the savings are usually modest.

Lossy image re-compression is where the big savings come from. Images are resized to a sensible resolution and re-encoded, usually as JPEG, at a chosen quality. Three settings matter most:

  1. Resolution. Halving the resolution cuts the number of pixels to a quarter. Going from 300 dpi to 150 dpi reduces an A4 page from about 8.7 million pixels to about 2.2 million.
  2. Colour. A grayscale image stores one channel of data instead of three. For black-and-white documents, converting to grayscale removes information nobody needed.
  3. Quality. JPEG quality controls how aggressively fine detail is simplified. Moderate settings are usually invisible at normal zoom.

The Compress PDF tool on this site works this way. It offers three levels, Strong, Recommended and Light, resizes oversized images, re-compresses each image only if the new version is actually smaller and can convert pages to grayscale. Text, fonts and vector graphics are left untouched, which is why typed text stays perfectly sharp even at the strongest setting.

A worked example

Imagine a 12-page admission file scanned in colour at 300 dpi. In raw terms, that is 12 × 8.7 million pixels × 3 colour channels, roughly 313 MB of image data, which the scanner has already compressed into the 14 MB file you received.

If the pages are mostly printed text with a signature and a stamp, a resolution of 150 dpi in grayscale is still comfortable to read on screen. At that setting, each page holds about 2.2 million pixels in a single channel, so the raw data falls to about 26 MB, one twelfth of the original. After JPEG compression, which commonly shrinks scanned documents by ten times or more, the file can realistically land at one or two megabytes. The exact result depends on the scan, which is why the tool shows the before and after sizes so you can judge for yourself.

Step by step

  1. Open the compressor and choose your file. Note its size, page count and number of images.
  2. Start with the Recommended level. It suits most uploads and email.
  3. If the file is a black-and-white document, tick grayscale for an extra saving.
  4. Compress, then compare the new size with your limit.
  5. Open the result and zoom to 100 per cent. Read the smallest print, check signatures, stamps, photographs and any handwritten notes.
  6. If the file is still too large, try the Strong level. If that is not enough, remove unnecessary pages with Delete PDF Pages or divide the document into parts with Split PDF.

Choosing settings for common situations

PurposeSuggested approach
Email attachmentRecommended level; Gmail, for example, allows attachments of up to 25 MB per message in total
Government, university or job portalRecommended or Strong; many portals cap uploads at 1 to 5 MB per file
PrintingLight level, so images stay close to 300 dpi
Long-term recordKeep the original, and send a compressed copy
Photo-heavy brochureRecommended level; check skin tones and fine patterns

Scan smarter in the first place

The easiest way to get a small PDF is to create a sensible one from the start.

  • Scan text documents at 150 to 200 dpi. That is plenty for on-screen reading. Use 300 dpi only for printing or for documents with very small print.
  • Use grayscale unless colour matters. Coloured stamps, photographs and colour-coded charts need colour; most letters, transcripts and forms do not.
  • Crop the edges. Phone scans often include a strip of table or floor around the page, which adds pixels and looks untidy.
  • Avoid shadows and uneven light. Noise and shading are hard to compress, so a clean scan is also a smaller scan.
  • Compress photos before building a PDF. If you are combining phone photos into one document, shrink them first with the Image Compressor and then join them with JPG to PDF.

What compression cannot do

Compression is not magic, and knowing its limits saves frustration.

  • Text-only PDFs barely shrink. If a file has no images, there is little to remove. Splitting or removing pages is the only way to make it much smaller.
  • Re-compressing repeatedly degrades quality. Each round of lossy compression removes more detail. Always start from the original rather than compressing a compressed copy again.
  • Digital signatures break. If a PDF carries a digital signature, such as some bank statements, e-stamp papers or signed contracts, any change to the file, including compression, invalidates the signature. Send these files unaltered, or ask the issuer for a smaller copy.
  • Protected files need unlocking first. Password-protected PDFs cannot be processed until they are opened with the password by someone entitled to do so.

Common mistakes

  • Choosing the strongest setting by default. Strong compression is useful for tight limits, but small handwriting and fine print can become hard to read. Start with Recommended.
  • Not checking the output. A blurred stamp or unreadable roll number can get an application rejected. Always open the compressed file before submitting it.
  • Deleting the original. Keep the uncompressed file. You may need a high-quality copy later for printing or for another portal with different rules.
  • Compressing when splitting would be better. If a portal asks for each document separately, splitting a combined file into individual documents is cleaner than squeezing one huge file.
  • Ignoring file names. A compressed file called document-final-final-2.pdf is easy to confuse. Name files clearly, for example ali-raza-matric-certificate.pdf.

Quick answers

Will compression make my text blurry? Not if the text is real text. Typed text, fonts and vector graphics are not touched. Only images are re-compressed, so scanned text can soften at strong settings.

What size should I aim for? Whatever the portal or email limit says, with a small margin. If a portal allows 2 MB, a 1.8 MB file is fine; there is no benefit in squeezing it to 300 KB if that harms legibility.

Is it safe to compress confidential documents online? With this site's tool, the file is processed inside your browser and is never uploaded. With any other service, check where your file goes before using it for identity documents or contracts.

Privacy

The PDF compressor runs entirely on your device. Your documents, whether certificates, statements or contracts, are not uploaded to a server, which matters when the files contain personal details such as CNIC numbers, addresses or account information.

Free tools used in this guide