Compress Image to an Exact KB Size
Set 20 KB, 50 KB, 100 KB or 200 KB and get the highest quality that still fits. Runs entirely in your browser.
Compress an image to an exact KB size
Most Indian government, exam and job portals do not ask for "a smaller photo" — they ask for a photo under 20 KB, 50 KB, 100 KB or 200 KB, and often a minimum size as well. A normal compressor with a quality slider makes you guess: you drag the slider, download, check the size in your file manager, and repeat until the number happens to land in range. This tool works the other way round. You type the limit, and it searches for the highest quality that still fits inside it.
Everything happens in your browser using the Canvas API. Your photo is decoded in memory, re-encoded locally, and never sent to a server. That matters when the image is an Aadhaar scan, a marksheet or a passport photograph.
How the size search works
The tool uses a binary search over JPEG quality. It encodes the image at a middle quality, compares the byte size with your target, and then moves the search window up or down. Nine passes usually land within a few kilobytes of the limit. If even the lowest usable quality is still too large, the tool reduces the pixel dimensions by 15 percent and tries again, because a slightly smaller sharp image looks far better than a full-size mushy one.
For WebP the same search runs with the browser's WebP encoder, which typically produces a file 25 to 35 percent smaller than JPG at similar visual quality. PNG is lossless, so quality has no effect; the only lever is dimension, which is why PNG results are usually larger.
Choosing the right target for common Indian forms
| Use case | Typical limit | Recommended settings |
|---|---|---|
| Government exam photo | 20–50 KB | JPG, 200×230 px, quality auto |
| Signature upload | 10–20 KB | JPG, 140×60 px, white background |
| PAN card photo | 20–50 KB | JPG, 213×213 px |
| Passport / visa photo | 50–200 KB | JPG, 600×600 px or per-country size |
| Job application resume photo | 100 KB | JPG, 600 px wide |
| Website or blog image | 150–300 KB | WebP, 1200 px wide |
| Email attachment | 500 KB–1 MB | JPG, 1600 px wide |
When a form demands a minimum size
Some portals reject files that are too small, usually because their scanner expects a certain resolution. Switch to Increase file size. The tool re-saves the photo at maximum quality and then adds a standards-compliant JPEG comment block until the file reaches the minimum. The picture itself is not altered, so there is no quality loss and no visible change — only the container gets bigger.
Quality tips that actually matter
- Shrink dimensions before quality. Halving the width cuts the pixel count by four and usually looks better than dropping quality to 20 percent.
- Never go below 40 percent quality for text. Small print turns into grey mush. Reduce the size instead.
- Keep the aspect ratio. Stretched faces and squashed logos are the fastest way to get a form rejected.
- Check the result at 100 percent. A file that is 48 KB but unreadable is worse than a 55 KB file that passes a manual check.
- Keep the original. Compress a copy, not your only file, so you can re-export if the portal changes its limit.
Why the file sometimes cannot reach the target
A very detailed photo — foliage, fabric texture, a busy street — carries more information than a plain background, so it needs more bytes for the same quality. If the tool reports that it cannot reach 20 KB, the honest answer is that 20 KB is not enough for that image at a usable size. Crop to the face or the document area, lower the maximum dimension, or accept the smallest result the tool can produce.
Frequently asked questions
Is this image compressor really free and unlimited?
Yes. There is no signup, no daily limit and no watermark. The compression runs in your browser, so there is no server cost per file and nothing to meter.
Are my photos uploaded to a server?
No. The file is read with the browser File API and processed on a canvas in your own device's memory. Nothing leaves your computer or phone.
Can I compress to exactly 20 KB?
You can set 20 KB as the target and the tool will get as close as possible without going over. For a detailed photo it may stop slightly below 20 KB because it reduces quality in steps rather than overshooting.
Does compressing reduce image quality?
JPEG and WebP are lossy, so yes, some detail is discarded. The tool keeps quality as high as the size limit allows. PNG output is lossless but much larger.
Which format should I choose for a government form?
Almost every Indian portal asks for JPG. Use JPG unless the form explicitly says PNG, and keep the dimensions at the size the form specifies.
Can I increase a photo's file size instead?
Yes. Switch to Increase file size. The tool pads the JPEG with a valid comment block so the picture is unchanged but the file meets a minimum-size requirement.
Does it work on mobile?
Yes. The tool works in Chrome, Safari, Firefox and Edge on Android and iOS. On iPhone, save the result to Files or Photos from the share sheet.
Why your photo keeps getting rejected for being too big
Almost nobody opens a compressor because they want a smaller file. They open it because a form said no. The exam portal took the photo, then threw up “file size should not exceed 50 KB” after the whole form was filled. The bank's KYC page spun for a minute and gave up. That is the real reason this page exists.
Here is what actually happens inside a JPEG. The camera saves a big file with lots of fine detail. When you lower quality, the encoder throws away the detail your eye is worst at noticing — subtle colour shifts in flat areas, tiny variations in texture. At 80 percent quality almost nobody can tell the difference. At 40 percent you start seeing blocky patches around sharp edges, and text on a document turns fuzzy. The trick is to drop quality only as far as you must, and to shrink the pixel dimensions before you touch quality at all, because dimensions cost far more bytes than quality does.
A photo straight off a phone is often 3000 by 4000 pixels. A form that wants a 50 KB upload almost never needs more than 600 by 800. Halving the width and height cuts the pixel count to a quarter, and the file drops by roughly the same factor before any quality loss at all. That is why shrinking first and compressing second gives a cleaner result than dragging the quality slider to 15 percent on a giant image.
Fix it in this order
- Set the exact limit the form gave you (20, 50, 100 KB) instead of guessing with a quality slider.
- If the file must stay sharp, reduce width to 1000 px first, then compress.
- For documents and marksheets, keep the long edge at 1600 px or more — small text needs pixels.
- If a portal says the file is too small, use the increase option rather than padding it by hand.
- Never screenshot a photo to make it smaller; you lose detail and gain a moiré pattern.
What people search before landing here: photo ka size kaise kam kare 20 kb · image compressor to 50kb · how to compress image without losing quality · photo size kb mein kaise kam kare.