🔍

Compress Image to 20KB

Reduce any photo or image to exactly 20KB or below. Perfect for PAN card, Aadhaar, NSDL and government portal photo uploads. Free, instant, browser-based.

📷

Upload Your Image

Click or drag & drop (JPG, PNG, WebP)
Any size accepted

PREVIEW

Upload an image to see preview

How to Compress Image to 20KB

  1. Upload your image — Click the upload area or drag and drop any JPG, PNG, or WebP image. The tool accepts any image size.
  2. Select target size — The tool is pre-set to 20KB. You can also choose 10KB or 15KB if needed.
  3. Choose output format — JPG is recommended for the smallest file size. PNG keeps transparency but produces larger files.
  4. Click Compress — The tool automatically finds the optimal compression level to get your image to exactly 20KB or below.
  5. 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:

Common forms requiring photos under 20KB include:

Technical Details — How Compression Works

Our compress image to 20KB tool uses a smart binary search algorithm to find the optimal JPEG quality setting:

  1. The tool starts with your original image dimensions
  2. It tries different JPEG quality levels (from 5% to 95%) using binary search
  3. After 15 iterations, it finds the highest quality that fits within 20KB
  4. If quality reduction alone isn't enough, the tool also reduces image dimensions proportionally
  5. 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

PAN Card Photo & Signature Requirements (NSDL)

DocumentFormatMax SizeDimensions
PAN Card PhotoJPG20 KB3.5cm x 2.5cm
PAN Card SignatureJPG10 KB6cm x 2cm
Aadhaar PhotoJPG20 KBAny 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.

Related Tools