Skip to content
HNarzędzia
en
Categories

Compress a PDF to a specific size in KB or MB

The upload form accepts PDFs up to 500 KB and yours is several MB? Enter the limit and the tool picks the page resolution and quality for you. The document never leaves your device.

  • Free
  • No sign-up
  • Private
  • Runs locally

Pages are turned into images

Every page is saved as a JPEG image and put into a new PDF. Text is no longer selectable or searchable, and links, bookmarks and form fields disappear. Keep the original.

Do not need an exact limit? Start with Compress PDF. It has ready-made levels and works in a similar way, but you choose the DPI and quality yourself.

Drag & drop files here

or click to choose from your device

PDF file · processed locally in your browser

How to compress a PDF to a specific size

  1. 1.

    Open your PDF

    Drop the document on the box above or choose it from your device. If the file is password-protected, enter the password. It is used only on your device.

  2. 2.

    Set the limit

    Click 200 KB, 500 KB, 1 MB, 2 MB, 5 MB or 10 MB, or type your own value and pick KB or MB. The default is 1 MB.

  3. 3.

    Check the estimate

    The tool shows how much room each page gets. If it is very little, it warns you that text may blur or that the limit may be out of reach.

  4. 4.

    Click “Shrink PDF to the limit”

    The tool runs several attempts with different DPI and JPEG quality. The progress bar shows the current attempt and page, and you can cancel at any time.

  5. 5.

    Check the result and download

    You see the size before and after, the DPI and the JPEG quality that were chosen. If the limit cannot be reached, you get the smallest possible result with a message.

How the tool picks the DPI and quality

Every page is drawn at a chosen resolution (DPI), saved as a JPEG image and put into a new PDF with the same page dimensions. The tool looks for settings where the file fits the limit and the pages keep as much detail as possible. The size of each attempt is the real size of the saved file, not an estimate.

  1. It first tries the lowest settings: 72 DPI and JPEG quality 30%. If the file does not fit even then, the limit is out of reach and you get that smallest result with a message.
  2. Then it uses a binary search to find the highest DPI from the list 72, 84, 96, 110, 130, 150 and 200 at which the file fits with quality 75%.
  3. Finally it tunes the JPEG quality in 5-point steps: up to 95% at the chosen DPI, or down to 30% when even 72 DPI at 75% is too big.

A typical run takes between a few and eight attempts. Each one renders every page, and attempts that already go over the limit stop early. A long document can take a few minutes. Very large pages are capped at about 16 megapixels so the browser does not run out of memory.

What the document loses

Pages become images, so text can no longer be selected, copied or searched, and links, bookmarks and form fields stop working. Page dimensions (for example A4) stay the same. The result is a new file, so it is not password-protected and does not carry the original metadata.

Do not use this method for documents you still need to edit, search or fill in. Keep the original and send the smaller copy only where a size limit forces you to.

Is the limit realistic: room per page

The size of the result depends mostly on the number of pages, so it helps to work out how much room each page gets. The table shows the limit divided by the number of pages, in KB per page.

Limit5 pages10 pages20 pages50 pages
200 KB4020104
500 KB100502510
1 MB2001005020
2 MB40020010040
5 MB1000500250100
10 MB20001000500200

The tool warns you when a page gets less than 100 KB (resolution and quality will be low and small text may blur), and more strongly when it gets less than 40 KB (the limit may be out of reach). This is only a rough estimate. In our tests an A4 page saved at the lowest settings (72 DPI, quality 30%) weighed from about 40 KB (text with a photo) to about 95 KB (densely set text), and a page with a plain background weighs much less.

When to start with plain compression

If you do not need an exact size, use Compress PDF. It has three ready-made levels and shows the result right away, so for a file that is only slightly too big “Recommended” is often enough. That tool also turns pages into images, so it has the same limitations as this one.

A document built from photos shrinks better if you shrink the photos before you assemble the PDF. Do that in compress image to target size, then put the pages together in JPG to PDF. You can also split a long document and send the parts separately.

KB or KiB

The tool counts 1 KB as 1000 bytes and 1 MB as 1,000,000 bytes. Some forms count 1 KB as 1024 bytes. A result that fits a limit counted the first way also fits there, with room to spare. If a form rejects a file right at the limit, set the limit a few KB lower.

Frequently asked questions

Can I still select text after shrinking the PDF?

+
No. Pages are converted to JPEG images, so text becomes part of the picture. Links, bookmarks and form fields stop working too. Keep the original if you need to select, search or fill in the document.

Will every PDF fit the limit I choose?

+
No. The lowest settings are 72 DPI and JPEG quality 30%. If the file does not fit even then, you get the smallest possible result and a message that the limit is exceeded. Raise the limit or split the document into parts.

Why is the result smaller than the limit?

+
The tool picks the highest DPI and quality from a fixed list that still fit. The next step up would go over the limit, so some room is left.

How is this different from Compress PDF?

+
In Compress PDF you choose a level or the DPI and quality yourself and then check the size of the result. Here you enter the target size and the tool picks the settings. Both methods turn pages into images.

How do I get a PDF made of photos under a size limit?

+
Shrink the photos first with compress image to target size, then put them into one file with JPG to PDF. Text pages then do not have to lose sharpness.

Is my PDF uploaded to a server?

+
No. Rendering, encoding and assembling the PDF all happen in your browser, and the document never leaves your device.

Can I shrink a password-protected PDF?

+
Yes, if you know the password. Enter it after opening the file. The result is a new document made of images, so it is no longer password-protected.

How long does it take?

+
It depends on the number of pages and your device. The tool makes several attempts and each one renders every page. The progress bar shows the current attempt, DPI, quality and page, and you can cancel at any time.

Updated: