Forms and uploads
How to Reduce a Photo to 20 KB or 50 KB Without Making It Blurry
By the AllToolsDesk team · Updated
A photo straight from a phone camera is usually 2 to 5 MB. Government and exam portals often accept only 20, 50 or 100 KB, which is 50 to 200 times smaller. Getting there by lowering the quality slider in a photo app usually ends in a blocky, smeared face.
The trick is to remove what the form does not need before touching quality. This guide explains what makes a JPEG big and the order of steps that keeps a small file looking clean.
What makes a photo file big
Three things decide the size of a JPEG: the number of pixels, the amount of detail in those pixels, and the quality setting used when saving it. A 12-megapixel phone photo has about 4000 × 3000 pixels. A bank exam photo needs 200 × 230. That is roughly 260 times fewer pixels, and most of the size disappears in that step alone.
Detail matters next. A plain white wall compresses to almost nothing; leaves, patterned curtains or a crowded room behind you cost bytes that the form does not care about. Noise from low light behaves like detail too, which is why dim indoor photos are hard to shrink.
Quality comes last. JPEG quality between about 70 and 90 is hard to tell apart at small sizes. Below about 40, blocks and colour smudges appear, especially on skin.
The order that works
- Crop to what the form needs: head and shoulders for a photo, just the ink for a signature. Cropping throws away pixels without any loss of quality in what remains.
- Resize to the pixel size the form asks for, or to a sensible size if it gives none: 300–400 px wide for a passport-style photo, 1000–1200 px for a scanned document.
- Only then lower JPEG quality, step by step, until the file is under the limit.
- If the highest quality that fits is still very low, go back and make the image a little smaller instead.
Our Compress Image tool follows this order in Target size mode. It measures the real file after each attempt, keeps the highest quality that fits, and reduces dimensions only if quality alone cannot reach the target.
What each target size can hold
| Target | Good for | Typical size that still looks sharp |
|---|---|---|
| 10 KB | Signatures, tiny thumbnails | 200–300 px on the long side |
| 20 KB | Signatures, small ID photos | 250–350 px wide |
| 50 KB | Passport-size photos for most forms | 350–450 px wide at high quality |
| 100 KB | Scanned certificates, ID cards | 1000–1200 px wide |
| 200 KB | Mark sheets, full-page documents | Most phone photos at full width |
These are starting points, not rules. A photo against a busy background can need twice the bytes of the same face against a white wall.
Mistakes that make results worse
- Compressing an already compressed file again and again. Each pass adds new artefacts. Start from the original photo every time.
- Taking a screenshot of the photo to make it smaller. Screenshots are PNG files, often bigger than the JPEG, and they include phone borders.
- Saving as PNG for a size limit. PNG has no quality setting, so it cannot be squeezed to a target. Use JPG for photos.
- Ignoring transparency. A PNG logo or cut-out saved as JPG gets a solid background; our tool makes it white, which is what forms expect.
Is it safe to compress ID photos online?
Many compression sites upload your file to their server, process it there and send it back. For a photo used on identity documents, that is a copy you no longer control. The tools on AllToolsDesk run inside your browser: the photo is read and compressed on your own phone or computer, and nothing is sent to us. You can check this by switching to flight mode after the page loads; the tool keeps working.