eDocTools

Image Compressor to Exact KB

Pick your size limit, and get a clear JPG that fits. Works right in your browser.

Drag and drop your photo here

JPG, PNG or WebP. One image at a time.

Preview of your image
Target size (the file will be at or just under this)
KB

Allowed range: 5 to 5000 KB.

More options
Limit the longest side (optional)
pixels

Leave empty to keep as many pixels as the size limit allows.

Background for transparent images
Getting ready...

Your compressed photo is ready

Preview of the compressed image

Download JPG

How to Use Image Compressor in Exact KB (20KB, 50KB, 100KB)

Most exam and job portals say something like "photo must be between 20 KB and 50 KB". This is how you get there.

  1. Drop your photo into the dotted box, or tap Select Image. The page shows its current size in KB and its pixel size.
  2. Choose the limit your form asks for: 20, 50, 100 or 200 KB. Need a different number? Type it in the box.
  3. Press Compress Image. The tool tries many quality levels in the background and keeps the best one that still fits.
  4. Check the preview and the final size. If it looks fine, tap Download JPG.
  5. Upload the downloaded file to your form. If the portal complains, lower the target by 2 or 3 KB and try again.

The original photo is never changed. You can compress it again with a different size as many times as you like.

Why Use This Tool? Practical Uses and Key Features

The file size limit is the most common reason a form upload fails. These are the situations we hear about.

How it avoids blur: the tool first tries to keep quality high. If the photo is simply too big to fit, it shrinks the pixel size a little before lowering quality any further. A slightly smaller sharp picture usually looks better than a huge, heavily squeezed one. A few honest limits apply. The result is always a JPG, even if you add a PNG. It lands at or just under your target, not at an exact number. And a 20 KB limit on a big photo will always cost some detail. No tool can avoid that.

100% Browser-Based Privacy and Security

A passport photo and a signature are personal. They should not be sent to any server you do not know.

Here, your browser opens the image in memory, draws it onto a hidden canvas, and saves it again as a JPG at different quality levels until the size fits. All of this happens on your own phone or computer. There is no upload, no account, and no copy kept anywhere else.

This page does not load any outside library either. Only the code written in the page itself runs. You can test it by turning off your internet after the page opens. The tool keeps working.

When you close or refresh the tab, the image is cleared from memory. We do not log file names, sizes or what limit you picked.

Frequently Asked Questions

How can I compress an image to 20KB to 50KB online for an exam form?

Add your photo, tap the 20, 50 or 100 KB button (or type your own number), and press Compress. The tool finds the best quality that fits under your limit, and you download the JPG.

How do I reduce JPG size to exactly 50KB without blur?

The tool tries to keep quality high first. If the photo is too big to fit at decent quality, it reduces the pixel size a little before lowering quality further, which usually looks cleaner than heavy compression on a huge image.

Can I compress a photo under 100KB for an online form from my phone?

Yes. The page works in any modern mobile browser. Choose your photo from the gallery or camera, select 100 KB, compress, and save the result to your phone.

Is this exact KB photo compressor tool really exact?

It aims for the largest file that stays at or just under your limit, so you may get 48 KB for a 50 KB target rather than exactly 50.0. It does not add padding. If your portal counts 1 KB as 1000 bytes, choose a slightly lower target.

Why did the pixel size change when I shrank my JPEG image size in KB?

For very small targets such as 20 KB, a large photo cannot fit at acceptable quality, so the tool reduces its width and height a little. The final dimensions are shown after compression. If your form needs exact dimensions, resize the photo afterwards.

Related tools

Image Resizer · Signature Resizer