How to Reduce PDF File Size Without Losing Quality

Learn how to reduce PDF file size for free. 5 proven methods to compress PDF files without losing quality - works in browser, no sign-up required.

Practical ways to shrink a large PDF: downsample embedded images, subset fonts, and remove metadata without ruining the pages.

How to Reduce PDF File Size Without Losing Quality

5 practical methods to compress PDF files - from quick online compression to advanced techniques for maximum size reduction.

Last updated:

Biggest causeHigh-res images
Best fixDownsample images
Also helpsSubset fonts, strip metadata
WhereIn your browser

A PDF is a container that can hold text, vector shapes, embedded fonts, images, and a surprising amount of hidden data. When a PDF is huge, it is almost never the text that is to blame. Text and vectors are tiny. The weight is nearly always in high-resolution images and, to a lesser degree, in fully embedded fonts and leftover metadata. Knowing where the bulk lives is the whole game, because it tells you exactly what to trim.

The goal is to remove weight the reader will never notice. A scanned page stored at 600 dpi looks identical to one at 150 dpi on a screen, yet can be four times smaller. That is the kind of saving you are after: invisible on the page, dramatic on the file size. The format was first published by Adobe in 1993 and became an open ISO standard, ISO 32000, in 2008, which is why the same handful of internal structures show up in every PDF regardless of which program made it.[1] Because those structures are standardized, the tactics below work on any PDF, not just ones from a particular editor.

Why PDFs get big in the first place

Three things typically pad a PDF. First, oversized images: photos and scans embedded at print resolution when the file will only be viewed on screen. Second, full font embedding: a PDF may pack an entire typeface, thousands of glyphs, when the document uses only a few dozen letters. Third, accumulated cruft: revision history, hidden layers, form data, thumbnails, and metadata that the editor left behind.

Each of these has a clean fix that does not damage the visible content. Together they explain why a document that should be a couple of megabytes sometimes arrives at fifty. The single most useful habit before you compress anything is to figure out which of the three is dominating your particular file, because the right fix for an image-heavy scan is useless on a file bloated by revision history, and the reverse is also true.

The short version

Shrink the images to the resolution you actually need, recompress or subset the fonts, and strip the hidden data. The text stays perfect.

Where the weight actually lives inside the file

To trim a PDF intelligently, it helps to know how one is built. Internally a PDF is a collection of numbered objects: dictionaries, arrays, numbers, strings, and streams. A stream is a block of compressed binary data, and streams are where nearly all the weight sits. Page content, embedded images, and embedded fonts are all stored as streams. At the end of the file a cross-reference table lists the byte offset of every object so a reader can jump straight to any one of them without scanning the whole file.[2]

The practical takeaway is that shrinking a PDF means shrinking its streams. Text content streams are already tiny, so there is little to gain there. Image streams are usually enormous. Font streams sit in between. Every effective technique below is really a way of making one class of stream smaller, or of deleting streams and objects that are no longer referenced by any page.

A quick way to see the breakdown is to open the file in a tool that reports object sizes, or simply to note that if removing every image would make the file collapse to a fraction of its size, images are your target. In the overwhelming majority of oversized real-world PDFs, they are.

Downsampling images and choosing DPI targets

Downsampling means reducing the pixel dimensions of an embedded image to match the resolution the document will actually be viewed at, measured in dots per inch (DPI) relative to the image's placed size on the page. An image placed in a six-inch-wide column at 600 DPI holds 3600 pixels across; at 150 DPI it needs only 900. Dropping from 600 to 150 DPI therefore discards three quarters of the pixels in each dimension, roughly a sixteen-fold reduction in raw pixel count, and on a screen the two look identical because no ordinary display can resolve 600 DPI anyway.

The right DPI target depends entirely on the destination, and picking it deliberately is the single most valuable decision in the whole process.

DestinationTarget DPIWhy
Screen only, email, web96 to 150No display shows more; anything higher is wasted weight
General office printing200 to 220Sharp on paper without the bulk of full print resolution
High-quality print, press300The standard for photographic reproduction; do not go below
Line art and scanned text300 to 600 (1-bit)Crisp edges need higher resolution but only one bit per pixel

Notice the split in the last row. A photograph and a scanned page of black text want completely different treatment. A photo compresses best as a full-color image at modest DPI, while a page of text scanned to an image should be stored as a bilevel (1-bit, black and white) image at high DPI, because sharp edges matter more than color and one bit per pixel is dramatically smaller than eight bits times three channels.

Tip

Set the downsample threshold slightly above the target so images already at the right resolution are left untouched. Downsampling an image that is already at 150 DPI just wastes quality for no size benefit.

Lossy image recompression: JPEG, JPEG 2000, JBIG2

Downsampling reduces the pixel count; recompression reduces the bytes per pixel. The two work together, and the encoder you choose for each image type matters as much as the DPI. PDF supports several image compression filters, and matching the filter to the content is how professional compression tools squeeze files without visible harm.

For photographs and continuous-tone images, DCT (JPEG) compression is the default choice, the same discrete-cosine-transform scheme used by ordinary JPEG files. It is lossy: raising the compression discards high-frequency detail the eye barely notices, and a quality setting around 60 to 80 percent typically cuts an image to a fraction of its size with no visible artifacts. Push it too far and you get the familiar blocky, mottled look, so this is a setting to check by eye rather than trust blindly.

For scanned black-and-white text, the specialist filter is JBIG2, a bilevel image codec that recognizes repeated shapes (the same letter appearing thousands of times) and stores each shape once, then references it. On a text-heavy scan JBIG2 can be several times smaller than plain compression. JPEG 2000 is a further option for continuous-tone images and can outperform ordinary JPEG at the same quality, though it is more computationally expensive and less universally supported. The general rule is: continuous-tone to JPEG, bilevel text scans to JBIG2 or a lossless bilevel scheme, and reserve lossy recompression for images that are genuinely photographic rather than for line art, where it introduces ugly fringing.

Careful

Lossy recompression is one-way. Compress from the highest-quality original you have, never from a file that was already heavily compressed, or you stack loss on loss and the artifacts compound.

Subsetting and removing embedded fonts

PDF embeds fonts so a document displays identically on a machine that does not have the typeface installed. The problem is that a full font file can carry thousands of glyphs covering dozens of languages and symbol sets, and a typical document uses only a small fraction of them. Subsetting rewrites the embedded font to contain only the glyphs the document actually references, which can shrink a font stream by an order of magnitude while leaving the page pixel-for-pixel identical.

Most modern editors subset automatically on export, but files assembled by merging several sources, or produced by older tools, frequently contain multiple full copies of the same typeface, or fully embedded fonts with no subsetting at all. Two further moves help. First, de-duplicate fonts: if the same font is embedded five times because five source documents were merged, it should be reduced to one shared copy. Second, consider removing the embedding entirely for the standard fonts every PDF reader already has, the Base 14 (variants of Helvetica, Times, Courier, plus Symbol and ZapfDingbats), since these never need to be embedded to display correctly.

Fonts rarely dominate a file the way images do, but on a text-only document with no images they can be the largest single component, and subsetting is then the move that matters most.

Stripping metadata, objects, and duplicate resources

Beyond images and fonts, PDFs accumulate a surprising amount of dead weight that contributes nothing to the visible page. Removing it is pure savings with zero quality cost.

  • Metadata: document information dictionaries and XMP metadata packets holding author, software, and history. Usually small, but worth clearing for privacy as much as size.
  • Orphaned and unused objects: objects no longer referenced by any page, left behind by editing. A cleanup pass (sometimes called garbage collection) deletes anything unreachable from the document root.
  • Duplicate resources: the same image or the same font referenced separately on many pages can often be collapsed to a single shared object referenced everywhere.
  • Thumbnails and previews: some editors embed a rendered thumbnail of every page. On a long document these add up and every reader can regenerate them anyway.
  • Incremental update history: PDFs can be saved by appending changes to the end of the file rather than rewriting it, so an old, heavily-edited file may carry several superseded versions of its content. Rewriting the file fresh (a full save rather than an incremental one) discards all of it.
  • Flattening: annotations, form fields, and layers each carry their own objects. Flattening them into the page content, when you no longer need them editable, removes that overhead.

