Why a specific number is being demanded
Government portals, exam boards, visa applications, job sites, and banking forms almost all specify a hard ceiling — commonly 100 KB, sometimes 200 KB, occasionally 50 KB for a passport-style photo.
The limits are old. Most of these systems were designed when storage was expensive and they hold millions of documents, so the constraint made sense and has never been revisited. The forms rarely explain how to meet it, and a rejection that does not say by how much you missed is depressingly normal.
That is the whole reason to do this deliberately rather than by trial and error through the form itself: you want to see the resulting file size before you submit, not after a failed upload.
The two levers, in the order that matters
There are only two things that change a JPEG's file size: how many pixels it contains, and how hard it is compressed. Most people reach for the second and ignore the first, which is why they get stuck.
Resolution is the bigger lever by far. Halving both dimensions quarters the pixel count, and file size follows roughly in step. Going from 4000x3000 to 1000x750 removes roughly 94 percent of the pixels before a single compression decision is made.
Compression is the fine adjustment. Once the dimensions are sensible, moving quality from 70 to 50 typically removes another third, and 50 to 30 removes about half of what remains — but at 30 the artefacts are obvious.
A working method
This gets almost anything to almost any target in two or three attempts:
- Check the required dimensions first. Many forms specify both a KB limit and a pixel size; if so, resize to that pixel size before anything else.
- If no dimensions are given, resize the long edge to 1200 pixels for a document or 800 for a photo of a person.
- Compress at quality 70 and look at the resulting size.
- If it fits with room to spare, raise the quality until you approach the limit. A file at 95 KB against a 100 KB cap looks better than one at 40 KB.
- If it does not fit, drop to quality 50 and check again. If it still does not fit, go back and reduce the dimensions further rather than dropping quality below 40.
Why some photos refuse to shrink
Two images with identical dimensions and identical quality settings can differ threefold in size. Content is the reason, and it is not obvious from looking at them.
Detail is expensive to encode. A portrait against a plain wall compresses to a fraction of a photo of foliage, gravel, a crowd, or a patterned carpet, because the encoder has to describe every leaf and pebble individually. Sensor noise from a low-light shot has the same effect and is often invisible until you try to compress.
If a photo stubbornly resists, it is usually busy or grainy rather than badly compressed. Reducing the dimensions is the reliable lever, because it removes the detail rather than trying to encode it cheaply.
Passport and ID photos
The typical specification is a JPEG between 20 and 50 KB at around 600x600 pixels, sometimes with a stated minimum as well as a maximum.
This is easier than it sounds for two reasons. ID photos are a face against a plain background, which is the content JPEG handles most efficiently. And the small pixel dimensions do most of the work before compression starts.
Resize to the specified dimensions first, then compress at quality 70. You will usually land inside the range immediately, and if you have headroom you should raise the quality rather than submit an unnecessarily degraded photo — some systems have a minimum size too, and a suspiciously tiny file can itself trigger a rejection.
Do not compress twice
A common failure pattern: compress to 150 KB, still too big, compress the result again to 90 KB. That stacks two generations of loss and looks considerably worse than compressing the original once to 90 KB.
Always go back to the original file for each attempt. Change one setting, re-run, check the size. The extra few seconds buys a visibly better result.
The same applies to a file that has already been through a messaging app. If your only copy came via WhatsApp or a social platform, it has already been re-encoded once and has less headroom than you think.
Format matters at small sizes
Almost every form that specifies a KB limit expects JPEG, and that is the right format for the job — at very small targets, JPEG's ability to discard detail is exactly what you need.
PNG is the wrong choice here. It is lossless, so it cannot trade quality for size, and a photographic PNG will not approach 100 KB at any usable resolution. If your source is a PNG, converting to JPEG is the single biggest saving available.
WebP would technically do better than JPEG at these sizes, but forms that enforce KB limits are exactly the forms least likely to accept it. Stay with JPEG unless the form explicitly permits otherwise.
Check what you are submitting
At 100 KB and below, look at the result at full size before you submit it. Compression artefacts that are invisible in a thumbnail are obvious at 100 percent, and if the document is going to be read by a human — an identity check, a qualification certificate — legibility is the actual requirement, not the file size.
If text has become unreadable, you have compressed past the point of usefulness. Go back and reduce the dimensions less aggressively while keeping the quality higher, or crop to just the region that matters.
A rejected upload is annoying. An accepted upload that a caseworker cannot read is worse, because you usually find out weeks later.
Frequently asked questions
How do I get an image under 100 KB?
Resize the long edge to around 1200 pixels first, then compress at quality 70 and check. Resolution is a bigger lever than quality at these targets.
How do I compress a passport photo to 50 KB?
Resize to the required dimensions, usually around 600x600, then compress at quality 70. Plain backgrounds and small dimensions together usually land inside 20 to 50 KB.
Why will my photo not go below 200 KB?
It is probably busy or noisy — foliage, crowds, patterns, and low-light grain are all expensive to encode. Reduce the dimensions rather than dropping quality further.
Should I compress the same file twice?
No. Go back to the original each time. Two passes stack two generations of loss and look worse than one pass at the same final size.
Can I use PNG for a 100 KB target?
Not for a photo. PNG is lossless and cannot trade quality for size. Convert to JPEG — that alone is usually the largest saving available.
Is a smaller file always safer for a form?
No. Some systems have a minimum size as well as a maximum, and an unreadable document gets rejected later by a human. Aim just under the limit, not far under it.