Skip to content

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 tool

Why 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

  1. Open the resizer on the home page, or a preset such as compress to 20 KB or compress to 50 KB.
  2. Tap the upload area and choose your photo from the gallery, or take a new one with the camera.
  3. Type the limit from your form into the Size limit box, or tap one of the quick buttons.
  4. Wait a second or two while FitKB encodes the photo several times and keeps the sharpest version under the limit.
  5. 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.

Typical long-edge size of a phone photo after compression
LimitTypical long edgeGood for
10 KB200 to 350 pxThumbnails, strict exam portals
20 KB300 to 500 pxApplication photos, signatures
50 KB500 to 800 pxID and profile photos
100 KB800 to 1200 pxForms that show the photo large
200 KB1200 to 1800 pxJob portals, email, listings
1 MB2500 px or moreDocuments 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.

Tools for this