How-to Guides

How to Compress a PDF Without Losing Quality

By AllToolz4U Team · · Updated · 5 min read

How to Compress a PDF Without Losing Quality

You attach a PDF, hit send, and the email bounces. Or a job portal tells you the file must be under 5 MB and yours is 18. Most people reach for the first compressor they find, click once, and hope. Sometimes that works. Sometimes the text comes out soft and the photos look like they were faxed.

The good news is that you can compress a PDF a lot without anyone noticing, as long as you know what is actually taking up the space. This guide explains that, shows the steps in order, and gives you a two-minute check to run before you send the result.

Why PDF files get so big

A PDF is a container. Text itself is tiny; a 50-page report with no pictures is often well under 1 MB. File size comes from the heavy things inside the container:

  • Images. Photos, logos and screenshots are usually the biggest part. A camera photo placed at full resolution can be several megabytes on its own.
  • Scanned pages. A scanned page is not text, it is a full-page picture. A 30-page scan at high resolution can easily pass 50 MB.
  • Embedded fonts. Every font used in the document may be stored inside the file. A handful of fonts adds up, especially if full font files are embedded instead of just the characters you used.
  • Leftovers. Old versions of objects, thumbnails, metadata, unused form fields and attachments can stay in the file after editing.

Once you know which of these applies, the fix is obvious. A text report needs almost no compression. A scan or a photo-heavy brochure can shrink dramatically.

Lossless or lossy: what is the difference?

Compression tools use two broad methods, and many do both at once.

Lossless compression rewrites the file more efficiently without throwing anything away. Duplicate data is merged, streams are packed tighter and unused objects are removed. Nothing about the way the page looks changes, but the savings are usually modest, especially for files that are mostly images.

Lossy compression reduces the quality of the images inside the PDF, usually by lowering their resolution (called downsampling) and re-saving them with stronger JPEG compression. This is where the big savings come from, and also where quality can suffer if you push too far. Text and vector drawings are not affected, only the pictures.

Step by step: compress a PDF safely

  1. Keep the original. Save a copy before you start. If the result is not good enough you can go back and try a gentler setting. Compressing an already compressed file again only degrades it further.
  2. Find out what kind of PDF it is. Try selecting a word with your cursor. If you can, it contains real text and the size is probably images. If you cannot, it is a scan and every page is a picture.
  3. Choose a middle setting first. Most compressors offer something like "smallest file", "balanced" and "best quality". Start with balanced. Go to the smallest setting only if the file is still too large.
  4. Compress. Use a trusted desktop program or an online tool. For private documents, read the next section before uploading anything.
  5. Check the result (see the checklist below) and compare the new size with the limit you need to meet.

What resolution should the images have?

Resolution is measured in dots per inch (DPI). The numbers commonly used are:

UseTypical image resolutionNotes
Viewing on a screen, email, web uploadabout 150 DPISharp enough for reading and zooming a little
Everyday office printingabout 200 to 300 DPIKeep 300 DPI for photos you care about
Professional printing300 DPI or moreDo not compress aggressively; ask the printer

If your PDF is only going to be read on screen, there is rarely a reason to keep images above 150 DPI. That one change is what produces most of the size reduction.

Which kind of PDF shrinks the most?

Type of PDFHow much it can shrinkWhat to watch
Mostly text, few imagesSmall savings, it is already lightIf it is large, look for embedded fonts or attachments
Photo-heavy brochure or presentationLarge savingsCheck faces and product photos at normal zoom
Scanned documentsLarge savingsMake sure small print and stamps are still readable

Check before you send

This takes about two minutes and saves you from sending a document that looks worse than the original.

  • Open the compressed file and look at a page with a photo at 100% zoom, not "fit to screen".
  • Zoom to 200% on small text, tables and numbers. They should stay crisp. If numbers look fuzzy, use a gentler setting.
  • Click through the links and check that bookmarks still work if the document needs them.
  • Look at the file size. If it is still above the limit, go back to the original, not the compressed copy, and try a stronger setting.

Mistakes that cause trouble

  • Compressing a signed PDF. A digital signature protects the exact content of the file. Changing the file, including compressing it, can invalidate the signature. Compress first, sign afterwards.
  • Compressing the same file again and again. Each lossy pass throws away more image detail, and the second pass usually saves very little.
  • Ignoring password protection. Some tools cannot process protected files and will fail or ask you to remove the password first.
  • Uploading private documents without thinking. Contracts, ID scans and financial statements deserve care. Prefer a tool that processes files in your browser or on your own computer, or one that clearly states how long uploaded files are kept and when they are deleted.

If the file is still too large

  1. Delete pages you do not need, such as blank pages or duplicate cover sheets.
  2. Re-scan at a lower resolution (about 200 DPI is fine for most paperwork) or in black and white instead of colour.
  3. Split the document into two parts and send them separately.
  4. Share a link to cloud storage instead of attaching the file. Many email providers cap attachments at around 20 to 25 MB, and Gmail's limit is 25 MB.

Compression is not magic, but it is predictable. Work out what is making the file heavy, pick a balanced setting, and always look at the result before it leaves your computer.

Frequently Asked Questions

Will compressing a PDF make the text blurry?

Normally no. Text and vector graphics are stored as shapes, not pictures, so image compression does not touch them. The exception is a scanned PDF, where the text is part of the picture and stronger compression can soften it.

Why is my PDF still large after compression?

It is probably already well optimised, or it contains very large embedded fonts or attachments. Try deleting unneeded pages, lowering the scan resolution, or splitting the file.

Is it safe to compress a PDF online?

It depends on the tool and the document. For anything private, choose a tool that works inside your browser or states clearly that uploaded files are deleted automatically, and avoid uploading sensitive documents to unknown sites.

What is a good PDF size for email?

Aim for under 10 MB when you can. Many providers limit attachments to around 20 to 25 MB, and the recipient's mailbox may have a lower limit than yours.

Keep reading