How to resize an image to a specific KB size (for exam and visa forms)
Exam and visa portals demand photos under an exact size like 20, 50 or 100 KB. Here's how to hit that limit precisely, keeping the best possible quality, entirely in your browser with no upload.
If you've ever filled out an online exam registration, a visa application, or a government form, you've met the oddly specific rule: "Upload your photo, JPG, between 20 KB and 50 KB." Your phone camera produces a 4 MB file, the form rejects it, and you're stuck. Here's how to hit an exact KB target without installing anything or uploading your photo to a random website.
Why "resize" here really means "compress to a size"
These forms don't care about pixel dimensions so much as the file size in kilobytes. Two levers control that: the JPEG quality (how much detail is thrown away) and the dimensions(how many pixels there are). To land on, say, exactly under 50 KB, you tune quality first, and only shrink the dimensions if quality alone can't get you there. Doing that by hand, export, check size, adjust, repeat, is tedious and imprecise.
The fast way: target the KB directly
Resize Image to KB does the tuning for you. Drop in your photo, pick a target (20, 50, 100, 200 KB, or type your own), and it binary-searches the JPEG quality for the best-looking image that still fits under your limit, automatically downscaling only if it has to. You get a file that's comfortably under the cap at the highest quality that fits, ready to upload.
Crucially, it runs entirely in your browser. Your photo, often an ID or passport picture, is never uploaded to a server. You can verify that yourself: open your browser's Network tab while you use it and watch it stay empty.
Tips for photo-upload forms
- Use JPG unless told otherwise. Almost every exam and visa portal expects JPG. Only switch to WebP if the form explicitly accepts it (it's smaller for the same quality).
- Crop before you resize. If the form wants a head-and-shoulders photo, crop to that first, fewer pixels means the tool can keep more quality within your KB budget.
- Aim just under the max. If the rule is "20–50 KB", target ~48 KB, not 20 KB, so you keep as much quality as the rule allows.
- Watch the minimum too. Some forms reject files that are too small. If you have a floor, don't over-compress.
Need a PDF instead?
Some forms ask for a document under a size limit rather than a photo. If you need to shrink a PDF, the same browser-only approach applies, see how to compress a PDF to 100 KB, or turn photos into a PDF first with JPG to PDF. Whatever the form throws at you, you can hit its size limit without handing your documents to a stranger's server.
Read next
How to convert image to PDF on iPhone, Android, and laptop, no app needed
Every phone now has a built-in PDF export. Here's the fastest path on iPhone, Android, and on a laptop without installing anything, plus when to use a browser-only converter instead.
How to compress a PDF for WhatsApp, under the 100MB cap, fast
WhatsApp caps document attachments at 100MB. Most quotation PDFs, scanned bills, and student notes from camera apps blow past that easily. Here's how to get under the limit without losing readability, entirely in your browser.