How to compress an image to 20KB

20KB is one of the tightest file-size targets that shows up on Indian exam and government forms, and it's also one of the hardest to hit by hand using a phone's built-in editor, because most phone editors let you pick a quality percentage or a pixel size, not an exact KB number. This guide covers what actually determines the final KB and how to land under 20KB reliably.

What actually controls the final KB

Three things determine a JPEG's final file size: the pixel dimensions (a smaller photo has less data to encode), the JPEG quality setting (more compression throws away more visual detail), and how visually complex the photo itself is (a plain background compresses much better than a busy, textured one). Hitting an exact number like 20KB means adjusting quality iteratively until the encoded size lands under the target โ€” which is tedious by hand but is exactly what an automated tool does in a fraction of a second.

Step-by-step: compress to exactly 20KB

  1. Open the Compress Image to 20KB tool.
  2. Upload your photo โ€” JPG, PNG, HEIC or WebP all work as input.
  3. The tool automatically reduces quality in steps and re-checks the encoded size after each pass.
  4. Once the file lands under 20KB, it stops and shows you the final size on screen.
  5. Download the compressed JPEG โ€” nothing was uploaded to any server during the process.

Why manual attempts often overshoot

Getting a better result at 20KB, not just a smaller one

Since 20KB is a tight budget, starting from a good source photo matters more than usual: a plain, evenly-lit background compresses far more cleanly than a cluttered one, because the compressor doesn't have to spend bits preserving background detail nobody's grading you on anyway. A same-lighting, plain-wall retake often produces a visibly sharper 20KB result than a heavily-compressed version of a busy photo.

When shrinking the quality slider alone will not reach 20KB

A photo straight out of a modern phone camera is usually several megabytes at a resolution far larger than any exam portal needs, so pushing the quality slider down on its own can only go so far before the picture starts looking blocky around edges and text. The more reliable order is to reduce the pixel dimensions first โ€” most portals only need a few hundred pixels on the longer side โ€” and only then fine-tune the compression quality to land inside the 20KB target. Doing it in this order usually produces a noticeably cleaner result than compressing a full-resolution photo hard enough to hit the same file size.

If the source photo has a lot of fine detail or texture in the background, that detail is exactly what pushes the file size up, so a plain, evenly lit background genuinely compresses smaller than a busy one at the same quality setting, on top of being what most portals require anyway.

Frequently asked questions

Will 20KB always look blurry?

Not necessarily โ€” a plain-background, well-lit, front-facing photo compresses to 20KB much more cleanly than a busy or poorly-lit one, since there's simply less detail the compressor needs to discard.

Can I compress a screenshot to 20KB the same way?

Yes, the same tool works on any image, though screenshots with sharp text edges sometimes show more visible compression artifacts than a photo at the same KB target.

Does compressing to 20KB change the pixel dimensions?

The tool primarily adjusts quality first since that has less visible impact than shrinking dimensions; only if quality reduction alone can't reach the target does it also reduce pixel size.

Should I reduce pixel dimensions or compression quality first?

Reduce the pixel dimensions first, since most portals only need a small size, and then adjust compression quality to land inside your target file size.