Compress Image to Size
Pick a target file size (in KB) and get your image compressed to fit under it, with no upload to any server.
Drag & drop an image, or click to browse
PNG, JPG, WEBP - up to 5MB
Target size
Frequently asked questions
How does this get my image under a specific KB size?
It re-encodes your image as a JPEG, testing quality levels in your browser until it finds the highest quality that still fits under your target size. If even the lowest quality is still too big, it also shrinks the image dimensions slightly and tries again.
Will the image look worse?
Compressing to a smaller file size always trades off some quality, that's unavoidable with any compressor. The tool aims for the best quality that still fits your target, not the smallest possible file.
Does this upload my photo anywhere?
No. The entire compression process runs in your browser using the Canvas API. Your image is never sent to a server.
Why does it convert to JPEG even if I uploaded a PNG?
JPEG compresses photographic images far more efficiently than PNG, which is what makes hitting a small target size like 50-200KB possible. If you need to keep transparency, this tool isn't the right fit since JPEG has no alpha channel.