How to compress a photo to 50 KB
And the three reasons a correctly sized photo still gets rejected.
Every exam registration, job application and government portal has the same wall: "Photo must be under 50 KB." "Signature 10–20 KB." "Document must not exceed 200 KB." Your phone shoots 4 MB photos. The portal refuses them. The usual advice is to paste a document with your name and roll number on it into whichever compression website ranks first that day.
Here is how to hit the number properly — and, more usefully, why a file that is the right size still comes back rejected.
Do it in the right order
Dimensions first, file size second. Resizing an image changes its file size, so if you compress to exactly 50 KB and then resize, you have to compress again. Almost everyone does this backwards and ends up in a loop.
The three traps
1. Forms state size in centimetres but validate in pixels
A form asking for a 3.5 × 4.5 cm photo is not measuring your screen. It is checking a pixel count, and the conversion depends on DPI. At the 300 DPI these forms assume:
| Stated size | At 300 DPI | Usually |
|---|---|---|
| 3.5 × 4.5 cm | 413 × 531 px | Passport-style photo |
| 3.5 × 3.5 cm | 413 × 413 px | Square ID photo |
| 2 × 2.5 cm | 236 × 295 px | Small inline photo |
| 5 × 2 cm | 591 × 236 px | Signature strip |
This is why 413 × 531 shows up in every passport photo guide as if it were a magic number. It is just 3.5 × 4.5 cm at 300 DPI.
2. The limit often has a floor as well as a ceiling
When a form says 20–50 KB, it means at least 20 KB. People compress hard to be safe, land at 12 KB, and get a rejection whose error message only ever mentions the upper limit. If your file is suspiciously small, that is the first thing to check.
3. It has to be a real JPEG
Renaming photo.png to photo.jpg does not convert it, and some
portal validators check the actual file contents. Progressive JPEGs and images carrying an
alpha channel are also rejected by older uploaders. Re-saving as a plain baseline JPEG
fixes it. And check which spelling the form wants — .jpg and
.jpeg are the same format, but some validators only accept one literally.
Doing it without any app
On Windows, open the image in Paint → Resize to a smaller percentage → Save As → JPEG, then check the size in Explorer and repeat. It works, but you are guessing: five or six rounds to land near a target, with a real chance of overshooting into unreadable.
On a phone, most gallery apps have a "resize" or "save a copy" option that does roughly the same thing, with the same guesswork.
Online compressors are faster, but you are uploading the document to a stranger's server. For a marksheet, an Aadhaar scan or a signature, that is a real consideration and not a theoretical one.
Doing it by typing the number
The reason the manual method is tedious is that every tool gives you a quality slider when what you have is a target. You do not want "70% quality" — you want 50 KB.
We built Scanfox for exactly that. You type the limit the form gave you — 20 KB, 50 KB, 100 KB, anything — and it works backwards to hit it, instead of making you guess. It has presets for the common photo and signature dimensions, can hold a minimum size when a form demands a floor, and runs entirely on the phone, so the document is never uploaded anywhere. It is free, on Android.
If the target is genuinely impossible for that image, it says so and gives you the smallest usable version, rather than quietly handing you a grey smudge that the portal accepts and a human verifier rejects three weeks later.
Whatever you use, do this last
Open the finished file at 100% zoom and read it. Every digit of your marks, every character of your name. Upload portals are happy to accept a file that a person later cannot verify, and by the time anyone tells you, the correction window has usually closed.
FAQ
Why does the form reject my photo even though it is under the limit?
Usually one of three things: wrong pixel dimensions, a file below a minimum the form also enforces, or a file that is not a true baseline JPEG. Check them in that order.
What is 3.5 × 4.5 cm in pixels?
413 × 531 pixels at 300 DPI. 3.5 cm is 1.378 inches × 300; 4.5 cm is 1.772 inches × 300.
Can any photo be compressed to 20 KB?
Not always usefully. Reduce the pixel dimensions first — a smaller image reaches a small file size with far less visible damage than squeezing a large one.
Is it safe to use an online compression website?
You are uploading the document to someone else's server. For identity documents, prefer something that works offline on your own device.
Does compressing lose quality every time?
Yes — JPEG is lossy, and each re-save degrades it further. Always compress from the original photo, not from a copy you already compressed once.
Need a QR code instead? Use the free QRaft generator — it runs in your browser, nothing uploaded, no sign-up.