How to Compress an Image to 20KB or 50KB Online

Published on • Updated on • SmartWish Team

When applying online for government jobs, college admissions or entrance tests such as UPSC, SSC, banking exams, JEE and NEET, the hardest part is often uploading the photo and signature.

Every portal sets its own file size limit. A photograph is commonly expected to be between 20KB and 50KB, while a signature is often limited to 10KB to 20KB. Upload anything larger and the portal usually rejects the file straight away.

This guide explains how to reach a target file size on your phone or laptop, for free, without installing any software.

1. Common File Requirements on Online Forms

Most government and private portals ask for similar specifications. The table below shows values that appear most often.

Document type Typical dimensions Typical file size Format
Passport photo 3.5 × 4.5 cm (413 × 531 px at 300 DPI) 20 KB – 50 KB JPG / JPEG
Exam form photo 200 × 230 px 20 KB – 50 KB JPG / JPEG
Signature 3.5 × 1.5 cm (about 140 × 60 px) 10 KB – 20 KB JPG / JPEG
Scanned documents A4 page 100 KB – 300 KB PDF / JPG
These are commonly seen values, not official rules. Every board publishes its own specification and the numbers change from year to year, so always read the instructions on the form you are filling before uploading.

Need to compress a photo to 20KB or 50KB?

Use our free compressor, which processes the image entirely inside your browser.

Open the Free Compressor

2. Why Compressed Images Sometimes Look Blurry

JPG is a lossy format, which means some detail is always discarded to make the file smaller. How much detail is lost depends mainly on one thing: how much data is available for each pixel in the image.

If you ask for 20KB while the image is still 1920 × 1080 pixels, roughly two million pixels have to share a very small amount of data. The compressor has little choice but to discard most of the detail, and the result often looks blocky. Reduce the image to around 640 × 360 pixels and the same 20KB now covers far fewer pixels, so the photo usually stays clear.

Target file size Dimensions that usually still look acceptable
20 KB Up to roughly 640 × 360 px
50 KB Up to roughly 1000 × 560 px
100 KB Up to roughly 1400 × 790 px
200 KB Up to roughly 2000 × 1125 px
These figures are rough guidance only. A photo with a plain background compresses far better than a busy outdoor scene, so the same file size can look very different depending on the image.

A standard 413 × 531 passport photo or a 200 × 230 exam photo is well below these numbers, so 20KB normally gives them plenty of room.

3. Step by Step: Compress an Image to 20KB

The steps below work the same way on a phone, a tablet or a laptop, because everything runs in the browser.

  1. Open the SmartWish Image Resizer on your phone or laptop.
  2. Drag and drop your photo or signature, or tap the upload area to select the file.
  3. Set the pixel dimensions your form asks for, for example 413 × 531 for a passport photo.
  4. Choose JPG as the output format, since JPG compresses photographs best.
  5. Enter your limit in the target size in KB field, for example 20 or 50.
  6. Keep the auto-resize option switched on so the tool can reduce dimensions instead of destroying detail.
  7. Start the resize and check the reported dimensions and file size below the preview.
  8. Download the file and open it once before uploading, to confirm it looks correct.

Tips for the best result

  • Always set the dimensions first and apply the KB limit afterwards, not the other way round.
  • Use JPG rather than PNG when a specific file size is required.
  • A plain, evenly lit background compresses much better than a detailed one.
  • Avoid compressing an image that has already been compressed several times.
  • Check the preview before uploading. If it looks soft, reduce the dimensions slightly.
Most compressors aim to land at or just under your target, so a 20KB request may produce a file of 18KB or 19KB. That is normal and is accepted by portals, because the limit is a maximum. Do check whether your form also states a minimum size.

4. How to Check the File Size Before Uploading

Never assume the file is the right size. Checking takes a few seconds.

  • Windows: right-click the file, choose Properties, and read the Size value.
  • macOS: right-click the file and choose Get Info.
  • Android: open the Files app, long-press the file and tap Details or Info.
  • iPhone: open the Files app, long-press the file and tap Get Info.

Remember that 1 MB is about 1024 KB. If your file shows as 0.9 MB, it is around 920KB and far above a 20KB limit.

5. Common Mistakes to Avoid

  • Renaming the file extension. Changing photo.png to photo.jpg does not convert the format. Many portals detect this and reject the upload.
  • Uploading a screenshot of a photo. Screenshots add the surrounding interface and often have the wrong dimensions.
  • Using a WhatsApp copy. It has already been compressed once, so a second round of compression damages it further.
  • Compressing before cropping. Crop and resize first, compress last.
  • Ignoring the minimum size. Some forms reject files that are too small as well as too large.
  • Not reading the format rule. If the form says JPEG only, a WEBP or PNG file will fail even at the correct size.

6. Frequently Asked Questions

Can I compress a photo received on WhatsApp?

Yes, but WhatsApp already compresses images before sending them, so some quality has been lost before you even start. Use the original high resolution file from the camera roll whenever possible, and always check the preview after compression.

Can a PNG file be compressed to an exact KB size?

PNG uses lossless compression, so hitting an exact KB target is not reliable. When a form sets a specific file size limit, choose JPG or WEBP as the output format instead.

Is it safe to upload my image to this website?

Your image is never uploaded to a server. All compression runs inside your own browser using the Canvas API, so the file stays on your device at all times. Details are explained in our Privacy Policy.

What should I do if the image still looks blurry?

Reduce the pixel dimensions before applying the KB limit, and keep the auto-resize option switched on. If your form allows a slightly larger file, moving from 20KB to 50KB also makes a noticeable difference.

Why do government forms have file size limits at all?

These portals receive a very large number of applications in a short period. Smaller files reduce storage requirements and let candidates on slow mobile connections finish their upload successfully.

Does renaming a PNG file to .jpg convert it?

No. Changing the file extension only changes the name, not the actual format inside the file. Many portals detect this and reject the upload. Use a converter or a resizer that lets you choose JPG as the output format.

Related Guides