Compress Image to KB
Compress to an exact target file size (50 KB, 100 KB, …) with a bounded quality search. Honest reporting when a target isn't reachable.
Drop images here or click to browse
JPG, PNG, WebP · up to 25 MB each · max 20 files
Uses a bounded quality search with an iteration and time limit. If the target cannot be reached, the closest result is returned and noted below the file.
Your images are processed entirely in your browser. They are never uploaded to a server unless you explicitly save them to your cloud (available after sign-in).
How to use
- Add a JPG, PNG, or WebP image.
- Pick a target size — 50 KB, 100 KB, 200 KB, 500 KB, 1 MB — or enter a custom target in KB.
- Optionally allow PNG to WebP conversion if you are willing to lose transparency to reach the target.
- Click Compress to target. The tool runs a bounded quality search and tells you the result honestly.
- Download the result. If the target could not be reached, the closest result is returned and noted under the file.
When to use it
- Hitting a strict upload limit on a form, marketplace, or government portal.
- Preparing an avatar or badge that must be under a specific KB cap.
- Compressing an email attachment to fit a provider's size rule.
- Producing a thumbnail that meets a size budget for a CMS.
A bounded search, not a guess
The tool searches quality values in a bounded range with an iteration and time limit — never an infinite loop. It measures each candidate's real encoded size and stops at the best fit, so the reported size is the actual output size.
Not every target is reachable
A tiny, detailed photo cannot always be compressed to an aggressive KB target without unacceptable quality loss. When that happens the tool returns the closest result and says so plainly, instead of silently degrading the image.
FAQ
- What if the target size cannot be reached?
- The closest achievable result is returned and a note under the file explains that the target was not met, so you can decide whether to accept it or try a larger target.
- Why might PNG → WebP be offered?
- PNG is lossless and often large. If you allow it, converting to WebP can reach a KB target that PNG cannot, at the cost of transparency and some quality.
- Is there an iteration limit?
- Yes. The search has a maximum number of iterations and a time budget, so it always terminates.