Compress to Size
Compress image to specific file size (50KB, 100KB, 200KB, 500KB).
Compress to Target Size
About Compress to Size
Compress your image to a specific target file size — 50KB, 100KB, 200KB, 500KB, or 1MB. Uses a binary search algorithm to find the optimal quality setting that gets your image as close to the target size as possible.
Supported formats: JPG, JPEG, PNG, WebP
Key Features
- Target sizes: 50KB, 100KB, 200KB, 500KB, 1MB
- Binary search algorithm for optimal quality
- Keeps smaller of compressed vs original
How to use Compress to Size
- Click 'Select Image' and choose a single image.
- Select your target file size (50KB, 100KB, 200KB, 500KB, or 1MB).
- Click 'Compress to Target' and wait for the algorithm to find the best quality.
- Download the result.
Privacy & Security
All processing happens directly in your browser. Your data never leaves your device and is never uploaded to any server. We have no access to the files you process or the data you enter. This ensures complete privacy and security.
Frequently Asked Questions
What if my image can't reach the target size?
If the target is too small for the image, the tool will compress as much as possible and indicate that the target was not reached.
How does the algorithm work?
It uses binary search on quality values (0.1 to 1.0), compressing up to 10 times to find the optimal quality that gets closest to your target size.
Related Tools
Browse all Image Tools or explore our full collection of 78 free tools.