Compress to Size
Compress images to hit a specific file size target (like 100KB) perfectly — great for web portals.
Drag and drop images
or click to browse files
How it works
A compact workflow from input to download.
Upload Image
Select the image that needs to meet a strict file size requirement.
Set Target Size
Enter your maximum allowed file size in KB or MB (e.g., 100KB for a passport portal).
Auto-Compress
The tool automatically finds the perfect balance of quality and dimensions to hit your exact target size. Download the result.
Frequently asked questions
How does it hit the exact size?
Will the image become blurry?
What formats are supported?
Is this good for government/visa portals?
Is my photo uploaded?
Why Target Exact File Sizes?
Many online portals enforce strict, arbitrary file size limits for image uploads. Government websites for visa applications often restrict photos to exactly 240KB or 100KB. University admission portals, job application sites, and forum avatars have similar hard limits. Standard compressors are unpredictable—you might compress an image and find it's still 10KB over the limit, forcing you to guess and try again repeatedly.
Algorithmic Target Compression
Our target size compressor takes the guesswork out of this process. You input your desired maximum file size (e.g., 200KB), and our algorithm uses a binary search approach. It rapidly tests different compression levels in the background, analyzing the resulting byte size of each attempt, until it finds the exact highest-quality setting that perfectly hits your target limit without going over.
Related tools
Continue the workflow with adjacent tools.