Compress Image to Target Size
Compress JPG, PNG, and WebP images to custom target file sizes (KB or MB) online for free. Balance visual quality and file size directly in your browser.
Select or drop an image to compress
JPG, PNG, and WebP images up to 100 MB supported. Real-time target-size optimization.
Launch ToolHow to Compress an Image to a Specific Size
- Upload your image: Drag and drop any JPG, PNG, or WebP photo into the tool.
- Enter target size: Specify your exact required file size in KB or MB (e.g. 50 KB, 100 KB, 200 KB, 500 KB, 1 MB).
- Intelligent compression: Our algorithm optimizes binary search quantization and dimension scaling to meet your limit.
- Download image: Save your optimized image directly to your local device with no watermarks.
How Target-Size Compression Works
Unlike conventional compressors that rely on manual quality percentage sliders, our engine performs iterative binary-search quality optimization combined with intelligent dimension scaling. If quality reduction alone cannot satisfy an aggressive target, bicubic downsampling is applied smoothly.
Popular Target Sizes & Use Cases
200 KB is the standard cap for online government portals, job applications, and student admissions. 500 KB is ideal for email attachments and hero banners. 1 MB offers high-resolution photography suitable for portfolio displays while dramatically cutting upload times.
Frequently Asked Questions
Our algorithm intelligently optimizes visual quality to stay at or slightly below your requested 200 KB target (e.g., 195 KB or 198 KB) to guarantee compliance with upload limits.
Yes. JPG is ideal for target-size compression because our binary-search algorithm can fine-tune quantization quality in fine increments.
Yes. If your PNG has transparency, our tool can convert it to WebP to preserve alpha while achieving dramatic size reduction, or downscale lossless dimensions.
Yes. You can enter any custom target, such as 100 KB, 200 KB, 500 KB, or 1 MB, using the unit selector.
YourPDFDoc supports JPG, JPEG, PNG, and WebP input files up to 100 MB.