Compress PDF to 20 KB
Twenty KB is the strictest band on Indian and Pakistani government and university portals: single-page certificates, ID scans and one-page declarations are routinely capped at 20–50 KB, and 20 KB is the toughest of them.
How it works, step by step
- Choose your PDF — its current size appears immediately, with a note if it already fits under 20 KB.
- Press “Compress to 20 KB”. The lossless step runs first; the progress bar shows each render attempt if more is needed.
- Download the result and check the reported size before uploading it to your portal.
Popular PDF Tools
When a 20 KB limit applies
A 20 KB ceiling is the strictest target in this series, and it only suits very small documents: a one- or two-page text PDF with no photographs — a typed letter, a simple form, a plain invoice. Born-digital text compresses extremely well because the words are stored as characters, not pictures, so a short document can genuinely reach 20 KB with its text still selectable.
Scanned pages are a different story. A single scanned page is a photograph, and squeezing a photograph into 20 KB means very low resolution — readable on screen as a reference, but soft and grey. If a portal demands 20 KB for a scan, it is usually expecting a text document or a heavily reduced single page; for multi-page scans, splitting the file or asking the portal about alternatives is more realistic than crushing every page.
Frequently Asked Questions
Will my PDF be exactly 20 KB?
No — at or under 20 KB. Portals and mail servers set maximums, not exact sizes, so the tool stops at the first setting that fits instead of degrading quality further to hit a round number.
Does the text stay selectable?
Only if the lossless first step fits — the result message tells you which path was taken. If the tool had to rebuild pages as images to reach the target, the text becomes part of the pictures (exactly like the Strong mode of the main compressor).
What if my PDF cannot reach 20 KB?
The tool downloads the smallest version it could make and says so honestly, with the achieved size. Very long or photo-dense documents sometimes cannot go that small legibly — splitting them is the practical fix.
My PDF is already under the target. What happens?
The tool tells you it already fits and offers the lossless re-save only. There is no reason to damage a file that already passes.
Is my document uploaded?
No. Both steps run in your browser with pdf-lib and PDF.js — the same libraries as the main Loona compressor. Nothing leaves your device.
What kind of PDF can realistically reach 20 KB?
A short, text-only PDF — typically one or two pages created digitally (typed, not scanned), with no embedded photos. Scanned or photo-heavy PDFs have a size floor set by their images and usually cannot reach 20 KB while staying legible; the tool will still give you the smallest version it can make and report its true size.
Under the hood
First the tool re-saves your PDF with pdf-lib's object streams — a purely structural, lossless repack. If that fits 20 KB, you are done with text still selectable. If not, it renders each page with PDF.js down a ladder of scale/quality settings (from 2× at 90% JPEG down to 0.35× at 30%) and stops at the first setting that fits — never degrading further than your target requires. The status line always reports the true final size and which path was taken.
Worked example
A one-page scanned CNIC at 1.8 MB: the lossless step changes almost nothing (scans are image data already), so the tool renders the page down the ladder and lands near 18 KB at roughly 0.55× scale — the ID number and photo remain legible, which is all the portal checks.