How to Compress an Image to a Specific Size (20 KB, 50 KB, 100 KB and More)
Need a photo under 50 KB or 200 KB for a form? Learn how image compression works and how to hit an exact target size without ruining quality.
Government portals, university applications, job sites and e-commerce dashboards all love to say the same thing: "Photo must be under 50 KB." Your phone camera produces files that are 50 times bigger. This guide explains how image compression works and shows how to land on an exact target size without wrecking the picture.
How image compression works
A digital photo is a grid of pixels, and each pixel needs data. Compression reduces the amount of data in two main ways.
Lossy compression (used by JPG and WebP) removes detail that your eyes are least sensitive to: tiny colour differences and very fine texture. You choose how aggressive it is with a quality setting. Lower quality means a smaller file and more visible artefacts, such as blockiness and blurred edges.
Lossless compression (used by PNG) finds repeating patterns and stores them more efficiently, without removing anything. It is safe for quality but gives much smaller savings on photographs.
File size depends on two things: how many pixels the picture has, and how hard those pixels are compressed. That is why the best way to reach a small size is to control both.
Target size or quality: which mode to use?
Filezaro's Compress Image tool offers two modes.
- Target size — you say "100 KB" and the tool works to get your file to that size. This is what you want for forms and uploads with a strict limit. Presets run from 20 KB up to 10 MB, and you can type your own value.
- Quality — you choose a quality level and accept whatever size results. This suits web publishing, where you want to find a good balance by eye.
Compress Image — free online tool
Reduce image file size to a target. No sign-up needed.
Step by step: compress an image to a target size
- Open the Compress Image tool.
- Add your JPG, PNG or WebP picture.
- Choose Target size, then select a preset such as 20, 50, 100, 200 or 500 KB, or enter a custom value in KB or MB.
- Press Compress.
- Download the result and check that it looks acceptable at the size you will actually use it.
If the picture looks too soft
Sometimes the target is simply too small for the picture. A 12-megapixel photo squeezed to 20 KB must throw away a huge amount of detail. Two fixes work well:
- Resize first. Reduce the dimensions with the Resize Image tool. A passport-style photo rarely needs more than a few hundred pixels on each side. A smaller picture reaches a small file size with far less quality loss.
- Aim a little higher. If the form says "under 100 KB", targeting 90 KB instead of 20 KB gives a much better picture.
Typical sizes for common uploads
| Use | Common limit | Suggestion |
|---|---|---|
| Passport or ID photo on a form | 20–100 KB | Resize to the required pixels, then compress |
| Profile photo | 100–500 KB | 300–500 KB target is plenty |
| Email attachment | 1–2 MB | 1 MB target keeps photos sharp |
| Blog or website image | 100–300 KB | Resize to display width, then compress |
Always check the exact requirement on the form you are filling in; limits and pixel sizes vary.
Which format compresses best?
For photographs, JPG and WebP compress far better than PNG. If you have a PNG photo and need a small file, converting it to JPG first usually helps more than anything else. Read our guide on converting PNG to JPG for details.
Real-world examples
A candidate fills in a recruitment form. The form asks for a passport-size photo under 50 KB and a signature under 20 KB. The candidate resizes the photo to the required pixels, compresses it with the 50 KB preset and compresses the signature with the 20 KB preset. Both upload on the first try.
A parent uploads school documents. The school website accepts only images below 200 KB. A phone photo of 3 MB is compressed with the 200 KB target. Because the document is text, the parent checks the result by zooming in to make sure the writing is still readable, and picks 300 KB if it is not.
A blogger prepares images for a post. Instead of choosing a size, the blogger switches to quality mode, tries a few levels and picks the lowest quality that still looks clean on screen. The page loads faster and the pictures look the same to readers.
Mistakes to avoid
- Chasing a tiny target on a huge picture. If the picture still has thousands of pixels on each side, a very small size forces heavy quality loss. Resize first.
- Compressing the same file repeatedly. Each pass of lossy compression adds artefacts. Always compress from the original.
- Using PNG for photos. PNG is poor at shrinking photographs. Convert photos to JPG before compressing.
- Not checking the result. Zoom in on faces, text and signatures before you upload.
- Forgetting the limit units. Some forms say KB, others MB. A 1 MB limit is about 1000 KB.
Free limits
- 3 uses per tool every 24 hours on the free plan, with or without an account (Pro is unlimited).
- Files up to 10 MB each on the free plan; Pro allows larger files.
Final thoughts
Hitting an exact file size is mostly about two levers: dimensions and compression strength. Use the target-size mode to do the work for you, resize first when the target is tiny, and always look at the result before you upload it. Compress your image now, or learn how to resize an image properly.
Frequently asked questions
How do I reduce an image to 50 KB?
Open the Compress Image tool, choose Target size, pick 50 KB and compress. If the result looks too soft, resize the picture to smaller dimensions first, then compress again.
Does compressing change the image dimensions?
No. Compression changes file size, not width and height. Use Resize Image if you also need smaller dimensions.
Why can't I reach a very small size like 20 KB?
A big, detailed photo needs a lot of data. Reduce its dimensions first so that a small file still holds enough detail.
Try Compress Image now
Reduce image file size to a target. Free, private and no sign-up needed.
Open Compress Image
