Compress Image to an Exact Size

Set a target like 100KB and we'll compress your image down to it automatically. Add several images at once and download them together as a ZIP. Free, private — your files never leave your browser.

Drop images here or click to browse

JPG, PNG, WebP — add one or many, up to 20 MB each

Processed locally in your browser — no file leaves your device

How to compress an image to an exact file size

Add your image (or several), choose a target — for example 100 KB — using a preset or by typing your own number, then click "Compress to Target." The tool tries different quality levels until each image is at or just below your target, and shows the final size for every file. Download images individually, or grab them all in one ZIP.

Why a target size matters

Processing methodBrowser Canvas API
Upload requiredNo
Max tested file20 MB
Last tested4 July 2026

How the tool hits your target

JPEG and WebP support a quality setting from low to high. The tool re-encodes your image at different quality levels using a fast search, homing in on the highest quality that still fits your target. That keeps the image as sharp as possible while meeting the size limit. Very small targets on large images may not be reachable at full resolution — in that case, resize the image smaller first, then compress.

Your images stay on your device

This tool uses the HTML5 Canvas API to process images entirely in your browser. Nothing is uploaded to any server. You can verify this by disconnecting from the internet — it still works. Need a general quality-based squeeze instead of an exact size? Use the standard image compressor. For a full walkthrough, read how to compress images for the web.

Frequently Asked Questions

How do I compress an image to exactly 100KB? +
Upload your image, set the target to 100 and choose KB, then click Compress to Target. The tool adjusts quality automatically until the file is at or just under 100 KB, then you can download it.
Why can't my image reach a very small target? +
Large or highly detailed images have a minimum size even at the lowest quality. If a target is impossible at the current resolution, the tool compresses as far as it can and marks the file. Resizing the image smaller first will help you hit tiny targets.
Can I compress several images at once? +
Yes. Add multiple images and each one is compressed to your target. You can download them individually or all together as a ZIP.
Does the tool change my image dimensions? +
No. It keeps the original width and height and only adjusts compression quality. To change dimensions, use the image resizer first.
Are my images uploaded anywhere? +
No. Everything runs in your browser using the Canvas API. Your images never leave your device.