How to Compress an Image to a Specific File Size (for Forms, Exams & Email)
Last updated: June 2026
You finished the application, hit upload, and got the dreaded error: "File too large. Photo must be under 100 KB." Meanwhile, the photo from your phone is 4 MB. If you are staring at a deadline right now, take a breath — this is a five-minute fix, and you can do it without installing anything or handing your ID photo to a random website.
Why these size limits exist
Government portals, exam boards, and job application systems store millions of files. A strict cap (under 100 KB for a photo, under 20 KB for a signature, a few MB per attachment) keeps their storage and bandwidth manageable, and keeps page uploads fast on slow connections. The trouble is that modern phone cameras produce huge files — a single photo can easily be 3–8 MB because it packs in tens of millions of pixels and rich detail. That is wildly more than a passport-sized thumbnail needs.
The two levers that shrink a file
There are exactly two things you can change to make an image smaller:
- Quality (compression). JPG saves space by discarding detail the eye barely notices. Lowering the quality setting makes the file smaller. Push too far and you get blocky smudges.
- Pixel dimensions (resizing). A 4000 × 3000 photo holds 12 million pixels. Shrinking it to 600 × 800 throws most of them away — and file size roughly tracks pixel count.
For modest targets, lowering quality alone is usually enough. But for very small targets — think a 20 KB signature or a 50 KB photo — quality reduction alone makes things ugly fast. The bigger win is resizing: cut the dimensions first, then a gentle compression gets you under the limit while still looking clean. A common mistake is keeping a full-resolution image and crushing the quality to 10%; resizing instead keeps it legible.
Step by step: hit an exact target
The fastest route is the Image Compressor in target size mode. Instead of guessing quality percentages, you type the maximum size and it automatically finds the highest quality that fits underneath.
- Open the Image Compressor and drop in your photo.
- Switch to target size mode and enter your limit in KB or MB (for example, 100 KB).
- If the portal also specifies dimensions, turn on the resize option and set the width/height it asks for.
- Check the preview, then download. The result will be at or under your target.
If you know your exact target, the dedicated preset pages save a step — they open pre-configured, like compress to 100 KB or compress to 20 KB.
Which format to choose
- JPG for photos and scans of photos. It compresses continuous tones efficiently and is accepted almost everywhere.
- PNG only if the portal explicitly requires it, or for crisp line art and signatures with transparency. PNG photos are much larger than JPG.
- WebP if the upload form says it accepts it — it can hit the same target at noticeably higher quality. Many older portals do not, so check first.
Three real examples
- Passport-style photo under 100 KB. Save as JPG, target 100 KB. If your camera shot is 4000 px wide, first resize to roughly 600 × 800 px (or whatever the form requires), then compress — it will land comfortably under 100 KB and still look sharp.
- Signature under 20 KB. A photographed signature is mostly white space, so resize it down to around 300 px wide and target 20 KB. If it still won't fit cleanly as JPG, a PNG of a small black-on-white signature can actually be smaller. Try the 20 KB preset.
- Document scan for an email cap. If you have several scanned pages and the email limit is, say, 5 MB total, compress each image first, then combine them into one file with the PDF Converter. One tidy PDF under the cap beats five oversized attachments.
A few practical tips
- Keep the original. Compress a copy, never your only version — you can always re-export at a different size, but you can't recover discarded detail.
- Don't over-compress something that must stay readable. If text in a scan blurs or a face goes muddy, ease off and reduce dimensions instead.
- Stuck on a tiny target? Resize first with the Image Resizer, then run it through the compressor. Smaller dimensions plus light compression almost always wins.
About your privacy
All of this runs entirely in your browser. Your photo, ID, or signature is processed on your own device and is never uploaded to any server — which matters a great deal when the file in question is a passport photo or a personal document.