Compress a PDF
This page runs the same compressor as the homepage tool. It tries a safe cleanup first, then a smaller image-based copy, and gives you whichever file is smaller. A harder setting can make the text impossible to select.
Use the compressor
One PDF at a time. The server is configured for uploads up to 50 MB. The notes below stay on the page while the file is processed.
How this compressor works
The file is uploaded and opened with PyMuPDF. The tool then makes two attempts and keeps the smaller result.
- A structural pass removes document metadata, XML metadata, attachments, embedded files, thumbnails, and JavaScript, then recompresses the PDF structure. Text, links, and form fields can survive this pass.
- A raster pass draws every page at 110 dots per inch and saves those pictures as JPEG. The strength slider controls that JPEG quality. The slider runs from 5 to 100 and is mapped down to a JPEG quality between 5 and 80. The default, 50, sits in the middle of that map.
If both attempts are larger than the file you uploaded, you get the original file back. Compression is not guaranteed.
Supported files and limits
- One PDF. Word, Excel, PowerPoint, and images need the convert tool first, and that converter has its own limits.
- The server setting for uploads is 50 MB. A larger request can fail before compression starts. Very image-heavy files can also take long enough that the connection drops.
- Password-protected PDFs are rejected. Unlock the file first with Remove password.
- No account is required. The old free-tier page cap is not applied to anonymous use of this page.
Output quality
You cannot tell from the download name which pass won. Open the result and try to select a sentence.
- If the sentence selects, the structural pass won. The wording is the original text. Metadata and attachments from the source are gone.
- If the sentence does not select, the raster pass won. Each page is a picture. Links, bookmarks, form fields, and searchable text from the source are not in that copy. At 110 DPI, small print and fine lines look softer, and a high slider value makes the JPEG blockier.
- A text-only contract often shrinks only a little, because there are no large images to recompress. A photo brochure or a scan saved as a high-resolution image usually shrinks more, and it is the kind of file that falls through to the picture pass.
A practical example
A 12-page brochure exported from a design tool, with full-page photos, is a good candidate. Start at 50. If the download is still too large for email, move the slider toward 75 and check that captions are still readable. If you need the brochure text to stay selectable for search, stop when the structural result is the one you receive, even if it is larger.
A one-page invoice that is already mostly text is a poor candidate. The tool may return a file almost the same size, or a picture of the invoice that is awkward to copy from later.
Common problems
- “File must be a PDF” means the name does not end in .pdf, or the browser sent a different type.
- The result looks blurry. Lower the slider. Values above 75 are the aggressive end of the JPEG map.
- The result is the same size. Both attempts were larger than the original, so the original was returned. That is expected for PDFs that are already compressed.
- Copy and paste stopped working. The raster pass won. Run it again with a lower strength if you still need real text.
- A signed or certified PDF will not stay certified. Both passes rewrite the file.
Files and privacy
This tool uploads the file to The PDF Doctor server. The server writes it to a temporary folder, runs the operation, and deletes that folder when the request finishes. The folder is also removed if processing fails. The document is not sent to a separate PDF or AI service.
A cleanup task deletes files that remain in the site uploads folder for more than 24 hours. That is a backstop, not storage. Download the result if you need to keep it. The site does not keep an account or a library of your documents.
Page analytics, ads, and the Buy Me a Coffee widget can see that a browser visited the site. They do not receive the PDF. The full account of retention, cookies, and third-party scripts is on the privacy page.