Compress Image to Size
Hit an exact file-size limit โ 100 KB, 200 KB, 2 MB โ automatically.
About this tool
Type the limit โ 100 KB, 500 KB, 2 MB โ and the tool finds the best-looking JPEG under it automatically: quality is binary-searched first, dimensions shrink only if quality alone can't get there, and it refuses to go below 200 pixels rather than hand you a thumbnail. Presets cover the limits forms actually use.
Why exact-size compression is its own problem
Ordinary compressors ask for a quality setting and tell you the size afterwards โ backwards, when a visa portal or job application says โmaximum 200 KBโ and means it. JPEG's size-vs-quality curve differs per image (a busy photo and a clean screenshot at quality 80 can differ fivefold), so no fixed setting hits a target; searching does. This tool encodes at quality 65, checks, halves the interval, and repeats โ seven rounds lands within a percent or two of the largest file under your cap, which is the right goal: the BEST image the limit allows, not merely a small one. When even minimum quality is too big, it scales dimensions down 20% at a time, announcing the compromise instead of hiding it. Output is JPG because that's what size-capped forms want; transparency flattens to white. The slider version for everyday shrinking is the image compressor; How to reduce image file size without wrecking it explains what actually makes image files big.
Frequently asked questions
How close to the limit will the file be?
Typically within a few percent under it โ the search maximises quality inside your cap, so a 200 KB limit yields a ~195 KB file, not a needlessly crushed 50 KB one.
What if the target is impossibly small?
The tool shrinks dimensions step by step, but stops at 200 pixels and says so โ you get the smallest honest version rather than a silent postage stamp.
Why is the output always JPG?
Size-capped upload forms overwhelmingly expect JPG, and it's the format whose quality dial makes exact targets reachable. Transparency flattens to white on the way.
Is the image uploaded to compress it?
No โ the search runs entirely in your browser: encode, measure, adjust, repeat. The file leaves your device only when you upload it to the form it was shrunk for.