Compress image to an exact KB size

Many exam and government portals demand a photo under a precise size — 20 KB, 50 KB, 100 KB or any custom limit. PublicFix compresses your image to that exact target while keeping it as sharp as possible. No quality guesswork and no rejected uploads. The whole process happens on your device.

Open this toolFree 7-day trial · runs in your browser · files stay on your device
Works offlineFiles never leave your deviceFree trial, no card needed

What you can do

Exact-KB targeting

Type any target — 20, 50, 100 KB or your own number — and get a file right at that size.

Best possible quality

Smart compression keeps the photo clear instead of blurring it to hit the size.

Works on JPG & PNG

Compress photos and scanned documents in common image formats.

No upload limit worries

Process large camera photos right in the browser — nothing is sent to a server.

How it works

  1. 1

    Upload an image

    Drop in the photo or document you need to shrink.

  2. 2

    Enter the KB target

    Set the exact size the portal asks for, like 50 KB.

  3. 3

    Download the result

    Get a compressed file at your target size, ready to upload.

Frequently asked questions

How do I compress a photo to exactly 50 KB?

Upload the photo, type 50 in the KB target box, and download. PublicFix adjusts the compression until the file lands at 50 KB without going over.

Will compressing reduce the photo quality?

Some detail is always lost when a file gets smaller, but the tool uses the highest quality that still fits your target, so the photo stays as clear as possible.

Can I compress a PNG or only JPG?

Both work. You can compress JPG and PNG images; for the smallest size, JPG usually gives the best result for photos.

Is there a file size limit?

Because everything runs in your browser, you can compress large camera photos without an upload limit.

Available in other languages