Compress to an exact file size

Most compressors give you a quality slider and let you guess. Type the size you need instead — the tool searches for the setting that lands just under it, and tells you exactly what it did.

KB

Free to use — no sign-up needed. Create a free account for 50 tracked compressions a month, or go unlimited.

Common target sizes

Each of these explains where that particular limit comes from, and what an image realistically looks like at it.

How compressing to a target size works

Two levers, applied in the order that keeps the picture usable.

1

Quality first

The tool binary-searches the encoder's quality setting to find the highest quality that still fits under your target. That is the lever that costs you nothing in pixels.

2

Dimensions only if needed

If quality alone cannot reach the target — or can only reach it at a quality that would look broken — it reduces the pixel dimensions and searches again.

3

You see what it did

Final size, final dimensions and the quality used are all shown before you download, including when the target could not be reached.

Frequently asked questions

How is this different from a normal quality slider?
A slider makes you guess and re-check. This works backwards from the answer: you state the file size and it searches for the setting that lands under it, usually in a couple of seconds.
Why did it make my image smaller in pixels?
Because the target could not be reached otherwise without visible damage. A photo held at full size to hit 50KB comes out at around quality 6; resized first it reaches the same 50KB at quality 58. If you would rather keep the dimensions, tick the box above and it will.
Can it compress a PNG to a target size?
Not while staying PNG in any useful way — PNG is lossless and has no quality setting, so the only lever is dimensions. The tool converts to JPEG, or to WebP if your image has transparency, and tells you it has done so.
What if my target is impossible?
It returns the closest it could get and says so plainly, with the actual size it reached. It never silently hands back something over your limit.
Are my images uploaded anywhere?
No. Everything runs in your browser using your own device's image encoder.

More free tools