How to Compress Image to 20KB
- Upload your image — Click the upload area or drag and drop any JPG, PNG, or WebP image. The tool accepts any image size.
- Select target size — The tool is pre-set to 20KB. You can also choose 10KB or 15KB if needed.
- Choose output format — JPG is recommended for the smallest file size. PNG keeps transparency but produces larger files.
- Click Compress — The tool automatically finds the optimal compression level to get your image to exactly 20KB or below.
- Download — Your compressed image is ready. Download and use it for your form upload.
Why 20KB? — Government Form Requirements
Many Indian government portals and online application forms set a strict 20KB limit for photograph uploads. This limit exists because:
- Government servers have limited bandwidth and storage
- Smaller files load faster for verification officials
- The limit ensures uniform image quality across submissions
Common forms requiring photos under 20KB include:
- PAN Card Application (NSDL/UTI) — Photo and signature both limited to 20KB
- Aadhaar Card Corrections (UIDAI) — Photo update requires 20KB or less
- State government scholarship portals — Photo upload limit of 20KB
- UPSC Preliminary registration — Photo file size restrictions
- Various university admission portals — Photo size limits
Technical Details — How Compression Works
Our compress image to 20KB tool uses a smart binary search algorithm to find the optimal JPEG quality setting:
- The tool starts with your original image dimensions
- It tries different JPEG quality levels (from 5% to 95%) using binary search
- After 15 iterations, it finds the highest quality that fits within 20KB
- If quality reduction alone isn't enough, the tool also reduces image dimensions proportionally
- The result is the best possible quality at or below 20KB
All processing happens entirely in your browser using the Canvas API. Your image is never uploaded to any server.
Tips for Best Results
- Start with a good quality original image — the tool compresses without re-uploading, so a better original gives a better result
- Use JPG output format for photo uploads — it achieves smaller sizes than PNG
- For passport/ID photos, ensure the face is well-lit before compressing
- Crop the image to the required dimensions before compressing to maximize quality
- Test scan or verify the compressed image is still clear before uploading to official portals
PAN Card Photo & Signature Requirements (NSDL)
| Document | Format | Max Size | Dimensions |
| PAN Card Photo | JPG | 20 KB | 3.5cm x 2.5cm |
| PAN Card Signature | JPG | 10 KB | 6cm x 2cm |
| Aadhaar Photo | JPG | 20 KB | Any portrait |
Frequently Asked Questions
How to compress image to exactly 20KB?
Upload your image and click "Compress to 20KB". The tool uses binary search on JPEG quality to get the file as close to 20KB as possible without exceeding it. Most images are compressed accurately within 1-2KB of the target.
What if my image is already under 20KB?
If your original image is already under 20KB, you can still use the tool to verify the size or convert the format. The tool will output the image without unnecessary compression if it already meets the requirement.
My compressed image looks blurry — what should I do?
Compressing a large image to 20KB requires significant quality reduction. For better results: (1) Crop the image to the required dimensions first, (2) Use a higher resolution original photo, (3) Ensure good lighting in the original photo. Smaller source images compress better.
Is this tool safe? Will my photo be stored?
Your photo is 100% safe. All processing happens locally in your browser using JavaScript. Your image is never uploaded to our servers, never stored, and never seen by anyone other than you.
Can I compress signature image to 20KB?
Yes, this tool works for signature images too. Upload your signature scan or photo, choose 10KB or 20KB target, and download the compressed version for form uploads.
What is the difference between 10KB and 20KB compression?
10KB compression applies more aggressive quality reduction than 20KB. For photos, 20KB gives noticeably better quality. Use 10KB only if the form specifically requires it (e.g., PAN card signature). For regular passport photos, 20KB is usually sufficient.
Does the compressed image retain the original dimensions?
The tool first tries to compress using quality reduction only (keeping original dimensions). If the image is too large even at minimum quality, it proportionally reduces dimensions. For most photos, dimensions are preserved.