Reduce Image to Exact KB

Need a photo under 500KB for a form? 200KB for an email? Type the number, done.

No uploadNever over your limitKeeps the photo readableJPG output

How to reduce an image to a specific KB size

1

Drop your image

Drag in any JPG or PNG. The file loads locally — nothing is sent to a server.

2

Enter target size in KB

Type the number you need — 100, 200, 500, whatever the form or upload limit requires.

3

Hit Reduce

The tool uses binary search to find the right quality setting that hits your target size.

4

Download

Check the file size matches, then save it.

Why you need a target KB tool, not just a quality slider

Most image compressors give you a quality slider and let you figure out the rest. That works fine when you just want the file to be smaller. But when you have a hard limit — a government form that rejects uploads over 200KB, an email system with a 500KB attachment cap, a job application portal that will not accept anything larger — guessing at quality settings is frustrating.

This tool takes a different approach. You tell it the target size in KB, and it runs a binary search through quality settings until it finds one that gets the file under your limit. Compress, check size, compress more or less, check again. It does all of that automatically.

The result is not always pixel-perfect to your exact number — compression does not work that way — but it gets you within a few percent of the target, which is usually close enough.

How the search finds your number

JPEG quality is a dial with no fixed relationship to file size. The same quality setting gives a small file for a plain background and a large one for a detailed photo, because the size depends on what is in the picture. That is why a target has to be searched for rather than calculated.

This tool runs the search in three stages, and stops at the first one that works.

  • First it tries quality 95 at full size. If that is already under your limit, you are done and the photo keeps its best quality.
  • Otherwise it runs a binary search between quality 50 and 95, halving the range each step, to find the largest file that stays at or under your limit.
  • If even quality 50 is too big, it scales the photo down step by step, keeping the proportions, and searches again at each size. Scaling down is gentler on a photo than dropping quality further, which is what makes images look blocky.

Only when all of that fails does it allow quality below 50. In practice the first two stages handle most photos and the third handles large phone pictures aimed at small limits such as 20 or 50 KB.

KB can mean two different numbers

There are two definitions of a kilobyte in everyday use. Windows File Explorer counts 1024 bytes per KB. macOS Finder and most storage makers count 1000. A form that asks for a file under 50 KB may be checking 51,200 bytes or 50,000 bytes, and nothing on the form tells you which.

You typeStrict limitGenerous limitThis tool stays under
20 KB20,000 bytes20,480 bytes20,000 bytes
50 KB50,000 bytes51,200 bytes50,000 bytes
100 KB100,000 bytes102,400 bytes100,000 bytes
200 KB200,000 bytes204,800 bytes200,000 bytes

Aiming at the strict number means the file passes either way. The exact byte count is shown with every result, so you can check it against a form that states its limit in bytes.

When a form still rejects the file

File size is only one of the checks an upload form makes. If the size is right and the upload still fails, one of these is usually the cause.

  • Pixel dimensions. Many forms ask for a specific width and height as well as a size limit. Resize to those dimensions first, then reduce to the KB limit, in that order.
  • A minimum size. Some forms set a range, such as between 20 and 50 KB. If your result is below the minimum, start again from a larger or less compressed original.
  • The file extension. A few validators accept .jpg but not .jpeg, or the other way round. Renaming the extension is safe because both are the same format.
  • Format. This tool always produces JPG, which is what almost every photo upload form expects.

Also useful

Compress Image →Convert Image →Resize Image →
From our researchMake a Photo an Exact KB Size for Upload FormsOfficial limits for UK, US, Canada and India forms, and 48 test reductions that never went over.

FAQ

How accurate is the size reduction?+
Usually within 5-10% of your target. The binary search approach gets close but image compression is not perfectly linear, so there can be a small gap.
What is the minimum size I can hit?+
It depends on the image content. Very compressed images hit a floor where further quality reduction produces almost no size benefit.
What formats does it output?+
JPG output. Lossy compression is what makes the binary search approach work.
Can I go below 50KB?+
Sometimes, depending on the image. A small or simple image can often go below 50KB.
Will it change the size of my photo in pixels?+
Only if it has to. It first tries to reach your limit by adjusting quality alone. If quality 50 still produces a file that is too big, it scales the image down step by step, keeping the proportions, and shows you the new dimensions.
Can the result ever be bigger than my limit?+
No. The search only accepts files at or under the number you type, counted as 1000 bytes per KB, so it passes forms that count 1000 or 1024.
Why is my file smaller than the number I typed?+
The tool looks for the largest file that stays under your limit. If even the highest quality setting it tries is already under the limit, it stops there rather than padding the file.
My form says the photo is too small. What now?+
Some forms set a minimum as well as a maximum. Start again from a larger or less compressed original, and set your target close to the top of the allowed range.
What happens to transparent areas in a PNG?+
JPEG has no transparency, so transparent areas are filled with white before the file is saved.