Compress Image to 20KB
Force any photo under a strict 20KB limit for exam forms, application portals, and eKYC uploads. Exact-size engine, private and free.
Drop images here or click to browse
Up to 10 files · JPG, PNG, WebP, GIF, BMP, AVIF — up to 50MB each. Files never leave your device.
Binary search over encoder quality hits your exact byte target, shrinking dimensions only if quality alone can't get there.
Your before / after comparison will appear here.
Why 20KB is the hardest common upload limit
Twenty kilobytes is where casual compression stops working. A modern phone photo opens at three to six megabytes, so reaching 20KB means discarding over 99% of the bytes — roughly a 200-to-1 reduction. No quality slider alone bridges that gap without turning faces into watercolor, which is why applicants so often bounce between a photo that looks fine at 80KB and an unrecognizable smear at 15KB. Government and exam portals impose these limits for good infrastructure reasons: millions of applicants uploading multi-megabyte scans would drown their servers and make verification queues crawl. The limit is a forcing function, and the correct response is not to drag quality to zero but to attack both levers — quality and dimensions — in a controlled, measurable way. That is exactly what the exact-target engine above does: it binary searches seven quality levels at full resolution first, preserving every pixel it can, and only then spends resolution, in gentle 12% steps, to close the remaining gap.
The exam-form photo workflow that actually works
Start from the largest, cleanest source you have — a fresh photograph beats a WhatsApp forward that has already been compressed twice. Frame the shot correctly before you compress: most Indian exam and government forms specify a recent passport-style photograph around 3.5 × 4.5 cm with the face occupying most of the frame, plus a signature in black ink on white paper. Crop away everything that is not required — wide margins of wall, desk, or blank paper consume bytes without helping verification. A tightly cropped 600 × 700 portrait carries less than half the pixels of the loose original, which means the encoder can spend twice the bits per pixel at the same file size. Then drop the cropped file into the tool above, confirm JPEG output, and download. Check two things before uploading to the portal: the file size reads under 20KB in your file manager, and the face is still recognizable at full zoom. If it is not, the source — not the compressor — is usually at fault.
Understanding the dimensions behind the limit
File size and pixel dimensions are linked by information density, and tiny budgets demand modest dimensions. As a rule of thumb, a clean JPEG portrait holds acceptable quality at roughly 0.05 to 0.1 bytes per pixel for verification purposes. At 20KB (about 20,480 bytes), that budget buys roughly 200,000–400,000 pixels — a 500 × 500 to 640 × 640 image. Portals know this, which is why their photo specifications cluster around 200 × 230 pixels minimums: they are asking for exactly what fits. Do not fight this by upscaling a small image first; invented pixels compress poorly and verification software gains nothing from them. Conversely, do not upload a 3000-pixel photo and hope the portal downsamples gracefully — many portals reject oversized dimensions outright or scale them with crude algorithms that look worse than a deliberate reduction. Match the portal's stated pixel range, then let the target engine tune quality to fit the bytes.
Signatures: the special hell of 20KB
Photographs compress relatively well because skin and backgrounds are smooth gradients. Ink signatures are the opposite: razor-thin high-contrast strokes surrounded by vast white paper, which is close to JPEG's worst case. Three techniques rescue them. First, capture at high resolution and crop brutally tight — every millimeter of empty margin is bytes spent on nothing, and signatures typically ship with enormous margins. Second, sign with a thick black marker rather than a ballpoint: bolder strokes survive quantization, while hairline blue strokes dissolve into gray ghosts. Third, keep the signature strictly black on white; colored paper, ruled lines, or shadows force the encoder to spend bits describing background texture instead of your strokes. If the portal allows it, a PNG of a tight black-and-white signature can sometimes beat JPEG at these sizes, since flat white compresses losslessly to almost nothing — but default to JPEG unless the portal says otherwise.
The DPI myth that wastes applicants' time
Countless forum threads advise changing an image to “200 DPI” to shrink it, which reflects a misunderstanding worth killing: DPI metadata does not change a single pixel or byte of image data. Dots-per-inch is merely a printing hint stored in the file header — a 600 × 600 image at 72 DPI and the same image at 300 DPI are byte-identical apart from one header number. Web portals ignore DPI entirely; they measure pixels and bytes. What actually matters is pixel dimensions and encoder quality, both of which you control directly in this workflow. Any time a guide tells you to adjust DPI for an online upload, it is confusing print preparation with web preparation. Ignore it, crop your pixels, set your target, and move on with your application.
Troubleshooting portal rejections
When a portal rejects your file, the fix is usually format or dimensions rather than size. “File type not supported” means the extension or MIME sniffing failed — ensure the download ends in .jpg and re-upload exactly that file rather than a renamed copy. “Dimensions invalid” means you missed the portal's pixel window; resize first, then re-run the 20KB target so quality is optimized for the final canvas. “File too large” on a file that reads under 20KB locally is almost always a kilobytes-vs-kibibytes rounding difference — regenerate with a small safety margin by aiming slightly under, or simply re-run the tool, since the engine targets exact bytes with headroom. And if the preview looks acceptable but the portal's own preview looks terrible, that is the portal's renderer, not your file; every applicant's photo gets the same treatment. Keep a copy of each submitted file with the application number — if verification questions arise months later, you will want to show exactly what you uploaded.
Frequently asked questions
How can a photo possibly fit in 20KB?
By combining both levers of compression: encoder quality is binary-searched down to the highest value that fits, and if quality alone cannot get there, dimensions are progressively scaled down (each step multiplies width and height by 0.88) until the budget is met. A 600×600 portrait at moderate JPEG quality lands comfortably under 20KB.
Will a 20KB photo still be accepted by exam portals?
Yes, provided the portal's limit is 20KB and it accepts JPEG — which is what this tool outputs by default. Portals check file size and dimensions, not visual quality. Keep the output at the portal's required dimensions (often around 200×230 px or 3.5×4.5 cm at low DPI) and verify the downloaded file reads under 20KB before uploading.
Should I use JPEG or WebP for a 20KB target?
Use JPEG for any official form, government portal, or exam application — they almost always require .jpg and may reject WebP outright. WebP compresses smaller at tiny sizes, so it is the better choice only when you control the destination, such as your own site's thumbnails or avatars.
Why does the tool shrink my photo's dimensions?
There is a floor to how small any given pixel count can compress: random photographic detail simply needs bytes. When seven rounds of quality binary search cannot hit 20KB at full size, reducing dimensions is the only remaining lever. The tool does this in gentle 12% steps so it keeps as much resolution as the budget allows.
My signature turned to mush at 20KB. What helps?
Signatures are thin dark lines on white — JPEG's worst case at low quality. Scan or photograph the signature at high resolution first, crop tightly to remove empty paper margins (fewer white pixels means fewer wasted bytes), and keep it black-on-white rather than blue ink. Cropping margins alone often halves the size.
Is it safe to upload ID photos to this tool?
Nothing is uploaded at all — the entire compression runs in your browser tab via canvas and file APIs. Your passport photo never leaves your device, and re-encoding strips EXIF metadata like GPS coordinates from the output file as a side benefit.
Related tools
Compress Image
Shrink JPEG, PNG, and WebP files with a quality slider or an exact KB target.
Resize Image
Change pixel dimensions with aspect-ratio lock and social-media presets.
Crop Image
Trim photos to 1:1, 4:3, 16:9, or a free selection — right in your browser.
Convert Image
Switch between JPEG, PNG, and WebP without uploading anything.
Compress to 50KB
Hit a 50KB upload limit for resumes, ID proofs, and signatures.
Compress to 100KB
Get under 100KB for marketplace listings and CMS uploads.