fileformer
search⌘KtranslateENexpand_moreupload_fileConvert
Converters8 file families · 44 direct conversions
What changes in a conversionarrow_forward
home/compress-pdf

How to Compress PDF Online Free

Find the heavy pages. Shrink the PDF.

Most of a PDF's size hides in a few pages: usually scans and photos. The map shows where the weight is; pick a level and watch it drop.

report-2026.pdf · 12 pagesfill height = page's file size
notes64 KB
image576 KB
notes48 KB
document_scanner744 KB
document_scanner696 KB
notes40 KB
image432 KB
notes56 KB
document_scanner792 KB
notes40 KB
image288 KB
notes32 KB
scanned pagephototext only
compression level
Noneoriginal file-Lightprint quality · barely visible300 dpiRecommendedlooks the same on screen150 dpiStrongsmallest · for email96 dpi
before15.1 MB
after3.8 MB
saved75%
will it send?
check_circleOutlook20 MBcheck_circleGmail25 MBcheck_circleWeb forms10 MBcheck_circleWhatsApp100 MB
compressCompress PDF
~/what-actually-changes

Four things we trim, and what we never touch.

photo_size_select_largeOversized imagesPhotos and scans are resampled to the resolution the level needs, the biggest saving by far.up to −90%
font_downloadDuplicate fontsFonts embedded more than once are merged, and unused characters removed.−5 to 20%
layers_clearHidden leftoversOld edit history, thumbnails and unused objects that viewers never show.−2 to 10%
data_objectPage structureThe internal instructions are re-packed with modern compression.−2 to 8%
verifiedNever touched: your text stays selectable and searchable, links and bookmarks keep working, and pages keep their exact layout. [1]
~/why-some-pdfs-are-huge

A typed page vs a scanned page.

A PDF exported from Word stores words as text, a page is a few kilobytes. A scanned page is a photo of paper: millions of pixels, even when it's mostly white. That's why a 10-page scan can outweigh a 300-page report.

Tip: if you still have the original document, export a fresh PDF instead of scanning a printout, it'll be up to 100× smaller and searchable.

Typed PDF0.04 MBText stored as characters: tiny, sharp at any zoom, and searchable.
Scanned PDF3.1 MBA photo of the page. Big, and the words can’t be searched until OCR is run.
~/pick-by-purpose

Which level for which job?

mailRecommended
Email attachmentGet under Gmail’s 25 MB and Outlook’s 20 MB limits without losing readability.Use this level ↑
upload_fileStrong
Online form uploadPortals often cap files at 2-10 MB. Strong usually fits even scanned IDs.Use this level ↑
printLight
PrintingKeep 300 dpi so photos and small text stay crisp on paper.Use this level ↑
cloudRecommended
ArchivingBalance space and quality for documents you’ll keep for years.Use this level ↑
phone_iphoneStrong
Reading on a phoneScreens need far fewer pixels than paper, the smallest file loads fastest.Use this level ↑
workRecommended
Sending to a clientLooks identical on screen, and opens instantly even on slow connections.Use this level ↑
~/measured-in-your-browser

What resolution actually costs.

Your browser just drew a scanned US Letter page at 300 dpi, paper grain included. It then resampled the page to each resolution and saved it as a JPEG. The sizes below are real bytes from your browser's encoder, not estimates. Click a row to see one inch of the page at that resolution.

High · q92Medium · q75Low · q50
5 of 5 encoded by your browser
dpipixelsraw RGBJPEG, measuredvs 300
300 dpi2550 × 330025.2 MB1.9 MB100%
200 dpi1700 × 220011.2 MB747 KB39%
150 dpi1275 × 16506.3 MB453 KB24%
96 dpi816 × 10562.6 MB188 KB10%
72 dpi612 × 7921.5 MB106 KB6%

Raw RGB is width × height × 3 bytes: what the page costs before any compression. Halving the dpi quarters the pixel count, which is why resampling saves far more than lowering JPEG quality.

one inch, enlarged150 dpi
150 pixels per inch of paper · shown at 240 px per inch

At 100% zoom most screens show about 100-150 pixels per inch of page. Office printers resolve around 300. Below 150 dpi, 11-point text starts to lose its serifs, and below 96 dpi letters like e and c begin to merge.

~/inside-a-content-stream

What re-packing the page structure really does.

A page's text and vector drawing live in a content stream: a small program of operators such as Tj (show text), l (line to) and re f (fill a rectangle). PDF compresses it with the FlateDecode filter, which is plain zlib. Edit the stream below and your browser compresses it for real.

Text pageBar chart
raw717 B
FlateDecode392 B
saved45%
compressed bytes
78 9C6D 91 C1 6E DB 30 10 44 EF FA 8A B9 04 70 5B 5B …2D 88 C2 CC
zlib header.0x78: method 8 (deflate), 32 KB window. 0x9C: level hint 2 (default); (CMF×256+FLG) mod 31 = 0 ✓.deflate data. LZ77 back-references plus Huffman codes (RFC 1951).Adler-32. Checksum of the uncompressed stream, so a viewer can detect corruption.
5 0 obj<< /Length 392 /Filter /FlateDecode >>stream… 392 binary bytes …endstreamendobj
Object streams (PDF 1.5) go one step further. Before 1.5, every small dictionary (fonts, page objects, annotations) sat uncompressed in the file, and the cross-reference table spent 20 bytes per object. A modern compressor packs those objects into a single Flate stream and replaces the table with a compressed xref stream.
~/reference

Every compression filter in the PDF standard.

Each stream names its filters in /Filter, and a conforming viewer has to decode all of them. A good compressor picks one per stream: Flate for text and vectors, DCT or JPX for photos, and CCITT or JBIG2 for black-and-white scans.

filtersincetypewhat it's for
ASCIIHexDecodePDF 1.0encodingWrites binary as hex text so a file survives 7-bit channels. Doubles the size; never used to save space.
ASCII85DecodePDF 1.0encodingBase-85 text encoding from PostScript. Adds 25% instead of 100%; still a size cost.
LZWDecodePDF 1.0losslessThe original general-purpose compressor. Superseded by Flate, partly over the Unisys LZW patent.
FlateDecodePDF 1.2losslesszlib/deflate. The default for content streams, fonts, object streams and lossless images.
RunLengthDecodePDF 1.0losslessCollapses runs of identical bytes. Only useful for simple flat-colour images.
CCITTFaxDecodePDF 1.0losslessGroup 3 and Group 4 fax coding for black-and-white images. Still common in office scanners.
JBIG2DecodePDF 1.4eitherBilevel scans with shared symbol dictionaries. Much smaller than CCITT, but lossy mode can substitute look-alike characters.
DCTDecodePDF 1.0lossyBaseline JPEG. Photos and colour scans; recompressing at lower quality is where most savings come from.
JPXDecodePDF 1.5eitherJPEG 2000. Better quality per byte than JPEG and supports transparency, but slow to decode.
CryptPDF 1.5encryptionApplies a named crypt filter to one stream, so parts of a file can be encrypted differently.

Preset names, decoded

Most PDF compressors, including Ghostscript's -dPDFSETTINGS, describe their levels by purpose. Underneath, each name is mostly an image resolution target.

/screen72 dpiLowest resolution for on-screen viewing. Smallest files; text in scans gets rough.≈ below our Strong (96)
/ebook150 dpiMedium resolution for reading on screens and tablets.≈ our Recommended
/printer300 dpiPrint resolution for office and desktop printers.≈ our Light
/prepress300 dpiPrint resolution that also keeps colour profiles for commercial print.no equivalent: we never strip profiles

How PDF compression got here

1993PDF 1.0Ships with LZW, JPEG (DCT), CCITT fax and run-length filters.
1996PDF 1.2 adds Flatezlib arrives, avoiding LZW licensing and compressing better.
2001PDF 1.4 adds JBIG2Black-and-white scans shrink several times over compared with fax coding.
2003PDF 1.5JPEG 2000, object streams and compressed xref streams.
2008ISO 32000-1PDF 1.7 becomes an open international standard.
2013JBIG2 digit swapsSome Xerox scanners were found replacing digits in lossy JBIG2 mode.
2017PDF 2.0ISO 32000-2 publishes, the first PDF version written by ISO.
2020PDF 2.0, 2nd editionISO 32000-2:2020 corrects and clarifies the 2017 text.
~/before-or-after

Other PDF tools that pair with compressing.

Compression is usually one step in getting a document out the door. These handle the rest.

Frequently Asked Questions

How much can a PDF be compressed?

It depends on the content. PDFs with many high-resolution images can often be compressed by 70 to 90%. Text-only PDFs may only reduce by 10 to 30%.

Will compression reduce the PDF quality?

There may be a slight reduction in image quality, but text and document structure are preserved. For most business documents, compressed PDFs look identical to the originals.

Is my PDF safe when compressing online?

Browser-side mode processes supported files locally in your browser. Confirm local mode before using sensitive files.

Can I compress password-protected PDFs?

Password-protected PDFs need to be unlocked before compression. Once the password is removed, the PDF can be compressed normally.

Does compressing a PDF affect its content or formatting?

No - the text, layout, fonts, and document structure are preserved. Only the file size changes, primarily through image optimization.