And an honest answer when your target is not achievable.
Name a target in KB and this finds the highest quality that fits under it. It also measures how much damage that did and tells you plainly when a target is not reachable at your current resolution, instead of handing you mush and calling it done.
Drop or click to upload
Drag & drop or paste from clipboard
JPG, PNG, WebP — 25MB max
Every tool that offers to compress an image to an exact size will produce a file at that size. Not all of them will tell you the picture is ruined. That is the difference this page is built around.
File size is not a dial you turn independently of everything else. It is the outcome of three things: how many pixels you have, how much detail is in them, and how hard you compress. Fix the first two and the third has a floor. Push past the floor and JPEG starts throwing away information you can see going: edges smear, flat areas break into blocks, and text develops a halo.
Most compressors report the quality setting they used, which tells you what they asked for rather than what happened. This page reports PSNR, measured by decoding the compressed result and comparing it pixel by pixel against your original. It is a real measurement of the difference between two images, in decibels, on a logarithmic scale.
| PSNR | What you would see |
|---|---|
| Above 40 dB | Effectively identical. You would not spot the difference side by side. |
| 35 to 40 dB | Very good. Differences exist but need a careful eye on fine detail. |
| 30 to 35 dB | Good. Slight softening in busy areas. Fine for most web use. |
| 25 to 30 dB | Visible. Blocking around edges and text, noticeable in flat gradients like sky. |
| Below 25 dB | Damaged. Obvious artifacts. This is where the tool stops agreeing with you. |
PSNR is not a perfect model of human vision, and it is worth saying so. It slightly over-punishes noise and under-punishes blur. What it is very good at is telling you the direction and rough scale of the damage, which is exactly what you need in order to decide whether a target is sensible.
If the target cannot be met at a decent quality, the answer is almost never "compress harder". It is fewer pixels. Halving both dimensions cuts the pixel count to a quarter, and that buys far more file size than turning the quality dial down ever will, at much lower visible cost.
This is why the tool offers to find the largest dimensions that hit your target while keeping quality in the good range, rather than just squeezing the resolution you started with. A sharp 640 by 360 image at 20KB looks better than a wrecked 1280 by 720 image at 20KB, every time.
If you only want the file smaller without a specific number in mind, the plain image compressor is the simpler tool. To change dimensions directly, use resize and convert.
Keep going without re-uploading — your image carries over to the next tool automatically.