Image Tools
Compress Image to Size
Compress an image to a specific target file size. Uses an intelligent binary search algorithm to hit your target within a few KB.
Processed in your browser — files are not uploaded
Drop your file here
or click to browse from your device
JPG, PNG, WebP, GIFProcessed in your browser
How to use Compress Image to Size
1
Upload your image
Drag and drop or click to select an image file.
2
Choose a target size
Select a preset like 50KB or 100KB, or enter a custom size.
3
Compress and download
The tool uses a binary search algorithm to hit your target size.
Processed in your browser
This tool runs entirely in your browser using JavaScript. Files you select are not uploaded to any server. Processing happens locally on your device.
Frequently Asked Questions
How accurate is it?
The binary search algorithm gets within a few KB of your target in most cases. Very small targets on large images may not be achievable.
Why can't I hit a very small size?
JPEG compression has limits. If the target is smaller than what is achievable at the lowest quality, the tool returns the smallest possible result.