What compression does
A photo from a modern phone is often 3 to 6 MB. Most of that data is detail your eye cannot see on a screen: tiny color changes between neighboring pixels. Compression removes or simplifies that detail and stores what is left more efficiently. The photo looks almost the same, but the file can be many times smaller.
Lossy and lossless compression
Lossy compression, used by JPG and WebP, throws away some detail for good. The quality setting controls how much. At 70 to 80 the change is hard to notice in normal photos, while the file usually shrinks a lot. Below about 40 you may start to see blocky patches in smooth areas like sky or skin.
Lossless compression, used by PNG, keeps every pixel exactly as it was. It is the right choice for logos, screenshots and images with sharp text, but it cannot make ordinary photos very small.
JPG, PNG or WebP?
- JPG works everywhere and is the safe choice for photos and for any form that says “JPG/JPEG only”.
- PNG is best for logos, screenshots and images with a transparent background. A photo saved as PNG is usually far larger than it needs to be.
- WebP gives smaller files than JPG at the same quality and supports transparency. Use it for websites, but check that a form accepts it before uploading.
How to get a photo under 20 KB or 50 KB
File size depends on two things: quality and dimensions. A 4000 × 3000 px phone photo has 12 million pixels, which is too many to fit in 20 KB at any sensible quality. A passport photo only needs about 350 × 450 px, and at that size 20 KB is enough for a clear face.
Target size mode handles this for you. It tries the highest quality first, lowers it step by step, and reduces the dimensions only if quality alone is not enough. If your form also gives exact pixel dimensions, resize the photo to those first, then compress it.
Tips for sharp results
- Start from the original photo, not one that was already sent through a messaging app. Each round of compression loses more detail.
- Crop away empty background before compressing. Fewer pixels leave more room for the part that matters.
- Aim slightly under the limit, for example 45 KB for a 50 KB maximum, because some portals count sizes differently.
- For scanned documents, keep the text readable at 100% zoom. If letters blur, use a larger target size.