Image Tools

Compress Image to Target Size

Easily reduce JPG, PNG, and WebP images to exact target file sizes such as 20KB, 50KB, 100KB, 200KB, or custom limits for government forms, passports, and fast websites.


Drop your images here, or browse

Upload single or batch JPG, PNG, and WebP images. Set your maximum desired size in KB or MB and let our intelligent binary compression algorithm find the highest visual clarity.

100% Client-Side Privacy Binary Search Precision Batch ZIP Download
Total Images 0 Files
Original Total 0 KB
Compressed Total 0 KB
Total Saved 0%
Processed Image Files
How to Compress Images to Exact Target Sizes
1
Set Target Size & Presets

Type your desired target size in KB or MB, or select a quick preset like 20 KB (Gov forms), 50 KB (Passport), or 100 KB.

2
Upload JPG, PNG or WebP

Drag and drop your photos. Our smart binary search algorithm immediately begins iterating qualities to hit your target size with maximum visual clarity.

3
Preview & Download

Compare before and after with the hold-to-view button. Download single images or batch-export everything in a convenient ZIP archive.

Recommended Target Sizes for Common Use Cases

Popular official requirements and recommended file size limits across digital platforms.

Platform / Use Case Typical Target Limit Recommended Format Why Size Reduction Matters
Government Application Portals 20 KB – 50 KB JPEG (.jpg) Official job, exam, visa, and passport portals strictly reject uploads above 50 KB.
Email Attachments 200 KB – 500 KB JPEG or WebP Ensures rapid delivery and avoids corporate mailbox storage and attachment quotas.
Website Performance & SEO Under 100 KB WebP or JPEG Achieves top Google PageSpeed scores, fast Core Web Vitals, and lowest bounce rate.
Discord & Chat Apps (Free Tier) Under 8 MB / 10 MB JPEG / PNG / WebP Allows instant sharing on channels without hitting paywalls or upload blocks.
Target Size Tip: Very small targets need stronger compression and may reduce detail. Try a slightly higher KB limit if the preview looks too soft.
Frequently Asked Questions
The tool performs an iterative binary search on compression quality (testing successive candidates between 5% and 95% quality). Each attempt encodes a candidate Blob directly in the browser and measures actual byte size. If quality reduction alone cannot reach small targets like 20KB, it safely scales down image dimensions while maintaining exact aspect ratio.
If your uploaded image is already below the target size (e.g., you uploaded a 40KB image with a 100KB target), the tool preserves your original file without degrading its visual quality or re-compressing unnecessarily.
Yes! JPEG format does not support transparency, so our tool provides a background color selector (defaults to clean solid white, with black and light grey options) to composite transparent edges smoothly without dark artifacts.
Yes. You can select multiple images at once. The same target size criteria will be evaluated independently on every file. Once processing finishes, click "Download All (ZIP)" to receive an archive containing all optimized photos.
Never. All canvas rendering, quality testing, dimension reduction, and ZIP packaging are performed locally on your device using client-side JavaScript APIs. Your private images never leave your computer or phone.
Copied to clipboard!