Compressing a PDF to a size limit such as 200 KB
How to make a PDF small enough for an upload form, what happens to the pages when they are compressed, and why some PDFs cannot get smaller this way.
Last reviewed · 1,110 words
In short
- Choose a limit such as 100 KB, 200 KB or 500 KB and the tool finds the highest picture quality at which every page fits, then shows the exact size.
- Limits are met as KB × 1,000 bytes, the stricter reading, so 200 KB means at most 200,000 bytes and no form can call it too large.
- Each page is saved again as a JPEG picture on a page of the same size. That is what makes a scan small, and it means the text can no longer be selected.
- A PDF made from typed text is often already smaller than any picture of it; the tool then says so and does not offer a bigger copy.
- Everything happens in your browser; the PDF is never uploaded.
Upload forms set limits that phone scans do not respect. A university portal wants the marksheet under 200 KB, a recruitment site wants each certificate under 300 KB, and the PDF your phone's scanner made is 4 MB. Compressing brings the file down to the limit while keeping the pages readable. This page explains how to do it, how the size search works, and the honest cost of the method, so you can decide when to use it.
How to compress a PDF here
Choose the PDF. The tool opens it and shows how many pages it has and its current size. Then pick one of two ways to compress it.
Make it under a size. Press 100 KB, 200 KB, 300 KB, 500 KB or 1 MB, whichever the form asks for, and press Compress PDF. The tool works out the best quality at which every page fits under that size, builds the file, and shows its exact size in bytes beside a Download button.
Choose a strength. Strong, Medium or Light compress by a fixed amount instead of to a target. Use them when there is no limit and you simply want a smaller file to email.
The compressed copy is saved as the original name with -compressed added. Your original file is not changed.
What happens to the pages
A scanned PDF is mostly pictures: each page is a photograph of paper, often stored at a high resolution and quality because the scanner did not know where the file was going. Compressing draws each page, as your PDF reader would show it, onto a canvas in the browser, and saves that drawing again as a JPEG at a resolution and quality chosen to fit. The JPEG is placed on a new page of exactly the same size as the original page, so the document prints and displays at the same size it always did.
JPEG, the standard described in ITU-T T.81, saves space by discarding detail the eye notices least, and its quality setting decides how much is discarded. Resolution decides how many pixels each page has. Together they set the size of the file, which is why a limit can be met by choosing them well.
The cost is the text. In a PDF made from a Word file, the words are stored as text; once a page is saved as a picture, the words are part of the picture. They look the same, but they can no longer be selected, copied or searched. For an upload form that only needs to show the document, that does not matter. For a document someone needs to search, keep the original, or ask whether the form will take a larger file.
How a size limit is met
The size search works page by page, in a fixed order, so the result is the same each time.
First the limit is turned into bytes. A KB is counted two ways, as 1,000 bytes or as 1,024, and an upload check may use either. The tool uses the smaller, so 200 KB becomes at most 200,000 bytes and the file is under the limit by both counts. The 1 MB button means 1,024 KB, at most 1,024,000 bytes.
Next a small amount is set aside for the PDF's own structure, about 1.5 KB plus 0.6 KB a page. What is left is shared between the pages in proportion to their size. For a four-page PDF under 200 KB, that is 200,000 − 3,900 = 196,100 bytes, or about 49,000 bytes a page.
Each page is then drawn at up to 1,800 pixels on its longest side, and the tool searches for the highest JPEG quality that fits its share. If even a low quality does not fit, it tries the page smaller, stepping down by a fifth each time to 500 pixels, the point below which small print stops being readable. It prefers a smaller page at a decent quality to a large page at a very low quality, because heavy JPEG compression smears fine print into blocks.
Finally the whole file is built and measured. If the estimate for the structure was short and the file is over the limit, the budget is cut by the overshoot and the pages are done again. The file you download has always been measured under the limit.
If the pages cannot fit without going below 500 pixels, the tool says so rather than handing you something unreadable. Choose a bigger size, or split the PDF and compress the parts separately if the form accepts several files.
The three strengths
| Strength | Resolution | JPEG quality | An A4 page becomes |
|---|---|---|---|
| Strong | 96 DPI | 50% | 794 × 1,123 pixels |
| Medium | 130 DPI | 62% | 1,075 × 1,520 pixels |
| Light | 170 DPI | 75% | 1,406 × 1,988 pixels |
DPI means pixels per inch of the page. An A4 page is 595 × 842 points, and a point is 1/72 of an inch, so at 96 DPI it is 595 × 96 ÷ 72 = 794 pixels wide. Strong suits reading on a screen; small print gets soft. Medium is a balance most forms and emails accept. Light keeps pages sharper and saves less.
Why some PDFs do not get smaller
A PDF made directly from a word processor stores its text as text: a page might be 20 KB, most of it the font. A picture of that page at a readable resolution is usually larger than that. Compressing such a file by redrawing it can make it bigger, and if it does, the tool says so and does not offer the copy. Keep the original; it is already about as small as it can be.
The same can happen with a scan that was already saved at low quality. There is nothing left to remove without making it worse.
If a typed PDF is over a limit because it has many pages, the split PDF tool can divide it; if it contains large photographs, compressing will help, since those are what take the space.
Choosing a size that stays readable
Fewer pages fit in a small limit more comfortably. As a rough guide from our tests on scan-like A4 pages full of printed text:
- One page under 100 KB stays clearly readable.
- Two to four pages under 200 KB are readable; fine print may soften.
- Five to ten pages are better under 500 KB.
The tool warns you when it had to go to a low quality to fit. Open the file and zoom in on the smallest print, such as a roll number or a date of birth, before you upload it. If it is hard to read, choose the next size up.