SnapFit

How to compress a photo to an exact KB size without ruining it

By Shivendra Kumar Sonkar · Published 2026-11-02

Almost every Indian exam or ID form states a file-size window such as "between 20 KB and 50 KB". A modern phone photo is usually 2–6 MB, so it has to shrink by a factor of fifty or more — and the way you shrink it decides whether the result looks fine or looks like a smudge. This guide explains what actually controls a JPEG's size, so you can hit a target without guessing.

What makes a JPEG big or small

Three things decide the file size, in this order of impact:

The right order: dimensions, then background, then quality

  1. Resize to the required dimensions first. If the form asks for a specific width and height, do that before anything else. Most of the size reduction happens here, and it costs you no visible quality because the portal will display the photo at that size anyway.
  2. Simplify the background. A flat white or light background removes the most expensive detail from the frame. It is also what most forms ask for.
  3. Only then lower the JPEG quality until the file lands inside the allowed range. Starting here instead — squeezing a 4000-pixel photo down with quality alone — produces the blocky, blotchy result people complain about.

Why "under 50 KB" is not the whole story

Many portals also enforce a minimum size, for example 20 KB. A photo that is too small can be rejected just as a too-large one is, because the portal treats a tiny file as low quality. Aim for the middle of the window rather than the very edge: a file at 95% of the maximum can tip over after the portal re-reads it, and one at the minimum can fall below it.

Common mistakes

How SnapFit handles it

Pick an exam preset (or the Custom preset with your own numbers) and upload the original. SnapFit crops and resizes to the exact dimensions, can replace the background with a flat colour, and then adjusts the JPEG quality so the output falls inside the KB range. You see the resulting file size before you download, and you can nudge quality, zoom and position if the framing needs fixing. Everything runs in your browser, so the original never leaves your device.

If the preview looks too soft at the required size, the cause is almost always the source photo: take it in even daylight, from a steady rear camera, against a plain wall. Better input beats any amount of clever compression.

Open the photo resizer →

More guides