Compress Image to Exact KB Online Free (20KB, 50KB, 100KB Targets)

Compress Image to Exact KB Online Free (20KB, 50KB, 100KB Targets)

By Hami Tech·March 16, 2026·Updated March 25, 2026·4 min read

Government portals, exam boards and job applications almost always specify an exact ceiling - a photograph under 50 KB, a signature under 20 KB, a document scan under 100 KB - and reject anything over it without explaining what to do. The usual response is to open an image editor, guess a quality setting, export, check the file size, find it is still too large, and repeat. This tool removes that loop by working towards the number directly: it adjusts quality automatically, and when compression alone cannot reach a very small target, it reduces the pixel dimensions as well, because there is a point below which no amount of quality reduction will get a large photograph under 20 KB. That is worth knowing in advance, since it explains why an aggressive target produces a physically smaller image. Everything runs in your browser, which matters when the file is a passport photo or a signed document.

Key benefits

  • Targets a specific number rather than a vague quality setting, which is what forms actually require.
  • Removes the guess-export-check loop entirely.
  • Reduces dimensions automatically when compression alone cannot reach a very small target.
  • Runs on your device - passport photos, signatures and ID scans are never uploaded.
  • No account, no watermark and no limit.

How to use it, step by step

  1. Add your image. Drop it in or browse. The current file size is shown so you know how far you need to go.
  2. Enter the target size. Type the exact number the form demands - 20, 50, 100 KB or anything else. Use the largest value the form permits.
  3. Let it work towards the target. Quality is adjusted automatically, and dimensions reduced too if the target cannot be reached by compression alone.
  4. Check the result before submitting. Confirm the file is under the limit and that a photo or signature is still clearly legible.

Common use cases

  • Passport or visa application photos with a strict size ceiling.
  • Exam board and university portals that cap uploads at 50 or 100 KB.
  • Government forms requiring a signature image under 20 KB.
  • Job application portals that reject anything above a set size.
  • Any upload field that fails silently when the file is too large.

Pro tips

  • Use the largest size the form allows. If the limit is 100 KB, target 95 - not 50 - because every kilobyte you give up costs visible detail.
  • Check the dimension requirements too. Many forms specify both a maximum file size and a required pixel size, and meeting one is not enough.
  • Start from the original photo, not from a copy already compressed for something else.
  • For a passport photo specifically, the Passport Photo Maker handles the official dimensions, then use this to hit the size limit.
  • Zoom in on a face or signature after compressing. Legibility matters more than the number when a human reviews the application.

Common mistakes to avoid

  • Targeting far below the limit "to be safe", which throws away quality for no benefit.
  • Ignoring a separate dimension requirement and having the upload rejected anyway.
  • Compressing an already-compressed image repeatedly across several attempts, stacking artefacts each time.
  • Submitting without opening the result - a signature that has become an illegible smudge fails the application, not the upload.
  • Uploading identity documents to a server-based compressor. This one runs locally.

Frequently asked questions

How do I compress an image to an exact size?

Add your image, type the target size in KB, and the tool adjusts quality - and dimensions if necessary - to reach it. No manual trial and error.

Is this tool free?

Yes. No account, no limit and no watermark on the output.

Can it hit the exact file size every time?

It gets as close as possible under your target. Very small targets like 20 KB need aggressive compression, so the result lands just below rather than exactly on the number - which is what forms require anyway.

Will a small target make my photo look bad?

The smaller the target, the heavier the compression and the more visible it becomes. This is why you should always target the largest size the form permits rather than an arbitrarily lower one.

Does it change the image dimensions too?

It may, for very small targets. Below a certain size no amount of quality reduction will get a large photograph under the limit, so reducing the pixel dimensions is the only way to reach it.

Are my images uploaded to a server?

No. Everything runs in your browser, which matters here specifically - the files people compress to a target size are usually passport photos, signatures and identity documents.

People also search for

  • compress image to 50kb
  • reduce photo size to 20kb
  • resize image to 100kb online
  • compress passport photo size
  • image size reducer in kb
  • compress signature image for form
  • reduce jpg to specific kb

Ready to get started? Open the Resize Image to KB and try it now - completely free.