Reduce an image to a specific file size
Compress a JPG, PNG or WEBP image until it fits the file size you choose (50 KB, 100 KB, 200 KB...), directly in your browser.
or click to select it
Shrink a JPG, PNG or WEBP image down to at most the file size you choose (say, 100 KB), directly in your browser, while keeping the best quality possible.
Automatically finds the highest compression quality that already fits your chosen size. If even the minimum quality isn't enough, it progressively lowers the image's resolution and tries again, always prioritizing keeping the best visual quality before trimming dimensions.
Use cases
- Meeting the size limit for a profile photo, ID scan or document required by a web form.
- Shrinking photos to save space before uploading them to a site with a strict cap.
- Preparing lightweight images for a website or online store without losing too much visual quality.
How it works
- 1
Upload your image
You'll see its original size as soon as it loads.
- 2
Choose the target size
Pick a preset (50 KB, 100 KB, 200 KB...) or type a custom one.
- 3
Download the result
Compare the size and dimensions before and after compressing.
Technical details
Uses a binary search over JPEG/WEBP encoding quality (up to 7 steps) to find the highest value that meets the size limit; if the file is still too big even at minimum quality, it lowers the resolution by 25% and repeats the search, up to 6 times. The output is always JPG or WEBP: being lossy formats, they have a quality dial to target an exact size, which lossless PNG doesn't offer.
Frequently asked questions
Does it always hit the exact size chosen?
It reaches a size at or under your target whenever that's possible at a reasonable quality. If the image's content makes that impossible without excessive degradation, the tool warns you and delivers the smallest result it could achieve.
Why is the output always JPG or WEBP, even if I upload a PNG?
PNG is a lossless format — it has no quality setting to progressively shrink the file. JPG and WEBP do, which is why they're the only output formats when the goal is an exact file size.