How to Compress an Image to 20KB Without Making It Blurry
A 20KB upload limit does not have to mean a blurry photo. Here is the order of operations that gets any JPG or PNG under 20KB while keeping it readable.
Updated August 11, 20265 min read
Government job portals, university admission forms and bank KYC pages love the number 20KB. Your phone, meanwhile, produces 4MB photos — two hundred times too big. Most people respond by dragging a quality slider to 10% and uploading something that looks like it was faxed. That is the wrong lever. This guide walks through the order of operations that actually gets a photo under 20KB while keeping the face, the signature or the text on it legible.
Why a quality slider alone cannot save you
File size is driven by two things: how many pixels the image contains, and how much detail is preserved per pixel. Quality settings only touch the second one. A 4000 × 3000 photo holds 12 million pixels, and even at brutal compression settings the encoder still has to say *something* about every one of them. Push quality low enough to hit 20KB at that resolution and you get the blocky, smeared result everyone recognises — the JPEG encoder has been forced to describe 12 million pixels with roughly 160,000 bits.
Cut the resolution first and the maths changes completely. At 600 × 800 — plenty for a form photo displayed in a small box — you have 480,000 pixels, twenty-five times fewer. Now the same 20KB budget buys twenty-five times more detail per pixel, and the encoder can work at a quality level that looks clean rather than destroyed.
The four-step method
Crop away everything the form does not need
Passport-style photos are usually head and shoulders. Document scans are usually the document, not your desk. Open the Image Cropper and remove the margins first — on a typical phone photo this alone deletes 30–50% of the pixels before you have compressed anything.
Resize to the display size, not the camera size
Check the form's stated dimensions. If it does not state any, 600 × 800 pixels is a safe target for a portrait photo and 1000px on the long edge is plenty for a document. Set it in the Image Resizer and nothing visible is lost, because no form displays your photo at 4000px wide.
Convert to JPG if it is a photo
PNG stores photographic detail inefficiently — it was designed for flat graphics and screenshots. A photo saved as PNG is often five times larger than the same photo as JPG at indistinguishable quality. Use the image converter to switch formats before you try to hit a size target.
Let a size target do the last mile
Rather than guessing at quality percentages, use resize image to 20KB. It searches quality settings for you and stops at the highest one that still lands under the ceiling — the same thing you would do by hand, without the twelve export attempts.
What 20KB actually looks like at each size
The table below is a rough guide to what fits comfortably in a 20KB JPG. "Comfortable" means the encoder is working at a quality level where compression artefacts are not obvious at normal viewing distance.
| Dimensions | Content type | Fits in 20KB? |
|---|---|---|
| 300 × 400 | Portrait photo | Easily — usually with quality to spare |
| 600 × 800 | Portrait photo | Yes, at good quality |
| 1000 × 1400 | Scanned text document | Yes — flat pages compress very well |
| 1920 × 1080 | Detailed photo | Only with visible artefacts |
| 4000 × 3000 | Phone photo, uncropped | No — expect heavy blocking |
Notice the third row. Scanned documents behave completely differently from photographs: a page of black text on white paper is mostly flat area, and flat area compresses almost for free. If you are uploading a scanned certificate rather than a portrait, you can keep far more resolution than you expect.
Common mistakes that cost you quality
- Compressing the same file repeatedly. Every JPG save re-encodes and loses detail permanently. If your first attempt is too big, start again from the original — never re-compress the compressed copy.
- Screenshotting the photo to shrink it. A screenshot re-renders at screen resolution and often adds a PNG wrapper bigger than the original.
- Leaving a PNG as a PNG. If the form accepts JPG, converting is usually the single biggest win available for photographic content.
- Ignoring the pixel-dimension rule in the form. Many portals silently reject images below a minimum width even when the file size is fine. Read both limits before you optimise for one.
When 20KB genuinely is not enough
Some content cannot survive that budget: a group photo where individual faces must stay recognisable, a detailed map, or a signature scan where thin strokes matter. If the form rejects your best attempt as unreadable, check whether it accepts a different format. Many portals that cap JPG at 20KB accept PDF at 500KB, and a JPG-to-PDF conversion then lets you upload a far higher-quality image inside a wrapper the form treats generously.
Set the ceiling once and let it find the best quality that fits. It all runs on your device, not our servers.
Compress to 20KBWhy on-device compression matters here
The files people compress to 20KB are, almost by definition, sensitive: identity documents, address proofs, exam admit cards, signature scans. Uploading those to an unknown server to save a few hundred kilobytes is a poor trade. Every tool linked here processes the image locally — read by your own device, resized there, written back to your downloads folder. Nothing is transmitted, which also means the tools work with no signal at all.
If you want the whole toolkit in one place, the image compression hub collects the KB-target pages, the format-specific compressors and the dimension tools with notes on which to reach for.
Frequently asked questions
What is the smallest size an image can be compressed to?
There is no hard floor, but below about 10KB most photographs stop being useful — the encoder has too few bits to describe faces or text. If a form demands under 10KB, reduce the pixel dimensions aggressively first; a small, clean image always beats a large, destroyed one at the same file size.
Does compressing an image to 20KB reduce its resolution?
Compression alone does not change pixel dimensions — it changes how much detail is stored per pixel. But hitting 20KB on a large photo usually requires reducing resolution as well, because there simply are not enough bits to go around. That is why resizing before compressing gives a much better result.
Is it safe to compress ID documents online?
It depends entirely on whether the tool uploads your file. Our compressors do not: the image is processed on your own device and never sent anywhere, so there is no copy of your ID sitting on someone else's server afterwards.
Why does my image get bigger after compression?
Usually because it was saved as PNG. PNG is lossless, so re-saving a photo as PNG can produce a larger file than the JPG you started with. Convert photographic content to JPG or WebP and the size drops immediately.