Target the file size, not just the quality
Most image compressors hand you a quality slider and leave you guessing how big the result will be. When a form demands "under 100 KB," that means exporting, checking the size, nudging the slider, and trying again. This tool flips it around: you name the size, and it searches for the highest quality that fits — automatically dropping the resolution only if quality alone can't get there.
Private by design
The compression runs entirely in your browser with the Canvas API, so nothing is uploaded. That's faster (no round-trip) and safer for ID photos, documents and anything you'd rather not send to a server.
Common size limits
Visa and passport portals, job and government uploads, and many forums cap images at 20 KB, 50 KB, 100 KB, 200 KB or 1 MB. Use the presets above to jump straight to the limit you need.
JPG or WebP — which should you choose?
Both let you trade quality for size, which is what makes hitting an exact target possible. JPG is the safe default: every browser, form and printer accepts it, so pick it when an upload form just says "image" or "photo". WebP squeezes the same picture into roughly 25–35% less space at a similar quality, so it's the better pick when the destination is a website you control or any modern app — you'll get either a smaller file at the same quality or more quality inside the same budget. Neither preserves transparency the way PNG does, so a logo with a see-through background gets a white backing when exported as JPG.
How to keep quality high at a small size
When a target is tight, two levers control the result: the quality setting and the pixel dimensions. This tool lowers quality first and only shrinks dimensions if quality alone can't reach the target — that order keeps the most detail. A few habits help: crop out empty space before compressing (fewer pixels to spend your budget on), avoid re-compressing an already-compressed file repeatedly (each pass loses a little), and if a photo looks blocky at, say, 20 KB, accept a slightly larger size or smaller dimensions rather than pushing quality to the floor.
How the compression works
The tool loads your image, then repeatedly re-encodes it while searching for the highest quality whose output still fits under your target — a binary search rather than trial and error. If even the lowest quality is still too big, it scales the dimensions down and tries again, so you always get a file at or under your limit. Everything runs on your device through the browser's Canvas API, which is why it's instant and your image is never uploaded.