How to use the Compress PDF tool
- Choose the document under PDF file. It can be up to 60 MiB and at most 80 pages long.
- Select Compress PDF and wait while every page is rendered twice.
- Read the Result box, which reports the size before and after in kilobytes, for example 6488.8 → 359.4 KB.
- Select Download to save compressed.pdf, or Clear to start again with another file.
How this tool compresses a PDF
Most PDF optimizers rewrite the objects inside the file. This tool takes a simpler route called rasterizing. PDF.js draws each page onto a canvas, the canvas is exported as a JPEG, and pdf-lib builds a new document that holds one picture per page at the original page size.
It does this twice. The first pass renders at scale 1.25, which is 90 pixels per inch, with JPEG quality 0.75. The second pass renders at scale 1, or 72 pixels per inch, with quality 0.58. The tool then compares both results with your original and offers whichever of the three is smallest.
A worked example with a six-page scan
The test file was six A4 pages scanned at 300 DPI, 6,488,833 bytes in total. The first pass drew each page at 745 by 1053 pixels and produced 767.8 KB. The second pass drew 596 by 842 pixels and produced 359,425 bytes, about 5.5% of the original, so that version was returned.
A ten-page document that contained only text went the other way. At 12.9 KB it was already far smaller than any picture of its pages, and the tool handed back the original file under its original name.
scan.pdf (6 pages) 6488.8 → 359.4 KB.
text.pdf (10 pages) Original was already smaller than the rendered versions.What you give up for the smaller file
A rasterized page is a photograph of the page. That is why scans and photo-heavy exports shrink so much, and it is also why some features do not survive.
- Text becomes pixels. It can no longer be selected, searched or copied, and screen readers find nothing to read.
- Links, bookmarks and fillable form fields are not carried into the new file.
- Sharp vector drawings and small type soften at 72 pixels per inch.
- Title, author and other document metadata are not copied.
- Page count and page dimensions stay exactly as they were.
Limits and messages you may see
Errors appear in the status line under the Result box, and no download is offered.
- Choose a file up to 60 MiB: the selected file is over the size limit.
- This operation supports up to 80 PDF pages: split a longer document and compress the parts separately.
- The rendered page exceeds 24 megapixels: one page is so large, for example a wall poster, that its canvas would pass the pixel limit.
- Enter the correct PDF password: the file needs a password to open. This page has no password field, so export a password-free copy first.
Frequently asked questions
Why did I get the same PDF back after compressing?
Neither rendered version was smaller than your file, so the tool returned the original and said so in the Result box. This is normal for PDFs made of text and vector graphics, which are already compact.
Can I still search or copy text in the compressed PDF?
No. When a rendered version is returned, each page is one JPEG image and the text layer is gone. Keep the original as your working copy.
What resolution does the compressed PDF use?
Pages are stored at 90 or 72 pixels per inch relative to the page size, whichever pass gave the smaller file. A US Letter page becomes 765 by 990 or 612 by 792 pixels.
Is my PDF uploaded when I compress it?
No. PDF.js and pdf-lib run inside the page. The file is read from your disk into browser memory, rendered there, and the result is offered as a local download.
How do I compress a PDF to a specific size?
This page has no size target. The 2 MB, 1 MB and 500 KB compressors on this site use the same method with up to four quality levels and stop at the first one that fits.