Object streams, cross-reference streams, and linearization

Two structural features introduced with PDF 1.5 shrink the file itself rather than its content. Object streams pack many small objects into a single compressed stream instead of storing each as its own uncompressed object with its own overhead, which reduces the per-object bookkeeping cost across the whole file. Cross-reference streams replace the traditional plaintext cross-reference table with a compressed binary equivalent, so the index of object offsets, which on a large document can itself be sizable, takes far less room. Re-saving an older PDF with these enabled can trim a few percent even before you touch a single image, and it costs nothing in fidelity.

A related option is linearization, sometimes labeled "optimize for fast web view." A linearized PDF is reorganized so the first page can be displayed before the rest of the file has downloaded, which is useful for serving large PDFs over the web. It does not reduce size (it can add a little), so treat it as a delivery optimization rather than a compression step: enable it when a document will be streamed online, skip it when you only care about the smallest possible file.

The levers ranked by impact

These are the moves in rough order of impact. The first almost always does the most, and on an image-heavy file it does nearly all of it.

LeverWhat it doesTypical impact
Downsample imagesLowers embedded image resolution to screen levelVery large
Recompress images (JPEG/JBIG2)Fewer bytes per pixel with the right codec per image typeLarge
Subset and de-duplicate fontsKeeps only the glyphs used, one copy eachMedium
Strip metadata and orphan objectsRemoves hidden data, thumbnails, unused layersSmall to medium
Object and xref streamsCompresses the file's own structureSmall
Tip

For a document that will be read on screen or sent by email, downsampling images to around 150 dpi is the sweet spot. Keep 300 dpi only if it truly needs to be printed at high quality.

Reduce a PDF, step by step

  1. Decide how the PDF will be used

    Screen and email need far less resolution than print. That single choice sets your DPI target and how hard you can compress.

  2. Downsample and recompress the images

    Bring embedded photos and scans down to the resolution the use actually requires, and let the tool pick the right codec: JPEG for photos, a bilevel scheme for scanned text. This is where most of the savings come from.

  3. Subset fonts and remove extras

    Keep only the glyphs in use, collapse duplicate fonts and images, and clear out metadata, thumbnails, and unused objects that add weight without adding content.

  4. Compress and compare

    Run the file through the document compressor, then open the result and check the images at full zoom before you keep it.

What not to do

Do not flatten a text PDF into images to make it smaller. It usually makes the file larger, and it destroys the selectable, searchable text that makes a PDF useful in the first place. A page of real text is a handful of kilobytes; the same page rasterized to an image is far heavier and can never be searched, copied, or reflowed again.

Likewise, avoid compressing the same PDF repeatedly at aggressive settings. Each pass re-applies lossy image compression on top of the last, so the artifacts compound and the returns diminish quickly. Compress once, from the original, at a setting you have checked by eye. And do not confuse linearization with compression: turning on fast web view will not shrink your file and may slightly grow it.

If your PDF started life as slides, you may get a cleaner result by exporting a fresh, right-sized PDF from the deck. See how to convert PPTX to PDF. And if you also need to shrink the images before they ever reach the PDF, the best way to compress images guide covers that upstream.

Shrink your PDF now

Downsample images and strip the extras, right in your browser with nothing uploaded.

Open the document tools

Key takeaways

  • PDF weight is almost always images, not text; nearly all of it lives in the file's image streams.
  • Downsampling images to a DPI target that matches the destination (around 150 for screen) is the biggest single win.
  • Match the codec to the content: JPEG for photos, a bilevel scheme like JBIG2 for scanned text.
  • Subset and de-duplicate fonts, then strip metadata, orphan objects, and thumbnails for the rest.
  • Never flatten text to images, and compress once from the original so lossy artifacts do not compound.

References

  1. Portable Document Format (PDF) - Library of Congress
  2. PDF - MDN Web Docs glossary