Compress Image to Target Size

Automatically find the highest quality that fits your target file size. 100% local processing.

Need to compress an image to a specific size in KB or MB? Set your target and this tool automatically finds the highest quality that fits — 100% locally, no upload. New to image optimization? Learn how to compress images without losing quality , or start with the complete WebP guide .

Drop image here or click to upload

JPEG, PNG, WebP, GIF, BMP, HEIC · Ctrl+V

How does it work?

This tool uses a binary search algorithm to find the highest quality setting that produces a file smaller than your target size. It tries different quality levels between 1 and 100 until it finds the optimal balance.

All processing happens locally in your browser using WebAssembly. Your images are never uploaded to any server.

WebP format typically achieves the best compression ratios. For photos, WebP at quality 70-80 is usually 50-70% smaller than the original JPEG. For graphics with transparency, PNG output is recommended.