Compress Image to 20KB, 50KB or Any Size
Shrink a photo to any exact file size for exam, passport and form uploads.
- No login
- No signup
- No paywall
- Nothing leaves your browser
Original
—
—
Compressed
—
—
—
Your image never leaves your browser
Compression happens on your own device using your browser’s built-in image support. The file is not uploaded, so there is no server copy to be stored, logged or leaked, and no queue to wait in. Once this page has loaded you can go offline and the tool still works.
How to compress a photo to 20KB
- 1. Add your image. Drop it on the box above or tap to browse. On a phone you can pick straight from your camera roll.
- 2. Choose the exact limit. Pick one of the common sizes or type the number the form asks for. The result always lands just under it, never over.
- 3. Press Compress. Nothing happens until you do, so you can set the size and format first. Large photos take a moment, because the work runs on your own device rather than on a server.
- 4. Download. Check the preview looks acceptable, then save the file and upload it to the form. You can change the target and compress again as many times as you like.
How the size is hit
Image encoders do not accept a target file size. They accept a quality setting, and the resulting size is whatever it turns out to be. So the tool searches: it encodes the image repeatedly at different quality levels, narrowing in on the highest quality whose output still fits under your limit.
Quality alone is often not enough. A photo straight from a phone camera can be four megabytes, and even the lowest usable quality setting will not bring that under 20KB at full resolution. When that happens the image is reduced in dimensions and the search runs again, repeating until the target is reachable. Because file size falls with area rather than with width, shrinking to half the width cuts the data to roughly a quarter.
Dimensions are only reduced when they have to be. If your limit can be met by compression alone, the photo keeps its original width and height.
For the full workflow on an exam or passport application, including why cropping first matters more than any compression setting, seehow to compress a photo for an exam form.
Frequently asked questions
Why do exam and government forms ask for a 20KB photo?
Application portals often set tight upload limits so their servers can handle millions of submissions. Limits of 20KB, 50KB or 100KB are common for photographs and signatures on Indian exam forms, and the upload is simply rejected if the file is even slightly over. That is why hitting an exact size matters more here than general-purpose compression.
Will my photo still be usable at 20KB?
Usually yes, for a passport-style headshot. The tool reduces quality first and only reduces dimensions when the target cannot be reached otherwise, so it keeps as much detail as the size allows. A large landscape photo squeezed to 20KB will visibly soften, but a cropped face photo at typical form dimensions generally stays acceptable.
Is my photo uploaded to a server?
No. The image is read into your browser, resized and re-encoded on your own device, and the download comes from memory. Nothing is transmitted, which means nothing is stored, logged or retained. You can disconnect from the internet after the page loads and the tool still works.
What is the difference between resizing and compressing?
Resizing changes the pixel dimensions; compressing changes how much data is used to describe those pixels. Compression alone can shrink a file a long way before quality suffers noticeably. Only when a target is very small relative to the original does reducing dimensions become necessary, and this tool does that automatically and only as a last resort.
Which format should I choose?
JPG for photographs, which is what most forms require. PNG preserves sharp edges and transparency, which suits signatures and screenshots, but produces much larger files for photos and often cannot reach very small targets. WebP compresses best of all but is not accepted by many government portals, so check before using it.
Why is my result slightly under the target rather than exactly on it?
Image encoders only accept a quality setting, not a target size, so the tool searches for the highest quality that still fits under your limit. The result lands just below the target rather than exactly on it, which is what you want — a file marginally over the limit would be rejected.
Related tools
Passport Photo Resizer
NewCrop and resize a photo to the exact dimensions a passport, visa or exam form requires.
Percentage Calculator
NewWork out percentages, increases, decreases and what percent one number is of another.
Age Calculator
NewFind an exact age in years, months and days from a date of birth.
Date Difference Calculator
NewCount the days, weeks and months between two dates.
Time Zone Converter
NewConvert a time between any two time zones and find a slot that suits both.
EMI Calculator
NewWork out the monthly instalment on a home, car, personal or gold loan.