How to Compress an Image to an Exact Size (20KB, 50KB, 100KB)
2026-11-24
Job portals, exam forms and visa sites often reject photos over a fixed size, usually somewhere between 20 KB and 200 KB. Phone photos are several megabytes, so they get bounced. The fix takes about ten seconds once you know what controls file size.
What decides how big an image file is
Three things: the number of pixels, the format, and the quality setting. A 4000 × 3000 photo has twelve million pixels to store. Cut it to 1000 × 750 and you've got sixteen times fewer. JPG and WebP throw away detail your eye won't miss, PNG keeps everything, so PNG photos are always heavy. And the quality slider in JPG and WebP trades a little detail for a lot of space.
The quick way
- Open the compressor for your limit: 20KB, 50KB, 100KB or 200KB.
- Drop your photo in.
- Download the result. The tool tries different quality levels and, if needed, shrinks the dimensions until the file fits just under the limit.
Getting a sharper result at small sizes
- Crop first. Empty background still costs bytes. Crop close to the face or the item.
- Use a plain background. A white wall compresses to almost nothing; a busy room eats your budget.
- Don't fight the pixel count. For a 30 KB passport photo, 600 px tall is plenty. Forcing a huge image into a tiny file makes it blurry.
- Stick with JPG for forms. Almost every site accepts it; not all accept WebP.
When the form also asks for exact dimensions
Some forms want both a size limit and exact pixels, for example 200 × 230 px. Resize to those pixels first with the image resizer, then compress. Small images like that usually land under the limit straight away.
Is it safe for ID photos?
Cartilo's tools run in your browser. The photo never leaves your device, which matters when it's a passport scan or an ID card.