🛡️ Safe🔒 Secure Reliable No uploads, no server, no data kept — everything stays on your device.
Image · Compress · Free

Compress an image to an exact KB size

Set a target — 20KB, 50KB, 100KB, or your own number — and the tool automatically finds the highest quality that still fits, for exam and job-portal photo uploads with strict size caps.

🗜️
Click to choose a photo, or drag it here
JPG or PNG
🛡️ Safe 🔒 Secure ✅ Reliable

Files are processed on your device — never uploaded, never stored, never seen by anyone.

How this hits an exact file size

Upload a photo, set your target size (or pick a common preset — 20KB, 50KB, and 100KB cover most exam and job-portal requirements), and click "Compress to target." Instead of you dragging a quality slider and guessing, the tool automatically re-compresses the image at many different quality levels until it finds the highest one that still lands at or under your target — so you get the best possible quality for that exact size limit, not whatever a rough guess produces. If quality reduction alone can't reach a very small target (common with a large original photo and a tiny target like 20KB), it also reduces the image's pixel dimensions and searches again.

This kind of tight size cap shows up constantly on Indian government and exam portals — SSC, UPSC, banking exam applications, and countless state recruitment sites specifically require a passport-style photo between 20KB and 50KB, well below what a modern phone camera produces by default (often several MB). These portals are built for extremely high applicant volumes, which is why the caps are so aggressive compared to a typical file-sharing limit.

How does this hit an exact file size automatically?
It runs an automatic search: the image is re-compressed at many different quality levels in your browser until it finds the highest quality setting that still lands at or under your target size, rather than you dragging a slider and guessing. If quality alone can't reach a very small target, it also reduces the image's pixel dimensions and tries again.
Why do exam and job portals require such small file sizes?
Government and exam portals (SSC, UPSC, banking exams, and many state recruitment sites) are built to handle very high applicant volumes, so they cap individual photo uploads aggressively — 20KB to 50KB is a common range specifically for passport-style photos, well below what a typical phone photo produces straight out of the camera.
Will a 20-50KB photo look too low quality?
For a small passport-style photo (roughly 200x200 to 400x400 pixels), 20-50KB is usually enough to stay clearly recognizable — these limits were set with exactly that kind of photo in mind. Quality loss becomes more visible if you start from a very large, high-resolution photo and compress it hard; if the result looks too soft, resize it smaller first at Resize Image, then compress.
Is my photo uploaded anywhere?
No — every compression attempt happens locally in your browser using the Canvas API. Your photo never leaves your device.