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:
- UIDAI Aadhaar enrollment and update portals
- NSDL PAN card application
- Various state government exam portals
- Municipal corporation service portals
Step-by-Step: Compress Photo to 20KB
- Go to the Photo & Signature Resizer tool at vletoolkit.com/photo-signature-resizer
- Upload your photo by clicking the upload area or dragging your photo onto it. JPG, PNG, and WebP are all supported.
- Click "Resize by KB" tab — this is the default tab when the page loads.
- Click the "20 KB" preset button. The tool will automatically find the best quality setting to get your file to 20KB or less.
- Check the result — the preview updates and shows the output file size. It should say "Result: ~18-20 KB".
- Click "Download Result" to save your compressed photo.
What Happens During Compression?
Our tool uses a binary search algorithm to find the optimal JPEG quality level. Here's how it works:
- It starts with a quality of 80% and checks the file size
- If the file is still over 20KB, it lowers the quality
- If the file is under 20KB, it tries a slightly higher quality
- 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
- Use a clean background photo: Photos with plain white or light-colored backgrounds compress better than busy backgrounds.
- Start with a decent quality original: If your original photo is already blurry or dark, compression will make it worse.
- Try JPG output: JPG is a lossy format ideal for photos. PNG at 20KB would look terrible; JPG handles it much better.
- For very strict portals: If the portal checks exact KB and 20KB doesn't upload, try 18KB in the custom field.
- Check dimensions: Some portals also have pixel dimension requirements. Use the "Resize by Pixels" tab to adjust dimensions first, then compress to KB.
Common Photo Size Requirements for Indian Government Portals
| Portal / Form | Photo | Signature |
| UIDAI / Aadhaar | 20KB max, JPG | 10KB max, JPG |
| NSDL PAN Card | 20KB max, JPG | 10KB max, JPG |
| IBPS Bank Exams | 50KB max, JPG | 20KB max, JPG |
| SSC Exams | 100KB max, JPG | 20KB 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.