Compress Image to an Exact KB Size

The form says "photo must be under 50 KB" and your phone says the photo is 4.2 MB. Drop the image here, pick the target, and get the largest file that fits — compressed on your own device, never uploaded.

Compress your image

In short

Add image → choose 20 / 50 / 100 KB or a custom target → Compress → Download. The tool searches for the highest JPEG quality that fits, and shrinks the dimensions too if quality alone is not enough.

How image compression to a target size works

A JPEG file's size is controlled by two levers: the quality setting of the encoder (how much fine detail is thrown away) and the dimensions (how many pixels there are to describe). Most "compressor" websites pull only the first lever with a fixed guess, hand you whatever size comes out, and leave you iterating by hand against the form's limit. This tool works the way you would by hand, only patiently: it encodes the photo repeatedly, binary-searching the quality scale for the highest setting whose output is at or under your target — because for a form, the best file is the best-looking one that still passes. If the search bottoms out (at very low quality the file is still too large, which happens with huge scans and noisy photos), it pulls the second lever: dimensions come down in steps and the quality search runs again at each size, until the target is met. The result panel tells you exactly what was needed — final size, dimensions and quality — so the process is inspectable, not magic.

Two honest expectations. First, "exact KB" in practice means at or just under the target: a file deliberately padded to a precise byte count would be pointless, and portals set ceilings, not exact sizes. Second, physics applies — a 20 KB ceiling on a detailed A4 scan means real softening of fine print, because the information has to go somewhere. The tool will always reach the target if the image can be encoded at all, but for documents you should use the largest ceiling the form permits and read the preview at full size before you submit it anywhere that matters.

And the standing rule of this whole section: the compression happens on a canvas inside your browser. Your photograph is not uploaded to us or anyone else — there is no server in this design at all.

Typical form limits in Pakistan (and the preset for each)

WhereCommon photo limitPreset
Government job portals (various)Under 100 KB, often 300×300 px100 KB + the 300×300 resizer
University admission forms50–100 KB50 KB (safe side)
Exam registrations (boards, testing services)Under 50 KB, signature smaller50 KB; signature at 20 KB
Online visa and passport renewalsStated per portal; dimensions strictPassport Photo Maker, then compress

Limits change and differ by portal — always read the exact numbers on the form you are filling; the table is a guide to what is typical, not a promise about any specific portal.

How to use this compressor

  1. Click the drop area (or drop the file) and choose your photo or scan.
  2. Pick a preset — 20, 50, 100 or 200 KB — or type a custom target.
  3. Press Compress image and read the result: final size, dimensions and quality used.
  4. Preview the image, then Download the compressed JPG and upload it to your form.

Privacy: your image is processed entirely in your browser and is never uploaded or stored. Note: output is JPEG; transparent areas of a PNG become white, as form portals expect.

Frequently asked questions

How do I compress an image to exactly 50 KB (or 100 KB)?

Choose the 50 KB preset above, add your image, and press Compress. The tool re-encodes the photo as a JPEG, searching for the highest quality setting whose file lands at or under 50 KB; if even the lowest quality is too big (large scans, very detailed photos), it also reduces the pixel dimensions step by step until the target is met. The result is the largest, best-looking file that still passes the form's limit.

Will compression make my photo blurry?

At form sizes, usually not noticeably. A photo compressed to 100 KB at its original dimensions typically looks clean on screen and in a portal preview. Very small targets (20 KB) on a large photo force a real trade-off — the tool then reduces dimensions as well as quality, and fine text in a scanned document can soften. For documents, use the highest target the form allows, and check the preview before submitting.

Why does the form reject my photo even at the right KB?

Because size is only one of three common checks. Portals also verify pixel dimensions (for example exactly 300×300) and file format (usually JPG). If your size is right and it still fails, use the matching tool on this site — the 300×300 resizer or the passport photo maker — to fix the dimensions, then compress again if needed.

Is my photo uploaded to a server for compression?

No. The compression runs on a canvas in your own browser; the file never leaves your device. You can test this by loading the page, switching off your internet, and compressing — it still works. For photos of yourself and scans of your documents, that is the only arrangement that makes sense.

What if my image is a PNG with transparency?

JPEG has no transparency, so transparent areas become white in the compressed output — which is what form portals expect for photos and signatures anyway. If you genuinely need transparency preserved, this is the wrong tool; compressing transparent PNGs to very small sizes is rarely possible because PNG compression is lossless.

Related tools