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.

5 keeps more detail. 100 compresses harder and is more likely to turn each page into a picture.

How this compressor works

The file is uploaded and opened with PyMuPDF. The tool then makes two attempts and keeps the smaller result.

  1. 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.
  2. 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

Output quality

You cannot tell from the download name which pass won. Open the result and try to select a sentence.

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

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.

Merge PDFs · All tools