Skip to content
Image Compressor

How to compress image to 100KB, 50KB or 20KB

Job portals, exam registrations and visa forms often ask you to compress image to 100KB or less before they accept an upload. Some go down to 50 KB or even 20 KB for a photo or a signature. This guide explains how to hit those limits while keeping the picture clear enough to be accepted.

Read the requirements first

Upload forms rarely limit only the file size. Before you compress anything, read the instructions next to the upload button and note every rule, because a photo that meets one and breaks another is still rejected.

  • Maximum file size, such as 100 KB, 50 KB or 20 KB.
  • Minimum file size: some portals reject files that are too small, for example under 10 KB, because they suspect a blank or broken image.
  • Dimensions in pixels, such as a square photo or a fixed width and height.
  • File format, very often JPG or JPEG only.
  • Content rules for ID-style photos: plain background, face size, recent picture.

If the portal gives exact pixel dimensions, crop and resize to those first. Hitting the size limit is much easier once the dimensions are right.

KB, kB and KiB: which one the form means

A kilobyte is either 1,000 bytes or 1,024 bytes, depending on who is counting. Windows shows file sizes in units of 1,024 bytes, while macOS uses 1,000. A form that says 100 KB might mean either 100,000 or 102,400 bytes.

The difference only matters when a file lands right at the edge. The compressor on this site counts one KB as 1,000 bytes, so a result under 100 KB is also under 100 KiB and passes either way.

Pick sensible dimensions

File size depends mostly on the number of pixels. A full-size phone photo has 12 million or more, and squeezing all of them into 100 KB means very heavy compression and an ugly result. Scaling the picture down first lets each remaining pixel keep more detail.

As a rough starting point for a typical photo saved as JPG, aim for these long sides. A busy scene needs fewer pixels than a portrait against a plain wall.

  • Under 200 KB: about 1,600 pixels.
  • Under 100 KB: about 1,000 to 1,200 pixels.
  • Under 50 KB: about 700 to 900 pixels.
  • Under 20 KB: about 400 to 600 pixels, which is still plenty for a passport-style photo.
  • Signatures: crop tightly around the ink. A signature on white paper usually fits easily under 20 KB.

Step by step with a target size

Guessing a quality, saving, checking the size and trying again is tedious. A target-size mode does the searching for you. Here is how it works with the compressor on this site, which runs in your browser, so ID photos and documents are never uploaded anywhere.

  1. Crop the photo to what the form asks for, using your phone’s editor or any photo app. Cropping away background reduces the size on its own.
  2. Open the compressor and switch Compress by to Target size.
  3. Pick 100, 50 or 20 KB from the common sizes, or type the exact limit, for example 30.
  4. Set the output format to JPG if the form accepts only JPG or JPEG.
  5. Add the image. The tool tries quality levels, keeps the highest one that fits and, if even the lowest quality is still too big, scales the image down until it fits.
  6. Open Compare to check that the face, text or signature is still clear, then download the file and upload it to the form.

If the portal also has a minimum size, set the target a little below the maximum, not far below it. A 100 KB limit with a 20 KB minimum is easily met at a target of 90 KB.

Which format to use

JPG is the safest choice for forms: every portal accepts it and it compresses photos very well. WebP and AVIF give smaller files at the same quality, but many older portals reject them, so only use them if the form lists them.

PNG is lossless, which means it cannot trade quality for size, so it cannot be squeezed to a fixed target. That is why a target-size mode works only with JPG, WebP and AVIF. If a form demands a PNG under a small limit, reduce the dimensions until it fits. Note that JPG has no transparency: transparent areas, for example around a cut-out signature, become white.

When the image will not get small enough

Very low limits combined with a large or noisy picture can be impossible to meet without the result looking poor. A few things help a lot.

  • Crop harder. Empty space around a face or a signature still costs bytes.
  • Use a plain, even background. Patterned walls and leaves are full of detail that eats into the budget.
  • Shoot in good light. Photos taken in dim rooms contain grainy noise, which compresses badly.
  • Scan documents instead of photographing them, so the paper comes out clean white rather than uneven grey.

If a tool reports that an image cannot be made that small, choose a slightly larger target or reduce the dimensions first, then try again.

Common mistakes

Renaming a file from .png or .heic to .jpg does not convert it: the portal may accept the name and then fail to read the content. Always export or convert to a real JPG.

Avoid compressing the same file again and again. Each round of lossy compression adds damage, so start from the original each time you try a new setting. Taking a screenshot of a photo to make it smaller also lowers quality and changes its dimensions in unpredictable ways.

Frequently asked questions

How do I compress an image to 100KB without losing quality?

Some loss is unavoidable, but at around 1,000 to 1,200 pixels on the long side a JPG under 100 KB usually looks clean on screen. Resize first, then let a target-size tool find the highest quality that fits.

How can I make a photo under 20 KB?

Crop tightly, scale the long side to about 400 to 600 pixels and save as JPG with a target of 20 KB. Passport-style photos with a plain background reach it easily.

Why does the portal say my file is too large when my computer shows 99 KB?

The portal may count 1,000 bytes per KB while your computer counts 1,024, or the reverse. Aim a few KB below the limit to be safe.

Can I do this on my phone?

Yes. Browser-based compressors work in Safari and Chrome on phones; pick the photo from your gallery, set the target size and save the result back to your device.

More guides