Zero-Server Storage  ·  100% Private Your files are processed entirely in your browser. Nothing is uploaded, stored, or seen by anyone — safe for confidential & GDPR/HIPAA-sensitive documents.

Compress Image to Target Size (KB/MB) Free

Compress an image to a specific target file size in KB or MB automatically. Finds the best quality setting that fits. Supports JPG, PNG, WebP. No upload, works offline. Free.

No Upload 100% Private Free

Drop your image here

JPG, PNG, or WebP supported

How Target-Size Compression Works

1

Set Target File Size

Enter your target file size in KB or MB — useful for email attachments, web uploads, or social media.

2

Algorithm Optimises Quality

A binary search algorithm tests quality levels to find the highest quality that fits within your target size.

3

Download Optimised Image

See exactly how much space was saved and download the optimised file instantly.

Frequently Asked Questions

How does it find the right quality?

It uses binary search — it tries different quality values, converging on the highest quality level whose output file size is at or below your target.

What if the image is already smaller than the target?

If your image is already smaller than the target size, it will be returned at maximum quality with no unnecessary compression applied.

Why use WebP instead of JPG?

WebP typically produces 25–35% smaller files than JPG at the same visual quality, making it easier to hit smaller file size targets.

Does this work offline?

Yes. The entire process uses the HTML5 Canvas API and runs locally in your browser — no internet connection or server needed.