Compress an Image to an Exact KB Size
Pick the size your form or upload asks for — 20 KB, 50 KB, 100 KB or a custom number — and the image is compressed in your browser until it fits.
- Free, unlimited
- 100% on-device
- No sign-up
Compress an Image to an Exact KB Size
Drop your image here
Or choose a file from your device
JPG, PNG, WebP, AVIF or HEIC · up to 20 images · max 40 MB each
On a phone? Tap “Choose image” to pick from your gallery.
No image added yet.
Three steps — nothing to install
Add your image
Drop a JPG, PNG, WebP or AVIF file, or pick one from your device. Up to 20 images at a time, 40 MB each.
Choose the target size
Most forms ask for 20–50 KB, 100 KB or 200 KB. Pick a preset, or type the exact number the portal requires.
Compress and download
Press Compress. If quality alone is not enough, the pixel size is reduced too, and the final KB is shown before you download.
Why an exact KB size matters
Most upload forms check the file size before they check anything else. A photo that is 180 KB is rejected by a portal that wants 20–50 KB, even when the picture itself is perfectly fine. The error is usually vague — “invalid file size”, “upload failed”, “file too large” — and the applicant is left guessing.
Typical limits you will meet: government exam forms at 20–50 KB for a photo and 10–20 KB for a signature, passport and visa portals at 100–240 KB, job boards around 200 KB, and university portals anywhere between 50 KB and 1 MB. That is why this tool takes a number instead of a quality slider.
How the compressor hits the number
The image is decoded at full resolution, then re-encoded as JPEG while the encoder quality is searched between 0.35 and 0.95 until the result sits just under your target. Most photos reach 100 KB without any visible change.
If even the lowest sensible quality is too large, the tool reduces the pixel dimensions in small steps and tries again — a 4000 px phone photo compressed to 20 KB needs fewer pixels, not just more compression. It never enlarges an image, and it never writes a file larger than the target you asked for.
Because the output is a fresh JPEG, EXIF metadata is dropped along the way. That includes GPS coordinates, which is usually what you want before sending a photo to a stranger.
Does compressing to 100 KB ruin the photo?
For a normal photograph at 800–1600 px, 100 KB is comfortable: the difference is hard to see at 100% zoom and invisible in a form thumbnail. At 20–50 KB you will notice softness in fine detail, which is the trade every portal forces on you.
Screenshots and images with text suffer more than photos, because JPEG blurs sharp edges. If your portal accepts PNG, use a larger target instead of forcing a screenshot into 20 KB. If it only accepts JPEG, crop to the part that matters first — fewer pixels compress better than the same picture squeezed harder.
What happens to your file
Nothing leaves this tab. The file is read with the browser's own file API, decoded in memory and encoded again on a canvas. There is no upload endpoint on this site, no temporary server copy and no account.
When you clear the list or close the tab, the decoded image data is released by the browser. The page even keeps working if you lose your connection after it has loaded.