Compress to a target size
Set a kB budget and the tool finds the quality that fits. Drop an image to start.
Other compression tasks
Compress image to 100 KB
Need an image under a specific size - 100 KB, 50 KB, 200 KB? This opens the compressor in target-size mode: type your kB budget and it binary-searches the quality until each image fits. If a file physically can't reach the target, it tells you the closest it managed rather than pretending. Adjust the number to whatever limit you're working to. 100% in your browser - your images never leave your device.
Frequently Asked Questions
This page opens in Target kB mode with 100 already set. Drop your image and the tool binary-searches the encoder quality until the result fits under 100 KB, then shows you the final size. Change the number to 50, 200 or any budget you need.
The tool encodes at the lowest sensible quality and tells you the truth - for example "couldn't hit 50 kB - got 78 kB" - rather than faking success or destroying the image. To get under a stubborn target, switch to a smaller format like WebP or AVIF, or reduce the resolution with the resize option.
No, and that is deliberate. Target mode aims only at the file size; it never decides whether the image looks acceptable. You stay in control by watching the before/after preview and can nudge the quality yourself afterwards if you want.
No. Decoding, resizing, compression and ZIP packaging all run inside your browser using WebAssembly codecs. Your images never leave your device and nothing is sent to a server, so it works offline and is safe for private photos.
Yes. Drop multiple files, a folder or a ZIP. Each image keeps its own settings (a new one inherits whatever you last used); to apply the current settings to several at once, select them and use "Apply current settings". Download them individually or as one ZIP.
From the blog
How to Compress an Image to an Exact File Size
Need your photo under 100KB for an upload form? Learn how binary-search compression helps you hit exact file size limits without ruining your image.
Read →image-compressionHow to Compress Images for the Web Without Uploading Them
Learn how modern browser technology lets you compress images securely on your device, without sending private files to a cloud server.
Read →image-compressionWebP vs AVIF vs JPEG vs PNG: Which Format Gives the Smallest File Size?
Stop guessing which image format to use. We break down when to use WebP, AVIF, JPEG, or PNG for the best balance of quality and file size.
Read →