Basics
How to Compress a Photo to an Exact KB Size
By FitKB · Updated · 3 min read
Quick answer
Open the photo in a resizer that targets a file size, set the limit your form states, and let it lower the JPEG quality first and the dimensions only if needed. Check the exact byte count before uploading, because forms reject files that are even one byte too large.
Open the Compress Image to 20KB toolWhy file size and photo size are different things
A photo has two sizes. Its dimensions are the number of pixels across and down, for example 3000 × 4000. Its file size is how many bytes the saved file takes up, for example 4.2 MB. Upload forms usually limit the file size, and sometimes the dimensions as well.
The two are linked but not fixed. The same 3000 × 4000 photo can be saved as a 6 MB file or a 400 KB file depending on how strongly it is compressed. That is why you can usually meet a KB limit without shrinking the photo as much as you might expect.
The two levers: quality and dimensions
JPEG compression throws away detail the eye is least likely to notice. A quality setting controls how much is thrown away. Between quality 95 and quality 75 most photos lose half or more of their file size with very little visible change. Below about quality 50, blocky patterns start to appear around edges and in skies.
Reducing the dimensions removes pixels altogether. Halving the width and height leaves a quarter of the pixels, which usually cuts the file to roughly a quarter as well. It is the stronger lever, but it also removes real detail, so it should be the second step, not the first.
A good resizer tries quality first and only reduces dimensions when quality alone cannot reach the limit. That keeps the most detail for a given size.
Step by step with FitKB
- Open the resizer on the home page, or a preset such as compress to 20 KB or compress to 50 KB.
- Tap the upload area and choose your photo from the gallery, or take a new one with the camera.
- Type the limit from your form into the Size limit box, or tap one of the quick buttons.
- Wait a second or two while FitKB encodes the photo several times and keeps the sharpest version under the limit.
- Check the New size and Exact values under the preview, zoom in on faces or text, then tap Download.
Because everything runs in the browser, the photo is never uploaded to a server. That matters for ID photos, signatures and documents.
What size to expect for common limits
These are typical results for an ordinary phone photo with the dimensions left free. A plain background compresses much better than a busy scene, so passport-style photos come out sharper than these ranges suggest.
| Limit | Typical long edge | Good for |
|---|---|---|
| 10 KB | 200 to 350 px | Thumbnails, strict exam portals |
| 20 KB | 300 to 500 px | Application photos, signatures |
| 50 KB | 500 to 800 px | ID and profile photos |
| 100 KB | 800 to 1200 px | Forms that show the photo large |
| 200 KB | 1200 to 1800 px | Job portals, email, listings |
| 1 MB | 2500 px or more | Documents and general sharing |
Common mistakes
- Screenshotting the photo to make it smaller. Screenshots are usually PNG files, which are larger for photos, and they include phone status bars.
- Uploading a result that is exactly on the limit. Some forms count 1 KB as 1024 bytes and some as 1000. Staying at or under the limit × 1000 bytes passes both. See KB vs KiB.
- Shrinking the dimensions far more than necessary. Try the size limit alone first; only set fixed dimensions if the form asks for them.
- Converting to PNG because it sounds higher quality. For photos, PNG files are many times larger than JPEG. See JPG vs PNG vs WebP.
Questions people also ask
- Can I compress a photo to an exact number of KB, like exactly 20 KB?
- JPEG sizes move in small jumps, so landing on an exact byte count is not practical. What forms check is that the file is not over the limit. Aim for the highest quality at or just under the limit, which is what FitKB does.
- Does compressing a photo reduce its dimensions?
- Not necessarily. Lowering JPEG quality reduces the file size while keeping every pixel. Dimensions only need to shrink when the limit is very small compared with the photo.