How to Compress a PDF to an Exact Size
By DocoPDF Team · 2026-11-23 · 1250 words
To compress a PDF to an exact size, use a tool that works toward a number, not a quality slider. It re-encodes the images inside your PDF in progressively stronger passes until the file slides under your limit — 100 KB, 200 KB, 500 KB, 1 MB, or any custom figure. Text stays vector-sharp, and the process stops at the gentlest pass that fits.
Why portals demand an exact number
Upload caps are hard numbers, not suggestions. Government form portals, exam applications, visa documents, tender submissions and e-filing systems cap uploads to keep their servers light.
The limits cluster around familiar numbers: form portals most commonly want signatures, photos and certificates under 100 KB, university applications, tenders and several banks cap at 500 KB, and many offices silently reject anything over 1 MB. Find the stated number, land under it.
How compression to a target size works
A normal compressor asks how much quality to keep; a target-size compressor asks how many bytes are allowed.
The quality ladder, gentlest pass first
When you set a target, the tool walks a ladder of progressively stronger passes and stops at the first one that fits:
- Already fits? Done. A file already under your limit is returned untouched.
- Lossless clean-up. Streams are optimized and structural waste is packed out, with no pixel touched.
- Image re-encoding. Photos become JPEG at progressively lower quality and smaller pixel size; text stays selectable.
- Grayscale. Colour photos turn grayscale, squeezing scans further.
- Rasterization, last resort. Only if nothing above was enough are pages converted to images — where text stops being selectable.
- Honest failure. If even the strongest pass misses, you get the smallest possible file with a clear note that the target was not reached.
The first pass that fits wins, so you always get the best quality your limit allows.
What pays the toll
Compression targets images first. Text stays vector-sharp and selectable as long as the budget allows, becoming an image only in the final, most aggressive step. A text document with a small logo usually reaches 100 KB with no visible loss; a photo-heavy file is a different story.
Step-by-step: compress a PDF to your exact limit
- Find the real limit. Read the portal's requirement in its own units — 100 KB, 500 KB, 1 MB. If a range is offered, use the largest.
- Open the tool. Go to Compress PDF to Size — it runs entirely in your browser, and the file never leaves your device.
- Pick the target. Choose Under 100 KB, 200 KB, 500 KB or 1 MB, or Custom for any limit from 30 KB to 10 MB. The custom field is measured in KB.
- Run it. A typical document compresses in a few seconds, with live progress per page.
- Read the result honestly. If the target was not reached, re-running changes nothing: pick a bigger target, drop unneeded pages, or split the file and compress the parts separately.
- Eyeball the pages that matter. Check the signature scan or photo page before you upload; if quality is unacceptable, the honest fix is a larger limit or fewer pages.
The honest limits of exact-size compression
There is a floor
A many-page file with dense text has a hard floor: past the strongest pass, going smaller would make it unreadable. When the target cannot be reached, the tool says so and hands you the smallest readable version. The remedies are structural — a bigger target, fewer pages, or Split PDF to break the document into parts that each fit the limit.
Photo-heavy files must lose image quality
This is the trade nobody escapes. To push a photo-heavy file under 100 KB, the images must give up visible quality — the tool does this honestly and only as much as the limit demands, but it cannot make physics optional. Roomier targets tell a different story: multi-page documents with normal graphics often land under 500 KB with image quality barely touched, and image-heavy documents keep noticeably better quality under 2 MB than under 1 MB.
Common mistakes to avoid
Fighting for 100 KB with a 40-page photo scan. Every page of a scan is an image, so a 40-page scan is a stack of forty photos — and below a certain point the only thing left to cut is legibility. Split it and upload only the pages the portal needs.
Compressing when you actually need to remove pages. If the document is huge because it holds pages nobody asked for, deleting content is the honest fix — compression will degrade every page to spare the ones you should have cut.
Mixing up KB and MB. One MB is 1024 KB. A 1 MB target for a portal that said 100 KB leaves the file roughly ten times over the limit; a "1" typed into the KB field when 1 MB was meant demands a file a thousand times smaller. Read the unit twice.
When you should not compress to a target at all
When there is no hard limit. For a smaller PDF to share, quality presets are the better door: Compress PDF offers Light (nearly identical), Recommended (best balance) and Strong (smallest size), re-encodes only the photos, and never touches text, fonts or vector art.
When archival quality matters more than size. Keep the original: every pass below a file's natural floor trades quality for bytes. Compress a copy for the portal and archive the untouched master.
When the goal is fast web viewing, not a byte cap. Web Optimize PDF rebuilds the file's container — packing objects into compressed streams and dropping junk — without touching a single image pixel, though most modern exports are already structurally tight.
Frequently asked questions
Will text stay readable at 100 KB?
Text stays vector-sharp — compression targets images first. A text document with a small logo usually reaches 100 KB with no visible loss; text becomes an image only in the final, most aggressive pass.
What if my PDF cannot reach the target?
A many-page file with dense text has a floor below which it becomes unreadable. The tool returns the smallest possible file, clearly marked that the target was not reached. Try a bigger target, fewer pages, or split the file first.
Which size should I pick for email and upload portals?
Use the number the portal states. Gmail allows 25 MB and Outlook 20 MB, but servers in between often reject 10 MB and above, so 5 MB is the safe target. Form portals most commonly demand 100 KB for signatures, photos and certificates; universities, tenders and banks often use 500 KB.
Does the tool recompress a file that already fits?
No. A file already under your target is returned untouched — no needless quality loss from running the tool.
Is it safe for confidential documents?
Yes. The entire pipeline runs in your browser — the PDF is never uploaded anywhere. Once the page has loaded, you can even go offline and keep compressing.
Hit your exact size limit now
Find the number the portal wants, set it, and let the ladder do the rest — on your device, with text staying sharp as long as the budget allows. Open Compress PDF to Size and land under your limit today.