PDF komprimieren
Compress PDF makes a document smaller in your browser, in one of two ways. The safe way clears out the leftovers an edited file accumulates and repacks the rest, so the text stays selectable. The drastic way turns every page into a flat picture, which shrinks a scan enormously but leaves nothing you can select or search — the page tells you which one your file actually needs.
Die Oberfläche dieses Tools ist auf Englisch.
Drop a PDF here
or drop anywhere on this page · Choose a file · 100 MB
Die folgende Anleitung ist nur auf Englisch verfügbar.
How does Compress PDF work?
“Compress PDF” is not one operation. A PDF's size can come from very different places, and the fix for one does nothing for the others — which is why a single magic button so often returns a file the same size as the one you gave it, or a file whose text has silently stopped being searchable.
Where the bytes actually are
In a scanned document, essentially all of them are in page images. In a report exported from a word processor, they are usually in embedded font subsets and in structural overhead. In a file that has been edited and re-saved a dozen times, a surprising share is in material that is no longer referenced at all: PDF supports incremental saving, where each edit appends to the file rather than rewriting it, so previous revisions can still be sitting in the bytes.
The lossless rebuild
This copies every page into a brand-new document. Copying walks the object graph from the page tree, so only what is actually reachable comes across — old revisions, orphaned fonts, images belonging to deleted pages and abandoned annotations are simply not visited. The result is then written with object streams, which pack the many small dictionaries describing pages, fonts and links into compressed streams rather than plain text.
Nothing is re-encoded. Text stays selectable and searchable, vector art stays vector, images are untouched. On a heavily edited file this can remove a large fraction; on a file that was written cleanly in the first place it removes almost nothing, and this page reports the real number rather than a flattering one.
The rasterising pass
This renders each page with pdf.js — Mozilla's engine, the one Firefox uses — and rebuilds the document from those images as JPEGs. For a scan the difference is enormous: a 200 MB scan at 600 DPI becomes a few megabytes at 120 DPI with no visible loss, because the original resolution was far beyond what the content justified.
It is also destructive in a way worth stating plainly. The text layer is gone. The document is no longer searchable, no longer selectable, no longer readable by a screen reader, and links stop working. For a scan there was no text layer to lose and this costs nothing. For a text document it turns a good file into a bad one, which is why it is not the default.
Choosing a resolution
120 DPI is legible on screen and prints acceptably. 150 DPI is comfortable for printing. 200 and above rarely earns its size for a scan of ordinary text. The JPEG quality matters just as much: 0.6 is the sweet spot for scanned text, where artefacts sit in the paper texture and nobody notices them.
What this tool will not claim
It will not promise a percentage. Any site advertising “up to 90% smaller” is quoting the rasterising case for a high-resolution scan and applying it to everything. If your PDF is already efficient, the honest answer is that it cannot get much smaller without losing something, and that is what you will be told here.
Everything happens in this tab
The rebuild runs in a Web Worker with pdf-lib; the rendering uses pdf.js, also in your browser. The document is never uploaded, and the page's Content-Security-Policy sets connect-src 'self', so an upload would be blocked by the browser rather than merely not attempted. For contracts, payslips and medical letters — the documents people most often need to shrink for an upload form — that is the only arrangement that makes sense.
Input
scan.pdf — 48.2 MB 12 pages at 600 DPI mode: rasterise, 120 DPI, q0.6
Output
scan-compressed.pdf — 2.1 MB -96% text layer: none (there was none)
What options and edge cases does Compress PDF support?
| Parameter | Type | Default | Behaviour & edge cases |
|---|---|---|---|
| Lossless rebuild | mode | default | Copies reachable objects into a fresh document and repacks with object streams. Text and vectors untouched. |
| Rasterise | mode | — | Re-renders pages as JPEGs. Huge saving on scans; permanently removes the text layer. |
| 120 DPI | resolution | default | Legible on screen, acceptable in print. The right default for a scan. |
| 150 DPI | resolution | — | Comfortable for printing. Roughly 1.5× the size of 120. |
| 200 DPI | resolution | — | Rarely worth it for ordinary text. Nearly three times the size of 120. |
| JPEG quality | 0.3 – 0.9 | 0.6 | 0.6 suits scanned text — artefacts hide in the paper texture. Raise it for photographs. |
| Strip metadata | checkbox | on | Drops title, author and producer. A few hundred bytes, and one less thing leaking who made the file. |
| Page size | preserved | — | The rebuilt page keeps its original size in points, so an A4 page prints as A4 whatever DPI was used. |
Frequently asked questions
Why did the lossless mode barely change my file size?
Because your PDF was already efficient. The lossless rebuild removes objects nothing references and repacks the structural dictionaries — that is a large win on a file edited and re-saved many times, and close to nothing on a file written cleanly by a modern exporter. It also does not touch images, so it cannot help a scan at all. If the bytes are in page images, the rasterising mode is the only thing that will move the number, and it has a real cost.
Will compressing make my PDF text unsearchable?
Only in rasterising mode, and there it definitely will. Rasterising replaces each page with a picture of itself, so text stops being text: no searching, no selecting, no screen reader, no working links. For a scanned document that is free, because there was no text layer to begin with. For a report exported from a word processor it is a serious loss, which is why the lossless rebuild is the default and rasterising is a deliberate choice.
What DPI should I use for a scan?
120 for something that will be read on screen and occasionally printed — it is legible and it is usually a 90%+ reduction from a 600 DPI scan. 150 if printing matters. Above 200 you are storing detail that the scanner's optics and the paper itself did not really contain. Pair it with JPEG quality around 0.6: scanned text hides compression artefacts in its paper texture better than almost any other content.
Can it compress a password-protected PDF?
Not while it is encrypted. A PDF with a user password cannot be read at all without that password, so there is nothing to rebuild. Use the PDF unlocker first with the password you have. If you do not have it, no tool can help — and any site claiming otherwise is either uploading your file to a cracking service or simply lying about what it does.
Is there a size limit?
100 MB per file, which is your browser's memory rather than a paywall. A PDF is held in memory several times over during a rebuild — parsed graph, new graph, serialised output — so a larger file would exhaust the tab and lose the work. Rasterising a very long document is the heaviest case, and each page's canvas is released as soon as its image is encoded specifically so that it remains possible.
Is my document uploaded?
No. The rebuild runs in a Web Worker in this tab using pdf-lib, and the rendering uses pdf.js, also locally. Open DevTools and watch the Network panel while you compress — nothing carries your file. The page is served with connect-src 'self', so the browser itself would refuse an upload attempt.
Which related tools should I use next?
- PDF drehenEin seitlich gescanntes Dokument für alle dauerhaft drehen
- PDF-Seiten löschenSeiten entfernen, sodass ihr Text nicht wiederherstellbar ist
- PDF-Seiten neu anordnenSeiten umsortieren, auch einen Duplex-Scan mit zwei Durchgängen
- Wasserzeichen in PDF setzenAlle Seiten stempeln, ohne die Datei aufzublähen