Compress PDF

Shrink a PDF by rewriting its internal structure, with the text left exactly as sharp as it was.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Downloads a small public example. Your own files are not used.

Strip document metadata
Repack objects (recommended)
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To compress a PDF without uploading it, open it in damnfiles Compress PDF and press Compress. pdf-lib rewrites the file in your browser, packing its objects into compressed streams and stripping metadata, so nothing is sent anywhere. Text-heavy and repeatedly edited files shrink most; scanned PDFs barely change, because this pass does not resample images yet.

A worked example

See a real input and result

This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.

Input sample

Input count
1
Output count
1
Before
2 KB
After
2 KB
Change
3% smaller
Input 1 pages
4
Output 1 pages
4
Input bytes
1888
Downloadable output bytes
1823

Settings used: metadata: true · objectStreams: true

This synthetic sample only; results depend on the input. This pass repacks the document structure and strips metadata. It does not yet downsample embedded images, which is where most of the weight usually sits — so a scan-heavy PDF will barely move. Image downsampling is the next thing being built.

Ran through this tool on . Use “Try sample files” above to run it yourself.

How to compress a PDF offline, without uploading it

  1. STEP 1

    Choose one or more PDFs

    Drop them on the page or pick them. Several files are compressed in one pass and download together as a ZIP.

  2. STEP 2

    Leave Repack objects on

    Repack objects (recommended) does most of the saving. Turn it off only if an old reader struggles with object streams.

  3. STEP 3

    Decide on metadata

    Strip document metadata clears the title, author, subject and keywords fields. Turn it off if you need those fields kept.

  4. STEP 4

    Compare the sizes, then download

    The report shows the real before and after sizes and the percentage change, measured on the output, before you save.

Why PDFs get large, and what compression can do about it

Most of a large PDF's weight is usually images: scans, photographs and screenshots stored at a higher resolution than the screen will ever show. Embedded fonts add more, and so does history. Many apps save edits by appending changes to the end of the file, so an often-edited PDF can carry several superseded copies of the same objects.

There are two kinds of PDF compression. Lossless compression restructures the file and changes nothing you can see. Lossy compression resamples or re-encodes images at a lower resolution or quality, which saves far more on scans but visibly softens them. This tool currently does the lossless kind only.

What survives, and what does not

The file is parsed object by object and written back out fresh. When an object appears more than once because of incremental saves, only the latest version is kept. With Repack objects on, the small structural objects (page dictionaries, font descriptors, cross-references) are bundled into compressed object streams. With Strip document metadata on, the title, author, subject and keywords are cleared. Content streams and images are copied as they are.

What you keep

Selectable, searchable text, never turned into an image

Images at their original resolution and quality

Links, bookmarks and form fields

Page sizes and print geometry

What you lose

Title, author, subject and keywords, while Strip document metadata is on

Older revisions left behind by incremental saves

It does not downsample images, so scanned PDFs shrink very little

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Compress PDF at a glance

InputPDF, one or many
OutputPDF (-compressed), ZIP for several
MethodLossless: object streams and metadata removal
Image downsamplingNot yet
Runs onYour device, in the browser
Enginepdf-lib
Works offlineAfter the first use

If something goes wrong

The file hardly got smaller

It is probably image-heavy, such as a scan or a photo-filled brochure. Its weight is in the pictures, and this pass leaves images untouched. Split by file size can help with an upload limit, but a single page may still exceed the target. Check each part size before sending.

The output is larger than the input

That happens with files that were already tightly optimised. The report flags it. Keep your original in that case; nothing was gained.

The compressed PDF will not open

If the source was password protected, its encrypted content cannot be rewritten. Open it with the password in a trusted PDF reader and export an unencrypted copy, then compress. Unlock a PDF here only clears owner restrictions; it does not decrypt opening-password protection.

Compress PDF questions

How do I compress a PDF offline?

Open this page once while online and run a compression. After that, the page and the pdf-lib engine are cached by the site's service worker, so the tool keeps working with the network switched off. Your file never leaves the device either way.

Can I compress a PDF without uploading it?

Yes. All the work happens in your browser tab: the PDF is read from disk, rewritten in memory and saved to your Downloads folder. Open DevTools and watch the Network panel while it runs to see that nothing is sent.

Will compressing a PDF make the text blurry?

No. PDF text is stored as characters and font outlines, not pixels, and this tool never rasterises pages. Text comes out exactly as sharp and searchable as it went in.

How much smaller will my PDF get?

It depends on what is inside. Documents exported from word processors or edited many times often drop noticeably. Scanned documents and image-heavy files change very little, because images are copied unchanged.

Why is my PDF still too big to email?

Its size is almost certainly images, which this lossless pass does not resample. Split by file size can divide it into independently opening parts, but one large page may still exceed your limit. Check the resulting sizes before attaching them.

Can I compress several PDFs at once?

Yes. Select them together. Each is compressed separately, the report gives the combined before and after size, and the results download as one ZIP.

Does it work on Mac, Windows and iPhone?

Yes, in any current browser. Nothing is installed, and on a phone the compressed copy saves to your downloads like any other file.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/compress-pdf
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy