Back to Blog
Image Compression May 21, 2026 5 min read

How to Compress an Image to 20KB Without Losing Quality

The 20KB limit is one of the most common — and most frustrating — requirements on Indian government exam portals. Here's the science behind hitting that exact size without your photo looking like a pixel soup.

Every SSC, UPSC, IBPS, and state government exam portal has one thing in common: they set a 20KB maximum file size for photo uploads while simultaneously requiring the photo to be "clear and recognizable." These two requirements seem contradictory — but they're not, if you use the right compression approach.

Why Is 20KB the Standard Government Portal Limit?

Government portals were largely designed between 2008–2015, when India's average internet speed was under 1 Mbps. The 20KB limit ensures fast form processing even on 2G connections. While bandwidth has improved dramatically, the limits remain — and applicants must adapt.

Here's what 20KB actually looks like in practice: a standard 3MP phone photo is around 2,000KB–4,000KB. To get it under 20KB, you need to reduce it by 99%. Most tools simply crank up JPEG compression, which creates blocky artefacts. Smart tools do it differently.

The Right Way to Compress to 20KB

Smart 2-Step Compression:

  • 1
    Resize pixels first — reduce the image dimensions to what the portal needs (e.g. 200×230px for NSDL, 350×350px for UPSC). Fewer pixels = less data.
  • 2
    Then compress quality — apply JPEG quality reduction (typically 60–75%) on the already-smaller image. This preserves face clarity far better than compressing a full-size image.

This is exactly what OptiKit's 20KB compressor does — resize then compress, not just compress. The result is a photo that looks sharp because the pixel density matches the output size.

Portals That Require Under 20KB

SSC CGL / CHSL

Photo: 20–50KB | Signature: 10–20KB

UPSC CSE

Photo: 20–300KB | Signature: 20–300KB

State PSC Portals

Photo: 10–20KB is common minimum

SBI / Bank Exams

Photo: 20–50KB | Signature: 10–20KB

Railway NTPC / Group D

Photo: 20–40KB | Signature: 10–40KB

NSDL PAN Card

Photo: under 50KB (212×212px)

Don't Use WhatsApp-Downloaded Photos

WhatsApp compresses images to around 72 DPI and reduces colour depth. Starting compression from an already-compressed WhatsApp photo results in double compression artefacts — blocky, unrecognizable faces that portals may reject via biometric checks.

Step-by-Step: Compress Your Photo to 20KB

  1. Use the original photo — from your camera or studio, not WhatsApp.
  2. Open OptiKit's 20KB Compressor — no account required, works in your browser.
  3. Upload your photo — the tool accepts JPEG, PNG, WebP, and HEIC.
  4. The tool automatically resizes and compresses to under 20KB using smart pixel reduction.
  5. Download the output and upload it to your exam portal.

Tips for Best Results at 20KB

  • Start with a high-resolution original (3MP or above) — more data to work with means better quality output
  • Use a white background — solid colours compress better than complex textures
  • Ensure good, even lighting — shadows increase file size and reduce perceived sharpness
  • Keep the face centred and filling 60–80% of the frame
  • Avoid wearing patterned clothing — patterns add compression complexity

20KB in seconds. Zero uploads.

OptiKit processes your image entirely in your browser. No server, no data retention, no account. Just paste your photo and get a portal-ready file instantly.