🔍
Image Compression

How to Compress Image to 20KB for Government Forms

Published: June 10, 2025 • 4 min read • RealImageTool

If you've ever applied for a government exam or filled a portal application in India, you've likely faced this frustrating message: "Photo file size must not exceed 20KB." Getting a clear, professional photo down to 20KB without making it look pixelated is a challenge — but with the right approach, it's quick and easy.

This guide shows you exactly how to compress any photo to 20KB or less using RealImageTool's free online tool — no software installation, no account, works on mobile and desktop.

Why Do Government Portals Require 20KB Photos?

Government portals were designed when internet connectivity in India was much slower. The 20KB limit ensures that form submissions are fast even on 2G or 3G networks, and it keeps their server storage costs manageable. While modern devices take photos of 2–5 MB, government portals still enforce these strict limits.

Common portals with a 20KB photo limit include:

Step-by-Step: Compress Photo to 20KB

  1. Go to the Photo & Signature Resizer tool at vletoolkit.com/photo-signature-resizer
  2. Upload your photo by clicking the upload area or dragging your photo onto it. JPG, PNG, and WebP are all supported.
  3. Click "Resize by KB" tab — this is the default tab when the page loads.
  4. Click the "20 KB" preset button. The tool will automatically find the best quality setting to get your file to 20KB or less.
  5. Check the result — the preview updates and shows the output file size. It should say "Result: ~18-20 KB".
  6. Click "Download Result" to save your compressed photo.

Try It Right Now — Free

No sign-up. No software. Works on mobile.

Compress to 20KB Now

What Happens During Compression?

Our tool uses a binary search algorithm to find the optimal JPEG quality level. Here's how it works:

  1. It starts with a quality of 80% and checks the file size
  2. If the file is still over 20KB, it lowers the quality
  3. If the file is under 20KB, it tries a slightly higher quality
  4. This continues until it finds the highest quality that keeps the file at or below 20KB

This approach preserves maximum image quality while meeting your target size.

Tips for Best Results

Common Photo Size Requirements for Indian Government Portals

Portal / FormPhotoSignature
UIDAI / Aadhaar20KB max, JPG10KB max, JPG
NSDL PAN Card20KB max, JPG10KB max, JPG
IBPS Bank Exams50KB max, JPG20KB max, JPG
SSC Exams100KB max, JPG20KB max, JPG

Frequently Asked Questions

Will compressing to 20KB make the photo look bad?
At 20KB, JPG photos will have some compression artifacts, but they remain perfectly clear for identification purposes. Government portals use these photos for identity verification, not for printing large posters.
My photo is 5MB from my camera — can I compress it to 20KB?
Yes. The algorithm reduces JPEG quality and if needed, reduces pixel dimensions to meet the target size. A 5MB photo compresses to 20KB routinely.
Is it safe to upload my photo to this tool?
Yes. Our tool processes your photo entirely in your browser. Your photo never leaves your device or gets uploaded to any server.

Related Tools

Also useful for government form applications:

Passport Photo Maker Photo Resizer