PixelResize
Compress6 min readUpdated June 21, 2026

How to Compress a Photo to 20KB for Online Exam Forms

Written by The PixelResize Team

If you have ever filled an SSC, UPSC, IBPS, railway or state PSC application, you have met the dreaded 20KB photo limit — and probably watched the form reject one attempt after another. Twenty kilobytes is a genuinely tiny budget, and the usual approach of just lowering the quality slider leaves the photo blurry, blocky or still too large.

The good news is that 20KB is achievable with a clear, legible result every time, as long as you do the steps in the right order. This guide explains why the limit is so harsh, the one mistake that ruins most attempts, and a reliable workflow for both the photograph and the signature.

Compress Image

Shrink JPG, PNG & WebP files without visible quality loss.

Open the tool

Why 20KB is so hard to hit

A file's size is driven mostly by how many pixels it contains, not just by the quality setting. A modern phone photo holds several million pixels, and no quality slider can pack that many into 20 kilobytes without destroying the image. That is why compressing a full-resolution photo straight to 20KB always looks awful.

The fix is to reduce the pixel count first. Once the image is physically small — a few hundred pixels on each side — 20KB becomes enough data to encode it cleanly. Resize first, compress second is the entire secret.

The right order: crop, resize, then compress

Work through these steps and the 20KB target stops being a fight.

  • Crop the photo so your head fills the frame and the background is minimal — wasted background costs precious kilobytes.
  • Resize to the pixel size the portal specifies (often around 200x230px for the photo). Fewer pixels means more quality per kilobyte.
  • Save as JPG, not PNG — JPG compresses photographs far smaller. PNG is for graphics and will blow past 20KB.
  • Compress to the 20KB target and check the live preview before downloading.

Getting the signature under the limit

Signatures are the easy part. A signature is mostly white space with thin dark strokes, which compresses extremely well, so reaching the typical 10–20KB signature cap is straightforward.

Scan or photograph your signature on plain white paper, crop tightly to the strokes, resize to the portal's stated width, and compress. Keep it as a wide landscape strip rather than a square, and it will stay crisp and legible well under the limit.

Keep your documents private

Your exam photo and signature are tied to your identity, so they should not be handed to a random compression website. PixelResize compresses everything inside your browser — the files never touch a server, are never stored, and vanish from memory when you close the tab. For an official application, that on-device privacy is exactly what you want. Our dedicated compress-to-20KB page is preset to this target if you want to skip straight to it.

Key takeaways

  • 20KB is hard because of pixel count, not just quality — resize before you compress.
  • Crop tightly, resize to the portal's pixel size, then compress to 20KB.
  • Always use JPG for the photo; PNG files are far too large for 20KB.
  • Signatures compress easily — keep them as a tight landscape strip.
  • On-device compression keeps your exam photo and signature private.

Frequently asked questions

Related tools