Compress an image to an exact size

20 KB, 50 KB, 100 KB — or any number you type. A PNG stays a PNG and keeps its transparency. Nothing is uploaded.

Drop images here, or click to choose

Target
Priority

Tries both keeping and reducing the width and height, and uses whichever comes out sharper.

Made for the form that keeps rejecting your photo

Most compressors give you a quality slider and leave you to hunt for the number. That is the wrong shape for the job almost everyone actually has: a scholarship portal, a job application or a visa form that will accept 100 KB and not one byte more. This tool takes the limit as the input. You press 100 KB; it works out the rest and lands just underneath.

Your file never leaves the device

There is no upload step, no queue and no account — and that is not a policy that could quietly change, because the code simply never sends your picture anywhere. It is also why there is no size limit and no daily cap: there is no server bill to ration. Close the tab and nothing remains.

Each format stays itself

A PNG comes out a PNG with its transparency intact, a JPG comes out a JPG, a WebP comes out a WebP. This matters more than it sounds: a great many compressors quietly hand back a JPEG, and a logo that needed a transparent background comes back sitting in a white box. If a picture is already small enough, it is returned untouched rather than re-encoded into something slightly worse.

How it decides

At a comfortable budget every route looks the same. At a tight one they are very far apart, and which one wins depends on the picture. On a cartoon at 20 KB, holding the full resolution in WebP measured about ten decibels better than squeezing the same resolution as a JPEG — the difference between crisp and ruined. On a detailed photograph the ranking flips. So “Best quality” does not guess: it encodes the candidates, measures each against the original, and keeps the winner.

PNG takes a different route, because it is lossless and has no quality dial at all. There the levers are the number of colours and the dimensions, in that order — dropping a logo or a screenshot to 64 colours is usually invisible, while dropping its size never is.

Check it yourself before you download

The before-and-after view is not decoration. Drag the divider to reveal the original underneath, and zoom to 32× — both halves zoom and move together, so you are always comparing the same few pixels rather than two different parts of the picture. If the result is not good enough, change the target and look again; the preview updates as soon as you press a button.

Common questions

How do I compress an image to exactly 100 KB?

Drop the image in, press 100 KB, and the result appears straight away. The tool searches for the combination of resolution and quality that lands just under 100 KB, so the file always fits the limit — it will never come back at 104 KB.

Will my PNG stay a PNG?

Yes, and its transparency is kept. A JPG stays a JPG and a WebP stays a WebP. Converting to WebP is offered because it holds far more detail for the same number of bytes, but it is never done automatically — many forms accept nothing but .jpg.

Why does my image look blurry at 20 KB?

Because 20 KB is a very small budget, and something has to give: either the width and height, or the quality. On "Best quality" the tool encodes the candidates and measures each one, then keeps whichever is genuinely sharper. On a flat picture like a logo or a cartoon it will usually hold the full resolution; on a detailed photograph it will usually shrink instead.

Does changing the DPI make the image better?

No. DPI is a single number in the file header that tells a printer how large to print the picture. It does not change a single pixel and it does not change the file size — which is why there is no DPI box here. Quality comes from pixels and from the quality setting, nothing else.

Is there a file size limit, or a daily limit?

Neither. The compression runs on your own device, so there is no server to pay for and nothing to ration. There is no account and no upload step — the code never sends your picture anywhere.

More image tools are on the way — see what is coming.