Resize an image to an exact size in KB

Resize an image to an exact KB size and exact pixel dimensions at once, the way visa and exam portals demand. Measured in your browser and never uploaded.

๐Ÿ”’ Runs in your browser

The problem is that there are two rules, not one

Almost every government photo upload enforces an exact pixel size and a byte limit at the same time. Singapore wants 400 x 514. Kenya's eTA refuses anything over about 293 KB. Australia demands at least 70 KB. Pakistan allows 5 MB for the photo but only 1 MB for your documents.

Free tools do one or the other. Resizers hit the dimensions and leave you a 4 MB file. "Compress to 100 KB" tools hit the bytes and hand back the wrong dimensions. You end up bouncing between two websites, uploading a photograph of your own face to both, and still getting rejected.

Doing both at once is the entire point of this tool, because the portal checks both and refuses on either.

How to resize an image to a specific KB size

  1. Add the photo. It is read on your device โ€” nothing is uploaded.
  2. Type the KB target, for example 200 KB. Add the pixel dimensions too if the form demands them.
  3. The image is encoded and weighed repeatedly until it lands inside your target.
  4. Download. The size shown is the size of the file you receive.

If the form gives a range โ€” say 20 KB to 50 KB โ€” put in the upper figure. A minimum is treated as a real target too, which most tools ignore entirely.

KB and pixels are two different requirements

Worth being precise, because mixing them up is why uploads fail twice in a row.

  • Pixels are how big the picture is โ€” 600 ร— 800, say. This is what photo-validation software measures.
  • KB is how much disk the file takes. A 600 ร— 800 photo can be 40 KB or 4 MB depending on how hard it was compressed.

They are unrelated. Hitting 600 ร— 800 tells you nothing about the kilobytes, and squeezing a file to 50 KB tells you nothing about its dimensions. Most portals enforce both and reject on either, which is the whole reason this tool does the two together instead of making you visit two websites.

Measured, not estimated

JPEG quality has no reliable relationship to file size. It depends on what is actually in the image โ€” a busy background and a plain one, at identical quality settings, can differ by several times.

So nothing here is predicted. The image is encoded repeatedly at your exact pixel size, and each result is weighed, narrowing in until it lands inside your target. The number you see is the number that downloads.

It will not stretch your face

If your photo is 4:3 and the portal wants 400 x 514, something has to give.

Stretching would satisfy the pixel check and fail the one that matters. A distorted face is a rejected passport photo, and the rejection will not explain itself.

So the image is centre-cropped to the correct proportions first, then scaled. You are told when that has happened, because cropping moves the framing and you should look at the result before submitting โ€” head position and headroom are exactly what photo-validation software measures.

Minimums exist, and most advice ignores them

Search for help with a visa photo and you will be told to compress it as hard as possible.

On Australia's ImmiAccount that advice fails outright. Home Affairs sets a 70 KB minimum, and a photo squeezed down to 40 KB is rejected for being too small. The same trap appears on exam portals that specify a range rather than a ceiling.

This tool treats a minimum as a real target: it raises quality to reach one, and when the source image genuinely does not carry enough detail, it says so instead of quietly handing back something that will fail.

If you need an exact number, this is the wrong tool

Worth saying plainly rather than wasting your time.

If a form demands "under 100 KB" or "between 20 KB and 50 KB", a quality slider is the slow way to get there โ€” you drag, check, drag again, and still land near the number rather than on it.

[Resize an image to an exact size in KB](/resize-image-to-exact-size) does that directly: type the number, and the image is encoded and weighed repeatedly until the real file lands inside your target. It hits pixel dimensions at the same time, which is what government and exam portals check alongside the byte limit.

Use this page when the question is "how small can this get before it looks bad?" โ€” and that one when the question is "it must be under 100 KB."

What this does not do

  • It cannot tell you whether the photo meets the composition rules. Head height, expression, background colour, glasses, headwear โ€” those are judged by the portal, and no resizer can check them.
  • It cannot rescue a low-resolution original. Enlarging a small photo to meet a pixel requirement produces a soft image that a validator may reject. Start from the largest version you have.
  • It will not invent detail to reach a minimum. If the image is too simple to reach the floor, you need a better source, and the tool will tell you so.

This tool runs entirely inside your browser. Your file is never uploaded โ€” it never leaves your device, so there is nothing for us or anyone else to read, store or leak.

Common questions

How do I resize an image to a specific KB size?

Type the KB target and let the tool encode the image repeatedly until the real output lands inside it. That matters because JPEG quality has no fixed relationship to file size - the same quality setting produces wildly different sizes depending on what is in the picture, so anything that predicts the size rather than measuring it will miss. If your form also specifies pixel dimensions, set those at the same time; the two requirements are checked separately and a file that satisfies only one is still rejected.

What is the difference between resizing in KB and resizing in pixels?

Pixels are how large the picture is, such as 600 by 800. Kilobytes are how much space the file takes on disk. They are unrelated: a 600 by 800 photo can be 40 KB or 4 MB depending on how hard it was compressed, and compressing a file to 50 KB tells you nothing about its dimensions. Government and exam portals commonly enforce both and reject on either, which is why hitting one and guessing at the other is the usual reason an upload fails twice.

Why do portals demand exact pixels AND an exact file size?

Because two different systems check two different things. The pixel size is what the photo-validation software measures - face position, head height, proportions. The byte limit is what the upload system enforces. They are separate checks, enforced separately, and a file that satisfies only one gets rejected.

Will my photo be stretched to fit?

No, and this matters more than it sounds. Forcing a 4:3 photo into a 400x514 box by stretching would satisfy the pixel check and fail the human one, because a distorted face is a rejected passport photo. This centre-crops to the right proportions first, then scales - and it tells you when it has cropped, so you can check the framing.

My portal has a MINIMUM size. Why does every guide say to compress hard?

Because most guides have never met one. Australia ImmiAccount sets a 70 KB floor, and a photo compressed to 40 KB fails it. Advice to "compress as much as you can" is actively wrong on those portals. This tool treats a minimum as a real target and raises quality to reach it, or tells you plainly when the source image does not carry enough detail.

Is the size shown the size I actually get?

Yes. JPEG quality has no fixed relationship to file size - it depends entirely on what is in the picture, so a busy photo and a plain one at the same quality can differ several times over. Rather than guessing, this encodes the image repeatedly and narrows in on your target by measuring the real output. What you see is what downloads.

Can it open HEIC files from my iPhone?

Not directly - most browsers cannot decode HEIC at all, because the codec is patent-encumbered and only Safari ships it. Convert the photo first with our HEIC to JPG tool, which carries its own decoder and runs on your device, then bring the JPG back here to set the size. You can also stop the problem at source on the phone: Settings, then Camera, then Formats, then Most Compatible.

Written and maintained by Mustak Momin ยท Last reviewed