PDF GuidesFact-Checked11 min read•2,204 words•Published 2026-05-30• Updated 2026-09-12

How to Compress a PDF Without Losing Quality: What Actually Works

An honest explanation of PDF compression: where the megabytes actually come from, which reductions are lossless, which require re-encoding images, what a browser tool can realistically achieve, and how to choose the right approach for scans, text documents, and print files.

Compression advice usually promises 85 percent reductions. Whether you get them depends entirely on what is inside the file, not on which button you press. This guide explains the difference.

UK
Muhammed Ajmal U KVerified Author

Lead Systems Engineer & Founder • Reviewed under our Editorial Policy

Share:
Key Takeaways
  • ✓File size is almost never caused by text. Vector text and line art occupy a trivial fraction of a typical document; embedded raster images dominate.
  • ✓Lossless optimisation, which recompresses streams and removes unused objects, is safe but produces modest savings on files that are already well built.
  • ✓Large reductions on scanned documents require image downsampling and JPEG re-encoding, which is a lossy operation and should be a deliberate choice rather than a default.
  • ✓Compressing a document that is already optimised can make it larger. Always compare the before and after sizes rather than assuming an improvement.
  • ✓Set a target: most email gateways accept around 25 MB, and most web pages are best served by files under 5 MB.
Diagnose before you compress

The size of a PDF tells you almost nothing about why it is large, but the composition does. If the document is mostly text and it is 30 MB, something is embedding full-page images, and lossless optimisation will barely help. If the document is a scan, it is almost entirely image data and downsampling is the only lever that matters. Export the pages as images with PDF to JPG and look at one: if a page is a picture of text, you are in the second category.

Lossless and Lossy Operations

Stream recompressionLossless — Flate/Deflate on content and data streams
Object streams and xref compressionLossless — compressed cross-reference storage
Unused object removalLossless — drops unreferenced objects
Metadata strippingLossless for rendering, removes document properties
Image downsamplingLossy — reduces pixel dimensions
JPEG re-encoding of imagesLossy — introduces compression artefacts
Colour reduction to greyscaleLossy — discards colour information

Where the Megabytes Actually Come From

People are usually surprised to learn that the text in their document is not the problem. Text in a PDF is stored as font glyphs placed at coordinates, plus the embedded font program itself. A 100-page report of pure text is typically a few hundred kilobytes, and compressing it further yields almost nothing because the content streams are already Flate-compressed.

The size comes from images. Three situations dominate. First, scanned documents: every page is a photograph of a page, often captured at 300 dots per inch in colour, which is several megabytes per page before any compression. Second, documents assembled from screenshots or exported from design software, where each screen capture is embedded at full resolution. Third, presentations exported to PDF, where a handful of full-page images account for nearly the entire file.

There is a second, smaller category: waste. A PDF may carry unused objects, an obsolete cross-reference section, a large embedded colour profile, or a full font program when only a dozen glyphs are used. This is where lossless optimisation earns its keep, and it is usually worth somewhere between a few percent and perhaps a third of the file, depending on how well the original was built.

The diagnostic question is therefore always the same: is this file large because of images, or because of waste? The answer determines which of the two very different techniques will help.

Lossless Optimisation: Safe, Modest, Universal

Lossless optimisation changes how the file is stored without changing what it renders. Nothing is discarded that affects appearance, so the output is visually identical to the input, and text remains selectable and searchable.

The main techniques are straightforward. Content streams are recompressed with Flate, which is the same Deflate algorithm used in ZIP archives and is already the standard compression method in PDF. Objects are gathered into compressed object streams so that the cross-reference table itself no longer needs to be stored as plain text. Unreferenced objects left behind by earlier editing are dropped. Document metadata such as the producing application, author, and revision history can be cleared, which saves a little space and, incidentally, removes information you may not want to distribute.

What lossless optimisation cannot do is reduce the size of image data. A 4-megapixel scan is a 4-megapixel scan. If images dominate the file, lossless techniques will produce a disappointing result, and that is not a failure of the tool. It is the correct outcome of applying a lossless method to data that needs a lossy one.

The value of lossless optimisation is that it is always safe. There is no quality decision to make and no risk of degrading a document you may later need to print or archive.

Image Downsampling: Where the Real Savings Are

If a document is large because of images, the only meaningful lever is to store fewer pixels or store them less precisely. Both are lossy, and both are frequently the right decision.

Downsampling reduces the pixel dimensions of an image. A scan captured at 600 dots per inch contains four times the pixels of the same page at 300, and sixteen times that of 150. Since screen display rarely needs more than about 150 pixels per inch of page, and ordinary desktop printing is well served by 200 to 300, a scan intended for reading on screen or printing on an office printer has a great deal of redundant detail.

Re-encoding changes how those pixels are compressed. Photographic and scanned content compresses well with JPEG at a moderate quality setting, and the visible difference between quality 90 and quality 75 is usually negligible on a scanned page of text, while the size difference is substantial. Line art and screenshots compress better with other methods and can degrade badly under JPEG, producing visible fringing around sharp edges.

Colour reduction is the third lever and is often overlooked. A colour scan of a black-and-white document wastes two thirds of its data. Converting to greyscale, or to a bitonal representation for genuinely black-and-white pages, can produce very large reductions with no loss of legibility.

The reason to be careful here is that these operations are irreversible in the output file. Once a page has been downsampled and re-encoded, the discarded detail is gone. Keep the original, and treat the compressed version as a distribution copy.

What a Browser-Based Compressor Can and Cannot Do

It is worth being precise here, because compression is the operation where online tools most often overstate their results.

