How to Compress an Image to 20KB, 50KB or 100KB (Without Losing Quality)
A step-by-step guide to shrinking photos, signatures and passport pictures to exact KB limits for online forms, with tips to keep them sharp.

Almost every online application has a strict rule about image size. University admissions ask for a photo "under 50 KB", job portals want a CV picture "below 100 KB", and government, bank and exam forms often need a signature "between 10 KB and 20 KB". Modern phone cameras, however, produce photos of 3–6 MB. This guide explains how to bring any image down to the exact size you need, quickly and without making it look blurry or blocky.
Why are phone photos so large?
A typical smartphone photo is 4000 × 3000 pixels, which is 12 million pixels. Each pixel stores color information, and even with JPG compression the file ends up several megabytes. An online form only displays your photo at around 300 × 400 pixels, so most of that data is wasted. Reducing file size therefore comes down to two levers:
- Dimensions – fewer pixels means a smaller file. This is by far the most effective lever.
- Compression quality – how aggressively the JPG encoder simplifies details. Moderate compression is invisible; extreme compression causes artifacts.
The fastest way: compress to an exact KB size
The easiest method is to let a tool find the right balance automatically.
Compress Image to KBCompress any photo to an exact size like 20KB, 50KB or 100KB.
- Open the Compress Image to KB tool and upload your photo (HEIC photos from iPhone work too).
- Type your target, for example
50, or tap a preset such as 20 KB, 50 KB or 100 KB. - The tool tries many quality levels and, if necessary, reduces the dimensions until the photo fits under your limit.
- Check the preview and download. The file name even includes the final size, so you can confirm it before uploading.
Because the processing happens in your browser, your personal photos and ID documents are never uploaded to a server, which matters for sensitive documents such as CNIC or passport scans.
Doing it manually for more control
If you want full control over the result, combine three tools:
1. Crop to the required ratio
Passport and ID photos usually need a specific shape, such as 35 × 45 mm (roughly 7:9) or a square. Cropping away empty background both meets the requirement and reduces file size.
Image CropperCrop images freely or to 1:1, 16:9, 4:3 and other aspect ratios.
2. Resize to sensible dimensions
For forms, 600 pixels on the longest side is plenty. For signatures, 300–400 pixels wide is usually enough. Use the resizer with the aspect ratio lock enabled so the image is not stretched.
Image ResizerResize images to exact pixels or percentage, keeping aspect ratio.
3. Compress the JPG
Finally, compress with a quality around 70–80%. At this setting the difference is almost impossible to see, but the size drops dramatically.
JPG Image CompressorCompress JPG/JPEG photos to smaller KB size without visible quality loss.
Recommended settings for common requirements
| Requirement | Suggested dimensions | JPG quality |
|---|---|---|
| Signature 10–20 KB | 300 × 120 px | 60–75% |
| Passport photo under 50 KB | 350 × 450 px | 70–80% |
| Profile / CV photo under 100 KB | 600 × 800 px | 75–85% |
| Document scan under 200 KB | 1200 px wide | 65–75% |
Tips to keep your photo sharp
- Start from the original photo, not a screenshot or a WhatsApp copy. Every re-compression loses quality.
- Use good light and a plain background. Clean images compress much better than noisy, dark ones, because noise is detail the encoder has to store.
- Prefer JPG over PNG for photos. PNG is lossless and usually several times larger for photographs. Convert with our PNG to JPG converter if needed.
- Do not go below 50% quality unless the form forces you to. Reduce dimensions first instead.
- Signatures on white paper: increase contrast before compressing so the ink stays crisp.
Frequently asked questions
Will the form accept a WEBP image? Many official forms only accept JPG or PNG, so choose JPG in the output format unless the site explicitly mentions WEBP.
Why does the form say my file is still too large? Some sites measure 1 KB as 1000 bytes rather than 1024. Aim a little below the limit, for example 48 KB for a 50 KB rule.
Is it safe to compress ID documents online? With GoToolz it is, because compression runs locally in your browser and nothing is uploaded.
With the right tool, getting any photo under 20, 50 or 100 KB takes less than a minute, and your image will still look clear and professional.
Enjoying GoToolz?All tools are free. If they saved you time, you can support the project with a coffee.Support on Ko-fi ☕