Compress Image to Exact Size (KB / MB)

Files are not uploaded to server — local browser processing
Bulk processing up to 50 files (ZIP)
Select files

Free tool to compress an image to a specific file size (for example 50 KB, 200 KB or 1 MB) in JPEG, PNG, WebP and AVIF. Enter the size you need and the tool automatically picks the best quality and, if necessary, reduces the dimensions to fit the limit.

Everything runs 100% locally in your browser without uploading to external servers.

Frequently Asked Questions

Choose 'Target file size', enter the number and unit (KB or MB) or click a preset, upload your images and press compress. The result will be at or just below the size you asked for.
The output is guaranteed not to exceed the target and is usually within 5–10% of it. Exact byte-for-byte sizes are not possible with lossy formats, and an image already smaller than the target is left unchanged.
First the quality is lowered, and if that is not enough the image dimensions are reduced automatically until the file fits. PNG files that cannot fit as lossless PNG are saved as WebP.
JPEG/JPG, PNG, WebP and AVIF are supported. BMP files are saved as JPEG when a target size is used.
Yes, absolutely! All processing happens directly inside your web browser using Web APIs. Your files are never uploaded to any server.
You can select up to 50 images at once and download all optimized files in a single ZIP archive.