Compress Image to a Target File Size

Type the maximum file size a form or portal accepts — 20KB, 100KB, 1MB — and get the highest-quality image that fits. The tool searches quality settings automatically and only shrinks dimensions when quality alone cannot reach the target. Everything runs on a canvas in your browser.

compress-image-to-size · runs locally
Drop an image here, click to browse, or paste from the clipboard. PNG, JPEG, WebP, GIF or SVG.

How to compress an image to 100KB (or any size)

Drop in a photo, scan or screenshot, pick a preset like 50 KB or 100 KB — or type the exact limit the form states — and press Compress. A few seconds later you get the best-looking JPEG that fits, along with the quality setting and dimensions the tool settled on. Download it and upload it wherever the size limit was blocking you.

Size limits show up everywhere: job applications, exam and visa portals, passport photo uploads, forum avatars, email attachments. Most of them only care about the byte count, so a generic compressor means guessing a quality setting, checking the size and trying again. This tool does that loop for you, and it searches from the top down, so you never get a smaller, worse-looking file than you needed.

When the image has to shrink

A 12-megapixel phone photo cannot become 20 KB at full resolution without turning to mush. Rather than drop quality below about 40, where blocky artifacts appear, the tool reduces the pixel dimensions until a decent quality fits. Most size-limited forms display images small anyway; a 600-pixel-wide photo at quality 75 looks far better than a 4000-pixel one at quality 10. If you need specific dimensions as well, set them first with the Image Resizer, then compress here with resizing switched off.

Size limits and DPI requirements

Some portals ask for both a maximum size and a minimum DPI. Compress here first, then set the DPI with the Image DPI Changer, which edits only the header and leaves the byte count virtually unchanged. For a deeper walk-through of the trade-offs, read how to compress an image to 100KB. Want manual control over quality instead? The Image Compressor has a live slider.

Frequently asked questions

How does it hit an exact file size?

JPEG and WebP file size depends on the quality setting, but not in a predictable straight line. The tool encodes the image repeatedly, halving the search range each time, and keeps the highest quality that still fits under your limit. If even quality 40 is too large, it scales the dimensions down in steps and searches again. The result is always at or under the target, usually within a few percent of it.

Is 1 KB 1000 bytes or 1024 bytes here?

1024 bytes, the convention Windows and most upload forms use. A 100 KB target therefore means at most 102,400 bytes. That is slightly stricter than the 1000-byte definition, so the file passes either way.

Why not compress to PNG?

PNG is lossless, so it has no quality dial to turn — the only ways to shrink it are reducing colors or dimensions. Photos and scans almost always land far smaller as JPEG. Use JPEG when a form asks for .jpg; choose WebP only when you know the destination accepts it, since many government and job portals do not.

Will my image be uploaded?

No. The image is decoded and re-encoded on a canvas in your browser tab and the result is created as a local download. Utilshut does not intentionally send image data to an application server, which is also why large photos compress without an upload wait.