Skip to content

6 min read · Updated 2026-09-19

How to compress a PDF

Compression is four independent levers, three of them lossy. This guide explains what each one does to your pages so you can choose deliberately rather than guess.

Almost all of the weight in a large PDF is images, which is why compression is mostly image processing. The tool exposes the levers separately instead of hiding them behind one slider, because the right choice depends entirely on what the document contains and where it is going.

5 steps

The procedure

Steps for a MyPDFilles tool run in your browser tab. When a guide directs you to external software, its own privacy and security practices apply.

  1. 01

    Add the PDF

    Drop in the file. The tool reads it in the tab, so the original on disk is untouched no matter what settings you try.

  2. 02

    Start from a compression level

    Maximum compression gives the smallest file with visible softening of photographs and screenshots. Balanced is the default: noticeably smaller, holding up on screen. High quality is conservative — a modest saving with images close to the original.

  3. 03

    Adjust JPEG quality and resolution if you need to

    JPEG quality defaults to 75 and controls how hard each image is re-encoded. The resolution ceiling defaults to 150 DPI, with 72 for screen-only through to 300 for press. These are separate controls and you can move one without the other.

  4. 04

    Consider grayscale and metadata

    Convert to grayscale discards colour channels, which helps when the colour carries no information. Strip metadata is on by default and removes document information and XMP packets.

  5. 05

    Compress and compare

    Run it, then open the result and look at your worst image — the screenshot with small type, the photograph with a smooth gradient. If it holds up, keep it; if not, raise quality or DPI and run again.

Beyond the steps

What is actually happening

01

DPI and JPEG quality are independent, and confusing them wastes effort

Downsampling changes how many pixels an image has. An image placed in a 4-inch-wide slot on the page at 600 DPI carries 2400 pixels across; capping it at 150 DPI resamples it to 600 pixels, and the discarded pixels are gone. This is the lever that matters when a phone photo was dropped into a document at full sensor resolution.

JPEG quality changes how precisely the pixels that remain are described. At a lower quality setting the encoder is permitted to be more approximate within each block of the image, which shows up as blocking in smooth gradients and as halos around the hard edges of text inside a screenshot.

Because they act on different things, they fail differently. A high-resolution image at low JPEG quality is sharp but mottled. A heavily downsampled image at high JPEG quality is clean but blurry. Diagnose which of the two you are seeing before you reach for a slider, or you will turn the wrong knob.

02

Which setting for which situation

A scanned document that only needs to be readable on screen tolerates aggressive treatment: a low DPI ceiling, lower JPEG quality, and grayscale if the scan was of black ink on white paper. Colour channels in that case are recording paper tint and scanner noise, not information.

A document with screenshots is the fussiest case, because screenshots contain text rendered as pixels. Text edges are exactly what JPEG handles worst, so keep quality higher than you would for photographs and let DPI do more of the work.

Anything heading for print should keep a 220 or 300 DPI ceiling and high JPEG quality — the saving comes from stripping metadata and de-duplicating resources rather than from touching the images. And a document that will be re-compressed later should be left alone now: JPEG loss accumulates with each generation, and re-encoding an already-compressed image degrades it further while saving very little.

03

Why a text-only PDF barely shrinks

Text in a PDF is a set of glyph-drawing instructions referencing an embedded font, and those instructions are already stored in a compressed stream. There is no large redundant payload to squeeze, and the image levers have nothing to act on because there are no images.

A 200-page contract that is 400 KB is 400 KB because that is roughly what the glyph runs and the font subsets weigh. Running compression on it may save a few percent from metadata removal and stream tidying, and anyone promising a dramatic reduction on such a file is describing a document that was mostly images to begin with.

The exception worth knowing: a file that embeds full fonts rather than subsets, or embeds the same font several times, carries real redundancy. That saving is lossless and comes from resource handling, not from quality reduction.

04

Metadata stripping is the only lossless lever here

Document information and XMP packets hold the title, author, producing application, creation and modification timestamps, and whatever else a generating tool wrote in. Removing them changes no pixel and no glyph, so it is safe in a way that the image levers are not.

The size saving is usually small — kilobytes, occasionally more when an application wrote a large XMP block. The reason to do it is more often privacy than size: author names, internal file paths and software versions travel in those fields and are visible to anyone who opens the document properties.

What it does not do is remove anything from the page. Text that appears in the document body, including a name in a footer, is page content and is unaffected by metadata removal.

While you follow this

MyPDFilles tools process files in this browser tab.

For a MyPDFilles tool, your document is read from your disk into this browser tab and the result is handed to your browser’s download mechanism. We do not make the same claim for external applications discussed in educational guides; check their own privacy and security information before using them.

Verify MyPDFilles requests in your Network panel

Questions about this task

Is compression reversible?

Downsampling and JPEG re-encoding are not — the discarded pixel data cannot be recovered from the output. Metadata stripping is lossless but the fields are gone. Keep your original if you might need it, which is why the tool never modifies the file you dropped in.

Why did my file get barely smaller?

Almost certainly because it is text rather than images. Check whether your pages are vector text or scanned images: if text is selectable, the image levers have little to work on and the file is already close to its floor.

Will compression make my text blurry?

Not if the text is real text. Glyph runs are vector instructions and are not touched by the image settings. Text inside a scanned or screenshotted image is pixels, and that text can absolutely be degraded.

Should I compress before or after merging?

After. Compressing one merged document lets shared resources be de-duplicated once, and it means you make a single quality decision instead of several inconsistent ones.