How to make an image an exact KB size
Getting a photo under 50 KB, or between 20 KB and 50 KB, without it turning to mush. How JPEG size is actually controlled.
"Make this photo 50 KB" sounds like it should be a single setting, and in most image software it is not. Understanding why makes the whole thing straightforward.
What actually controls JPEG file size
Two things, and only two.
Pixel dimensions. Fewer pixels means less to store. Halving both width and height leaves roughly a quarter of the pixels, and the file shrinks accordingly.
Quality. JPEG discards detail to save space, and the quality setting controls how much. Higher quality means a bigger file.
There is no setting that says "50 KB", because the same quality produces wildly different sizes depending on the picture. A plain wall compresses to almost nothing; a tree full of leaves does not. The only way to hit a target is to try a quality, measure the result, and adjust — which is exactly what Compress Image does automatically, searching for the highest quality that still fits your limit.
Reduce dimensions before quality
If a photograph has to fit a tight limit, resizing first gives a far better result than compressing hard.
A 4000x3000 phone photograph squeezed into 50 KB looks terrible, because there are twelve million pixels fighting for space. The same picture resized to 800x600 and then compressed to 50 KB looks fine, because each remaining pixel gets a reasonable share.
The practical rule: if the form gives you pixel dimensions, resize to them first, then compress. If it gives only a KB limit, resize to roughly the size the image will actually be displayed at, then compress.
Hitting a minimum size
A maximum is a matter of compressing harder. A minimum is a genuinely different problem, and a surprising one the first time you meet it.
A signature on white paper might compress to 4 KB at maximum quality. If the form demands at least 10 KB, no quality setting will get you there, because there is simply not enough detail in the picture to occupy the space. Raising quality further stops making a difference.
The usual answer is padding. A JPEG can carry a comment block that every viewer and every upload checker ignores, so harmless bytes are added there until the file reaches the required size. The image is not altered at all. The exam photo and signature tools here do it automatically when you set a minimum.
Why some images refuse to get small
If a picture will not compress, it is usually one of these:
- It is a screenshot or contains text. JPEG is built for photographs and handles sharp edges badly. Text goes blotchy long before a face does. Reduce the dimensions rather than the quality.
- It is a PNG. PNG is lossless and has no quality dial at all. Convert it to JPG first, then compress.
- It is extremely detailed. Foliage, crowds, fine patterns and noise all resist compression. Resizing is the answer.
- It has already been compressed hard. Re-compressing an already damaged file loses more quality for very little size gain. Start from the original if you still have it.
How small is too small
As a rough guide for photographs, below about 20 KB most pictures visibly break up unless they are also small in pixel terms. A 200x230 exam photo at 20 KB looks perfectly acceptable; a 1000x1200 photograph at 20 KB does not. Size and dimensions have to come down together.
If a form demands something that seems impossible, it usually also specifies small pixel dimensions. Set those first and the KB limit stops being difficult.
Doing it without uploading your photo
Every tool on this site runs inside your browser. Your picture is read from your device, processed there, and saved back there. Nothing is transmitted, which for a document carrying your face and signature is worth caring about. You can disconnect from the internet after a tool page has loaded and it still works.
Questions
Why can I not just type 50 KB and get 50 KB?
JPEG has no file-size setting, only a quality setting, and the same quality gives very different sizes on different pictures. Hitting a target means trying a quality, measuring, and adjusting, which is what an exact-size tool automates.
Should I resize or compress to hit a limit?
Resize first, then compress. Compressing a very large photograph into a small limit looks far worse than reducing the dimensions and then compressing gently.
How do I make a file bigger to meet a minimum?
Padding. Bytes are added to a part of the JPEG that viewers ignore, so the file grows while the image stays identical. Raising quality does not reliably work, because a simple picture has no more detail to store.
Why will my screenshot not compress?
JPEG is designed for photographs and handles the sharp edges of text badly. Reduce the pixel dimensions instead, or keep it as a PNG if the form allows.
Are my photos uploaded to a server?
No. Every tool here runs in your browser and your files never leave your device. You can disconnect from the internet once the page has loaded and the tools still work.