Rewriting a PDF with compressed object streams and stripped metadata is a structural operation, and a browser handles it easily. This is genuine lossless optimisation, it runs instantly, and it is the correct tool for removing waste from a file.

Re-encoding hundreds of embedded images is a much heavier operation. It requires decoding each image, resampling it, re-encoding it, and rebuilding the page resources that reference it. Doing this for a 200-page scan in JavaScript inside a browser tab is possible but slow and memory-intensive, and it is the kind of work where a desktop application or a server-side pipeline currently has a genuine advantage.

So the honest position is this: a browser compressor is excellent at lossless optimisation and should be expected to deliver modest savings on well-built files and larger savings on files that were assembled carelessly. It is not the tool to reach for when you need to turn a 120 MB colour scan into a 4 MB email attachment. For that job, look for a tool that explicitly performs image downsampling, and check the output quality yourself before you send it.

Choosing the Right Mode for the Job

Compression settings should follow the destination of the file, not a preference for the smallest possible number.

  • •Email attachment: aim under 25 MB, the point at which most corporate gateways start rejecting. Lossless optimisation first, and image reduction only if the file is scan-dominated.
  • •Web or intranet publication: aim under 5 MB and favour legibility on screen. Downsampling to around 150 pixels per inch is a reasonable target for page images.
  • •Office printing: 200 to 300 pixels per inch is sufficient for text and line art on a laser printer. Below 150, small type begins to break up.
  • •Professional print: do not downsample. Supply the original resolution and, if you need to reduce size, discuss it with the printer, who may prefer a different colour space or compression scheme.
  • •Long-term archive: prefer lossless optimisation and avoid irreversible changes. If you need a preservation format, PDF to PDF/A converts the document for archival storage.
  • •Legal or evidential documents: keep an untouched original. Any compressed copy is a derived artefact, and the distinction matters if the document is later examined.

Steps to Compress a PDF in the Browser

The workflow is short. The important part is checking the result rather than trusting the summary.

  • •Open Compress PDF and add your file. The tool reads the document locally, so nothing is uploaded.
  • •Choose a mode: the standard option rewrites the file with compressed object streams, while the more aggressive option additionally clears document metadata such as author, creator, and subject.
  • •Run the compression. The tool reports the original size, the new size, and the percentage change for each file, and downloads a summary alongside the output.
  • •Compare the numbers before you accept the result. If the reduction is small, that is usually accurate information about a file that was already well optimised.
  • •Open the output and check a page that matters: a page with small type, a page with a photograph, and the last page. Confirm nothing has shifted.
  • •If the file is still too large, the constraint is images. Reduce the page count with Split PDF, or reduce resolution with a tool that re-encodes images.

When Not to Compress

There are situations where compression is the wrong move, and recognising them saves you a support ticket later.

Do not compress a document that is already optimised and whose size is acceptable. Applying lossless optimisation to an already-optimised file typically saves nothing, and a tool that reports a reduction in that situation is worth treating with suspicion.

Do not compress the only copy of anything. Compression produces a new file, and lossy compression is irreversible. Keep the original until the compressed version has been accepted.

Do not compress before signing. Any later modification invalidates a digital signature, so the correct order is to finalise the content, compress, and then sign the result. The signing guide covers what a signature actually covers and why this ordering matters.

Do not compress a document whose evidential value depends on its exact bytes. In regulated contexts, the artefact that was submitted is the artefact that matters, and a re-saved version is a different file.

Got Questions?

Frequently Asked Questions

Will compressing a PDF make the text blurry?▼

No, not if the compression is lossless. Text in a PDF is stored as font glyphs and vector instructions rather than as pixels, so recompressing the content streams does not affect it at all, and the text stays sharp at any zoom level. Text only becomes blurry when the entire page is stored as an image, as in a scan, and that image is then downsampled.

How do I compress a scanned PDF?▼

Scanned PDFs are almost entirely image data, so lossless methods will barely help. The effective approach is image downsampling and re-encoding, which is a lossy operation. Target roughly 150 pixels per inch for on-screen reading and 200 to 300 for office printing, and check a representative page at 100 percent zoom before distributing the result.

Why did my PDF get bigger after compression?▼

It can happen when a file was already optimised. Re-serialising a document can change how objects are grouped, and if the original was built efficiently, the new arrangement may not be smaller. A tool that reports an honest before and after comparison will show this; one that claims a fixed reduction regardless of input is not measuring anything.

Does stripping metadata affect the document?▼

It does not change how the pages render. It removes document properties such as the author, the producing application, keywords, and sometimes the creation and modification dates. That reduces size marginally and can be desirable when you are sending a file outside your organisation, but it also removes provenance information you may want to keep for your own records.

Can I compress a password-protected PDF?▼

You need to be able to open the file first. If it is protected with a password you know, open it and save an unprotected copy, then compress that. Note that removing protection is a separate operation from compression and has its own security implications, so work on a copy and keep the protected original.

What is the best PDF compression method for archival documents?▼

For anything you intend to keep, prefer lossless optimisation and avoid irreversible changes. If the requirement is long-term preservation rather than size, PDF/A is the relevant standard, and conversion for archival purposes is a different operation from compression. Keep an unmodified original regardless of what you produce for distribution.

Runs In Your Browser • No Signup • No Watermark

Try These Tools on PdfPix

These operations run locally on your device. There is no upload queue, no account, and no artificial file-size cap.

Specifications & Sources

UK

Written and reviewed by Muhammed Ajmal U K

Founder of UTHAKKAN and the engineer behind PdfPix. He builds browser-first tools that keep documents on the device, and writes about the format-level details that determine whether a PDF operation actually worked.

Related Reading

Guides That Pair With This One