How to compress an image to a 20 KB, 50 KB, or 100 KB limit

Exam registration sites, visa portals and job-application forms often cap the photo you upload at a strict size, such as 20 KB, 50 KB or 100 KB. A phone photo is several megabytes, so it is rejected until you shrink it. Compression cannot land on an exact byte count, so the goal is a file at or below your size limit that still looks good.

Need it done now? Drop the photo in, pick the limit, download.

JPG, PNG or WebP in · JPEG or WebP out · in your browser, nothing uploaded

Open Resize Image to KB →

At a glance

InputJPG, PNG or WebP. Several files at once are fine.
OutputJPEG (the default, and the format most upload forms ask for) or WebP. Not PNG: it is lossless, so its size cannot be dialled down to a limit.
Size limitAny whole number of KB, with presets for 20, 50, 100 and 200 KB. The tool counts 1 KB as 1,024 bytes and shows the result size.
Pixel sizeKept if quality alone gets under the limit. Reduced in steps of 15% only when it cannot, and only while Shrink dimensions if needed is ticked.
Not coveredAn exact width and height as well as a KB limit. Use Prepare Image for Upload for that.

Step by step

  1. Open Resize Image to KB and drop in your photo, or click to choose it.
  2. Pick a limit: tap 20, 50, 100 or 200 KB, or type the number your form states.
  3. Leave Shrink dimensions if needed ticked unless the form also fixes the pixel size.
  4. Click Resize, check the size on the result card, and download.

The tool searches for the highest JPEG or WebP quality that still fits under the limit. If even the lowest quality is too big, it makes the image smaller and tries again, so tight limits remain reachable.

Worked example: a 783 KB photo to 50 KB and 20 KB

You can repeat this with our sample file: sample-photo.jpg, a synthetic landscape (no real person or place) of 783.0 KB at 2400 × 1600 pixels. Format JPEG, shrinking allowed:

LimitResultPixels
Before783.0 KB2400 × 1600
50 KB46.3 KB (47,452 bytes)2400 × 1600, unchanged
20 KB19.9 KB1734 × 1156, reduced to fit
20 KB, shrinking off27.0 KB, marked “over target”2400 × 1600

At 50 KB, lowering the quality was enough. At 20 KB the pixels had to go down too, and with shrinking switched off the tool tells you it could not reach the limit instead of handing you a file that would be rejected.

Resize Image to KB after resizing the sample photo with the 50 KB preset: the result card reads 783.0 KB to 46.3 KB, with a Download button.
The 50 KB run in Resize Image to KB. Screenshot of the real tool, 30 October 2026.

Measured in Chrome on macOS. Other browsers use different JPEG and WebP encoders, so their sizes differ slightly. The result is always checked against your limit before it is marked done.

Try it with the sample photo →

What controls image file size

If it doesn't work

What you seeWhyWhat to do
“over target” on the resultShrinking is off and the lowest quality is still too big.Tick Shrink dimensions if needed, or crop the photo first.
The form still says the file is too largeSome forms count 1 KB as 1,000 bytes; the tool counts 1,024.Enter a slightly lower number: 19 for a 20 KB limit, 48 for 50 KB, 97 for 100 KB. Or use Prepare Image for Upload, which lets you pick the convention.
The form rejects the pixel sizeThe tool reduced the dimensions to reach a small limit.Use Prepare Image for Upload, which keeps the pixel size you set.
A transparent logo gets a black backgroundJPEG has no transparency, so clear areas become black.Choose WebP if the form accepts it, or put the logo on a solid background first.
“Please choose JPG, PNG, or WebP images.”, or the card says “Failed”The file is not a JPG, PNG or WebP image this browser can read, often an iPhone HEIC photo.Convert it first with HEIC to JPG.
A 20 KB result looks softThe limit is very tight for a large, detailed photo.Crop to just the subject with the Image Cropper first.

A note on privacy

An ID, passport or signature photo is sensitive. Resize Image to KB reads and compresses it on your own device; the file is never uploaded to a server. The result drops the photo's camera metadata, because it is re-encoded from the pixels.

Open the Resize Image to KB tool →

Common questions

Why does an upload form reject my photo for being too large?

Government, exam, and job portals cap the file size — often 20 KB, 50 KB, or 100 KB — so their storage and bandwidth stay predictable. A photo straight from a phone camera is usually 2–8 MB, which is 40 to 150 times over a 50 KB cap, so it has to be compressed before it will upload.

What actually controls an image's file size?

Three things: the pixel dimensions (width × height), the compression quality, and the format. Lowering JPEG/WebP quality shrinks the file the most for the least visible change; reducing dimensions helps when quality alone is not enough; and JPEG or WebP are far smaller than PNG for photographs.

Will compressing to 50 KB ruin the quality?

For a normal passport-style or document photo at the dimensions a form expects, 50 KB is usually fine. Problems appear when you force a very small limit onto a large, detailed image — then the tool has to drop dimensions too, and the result looks softer. Crop to just what you need first for the best result.

Is it safe to compress an ID or passport photo online?

Only if the tool processes it in your browser. UsefulTab's image tools never upload your file — the compression happens on your own device, so a sensitive document photo is never sent to or stored on a server.