Make an image fit under an exact size

We don't ask you how much quality you want. Tell us the limit you have been given and we find the best image that fits inside it.

  • Free
  • No sign-up
  • Runs in your browser
image-under-kb
Common limits

100% private — your images are processed on your device and are never uploaded to any server.

Works with images up to about 40 MB. On an older phone, very large files may be slow or run the browser out of memory.

How it works

Set the limit

Type the maximum size you have been given, or tap one of the common ones.

Drop your images

One or several. They are not uploaded: everything happens on your device.

Download the result

We find the best quality that fits and tell you how much it came down.

When you are given a maximum size, not a quality setting

Ordinary compressors ask the question backwards: they hand you a quality slider from 1 to 100 and leave you guessing. But when a form tells you "the photo must not exceed 500 KB", quality is not what you care about — hitting that number on the first try is. This tool starts from the limit and works backwards.

How it finds the sweet spot

Internally it runs a binary search: it tries a middle quality, checks how large the result is, and moves up or down depending on whether it overshot. Seven attempts narrow it down to about 1%, so what you download is the best possible image that fits under your limit, not something crushed at random.

If even the lowest sensible quality will not fit — common with modern phone photos and a 100 KB limit — it then reduces the pixel dimensions by 15% and tries again. Losing pixels is usually far less visible than destroying the compression, and we always tell you when it was necessary.

Which format to pick

Automatic decides for you: JPG for photographs, which is what every government portal and upload form accepts; PNG if the original was one, so transparency survives. Where the destination allows it, WebP reaches the same look at noticeably less weight, and is the best choice when the limit is tight. AVIF squeezes even harder, but some programs still cannot open it.

A detail almost nobody gets right

If your image already fits, this tool leaves it alone. Re-compressing a JPG that was already small enough only damages it further: every pass stacks new losses on the previous ones. When that happens we say so and hand you back the untouched original.

Several images at once

Drop as many as you need and they are processed one after another, each with its own result. That is the normal case when preparing a batch of photos for a listing, a file or a gallery — and precisely what most free tools will not let you do without paying.

Frequently asked questions

Is my image uploaded to a server?
No. All the processing happens inside your browser, on your own device. The image is never sent over the internet, so no copy of it exists on any server.
Why does the pixel size sometimes change?
Only when there is no alternative. If the image still will not fit at a sensible minimum quality, reducing its dimensions is the only way. Whenever that happens, it is stated next to the result.
What is the difference between KB and MB?
One MB is 1,024 KB. If a form asks for "max 2 MB", that is 2,048 KB. Pick the unit in the dropdown so you don't have to do the maths.
Can I use this for an official application?
For the size limit, yes: it gets the file under whatever maximum you are given. Bear in mind many applications also require specific dimensions and a particular background, which are separate requirements from file size.
Why won't it go below a certain size?
Because below that quality the image would be unusable. We would rather warn you and hand you the best achievable version than give you something unrecognizable. Try WebP, or raise the limit slightly.
Is there a limit on how many images I can process?
We don't impose one. The real limit is your device's memory: on a computer you can run large batches comfortably, while on a phone it is better to work in smaller groups.
Does it work without an internet connection?
Yes. Once you have visited the page it is stored, and you can use it again offline, because the work is done by your own browser.