Loading Compress Imgs...
Loading Compress Imgs...
Set any target file size in KB and compress your image to match it. 100% free, no uploads, works entirely in your browser.
Loading tool...
This tool compresses your image to a specific target file size — most commonly 20KB — directly in your browser. Unlike standard image compressors that only offer a quality percentage slider, this tool runs an intelligent binary search algorithm: it tries different quality levels automatically until the output file size is as close as possible to your target. The entire process runs on your device. No file is ever sent to a server.
You can set any target between 5KB and 5000KB. The tool gets within approximately 10% of your target — so for a 20KB target you will typically receive an output between 18KB and 22KB, which is accepted by virtually all government and institutional upload portals.
The 20KB limit is one of the most common restrictions on Indian government and institutional portals. Here are the most frequent use cases where you need to compress an image to 20KB or below:
Can I compress an image to exactly 20KB?
The tool gets as close as possible — typically within 10% of your target. Exact byte-perfect compression is not possible because JPEG encoding has inherent variability, but for virtually all form upload requirements the result will be accepted. A 20KB target typically yields a file between 18KB and 22KB.
Will the image quality be bad at 20KB?
It depends on the original image dimensions. A 200×200 signature scan compressed to 20KB looks fine. A 4000×3000 photo compressed to 20KB will show artifacts. For best results, use the Resize Image tool first to reduce dimensions to around 400×400 pixels, then compress to your target size.
What formats are supported?
JPG, PNG, and WebP inputs are supported. The output is always JPEG since JPEG compression is the most effective for hitting specific file size targets. If you need format conversion, use the JPG to PNG or WebP Converter tools.
Is my image uploaded to a server?
No. Everything runs inside your browser tab. Your image is never transmitted anywhere. You can disconnect from the internet after the page loads and the tool will still work.
Why is my output larger than 20KB?
If your image is already smaller than 20KB, it is returned as-is without any compression applied. If you set a very low target on a large high-resolution image, resize the dimensions first using the Resize Image tool then try again.
Need a higher size limit? Try the Compress to 50KB tool for photo uploads on government portals, or the Compress to 100KB tool for profile pictures and ID document uploads. Need to reduce dimensions first? Try Resize Image. For compression without a specific size target, use the Compress Image tool with the quality slider.