Compress Image to an Exact File Size

Choose a target size — the tool automatically finds the best quality that fits under it.

🎯

Click to upload or drag and drop

JPG or PNG — one or more files

Optimizing…

🔒 Your images are processed entirely on your device and never leave your browser.

✅ Done!

How it works

1

Upload your photo (e.g. a passport or ID picture).

2

Pick a target size like 100KB, or enter a custom value.

3

The tool binary-searches quality to land right under the target.

4

Download — ready to upload to any form.

Compress an image to 20KB, 50KB, 100KB or 200KB

Government portals, visa applications, exam registrations, job boards and university forms often demand that your photo or signature be "less than 100KB" or "under 50KB". Guessing the right quality setting is tedious. This tool solves it automatically: pick a target size and it searches for the highest JPG quality that still fits under the limit, so you can compress an image to 100KB (or any size) in one click.

Common size limits and what they are used for

How to compress a photo to an exact file size

  1. Upload your JPG or PNG image.
  2. Choose 20, 50, 100, 200 or 500 KB, or type a custom value.
  3. Press Compress to target size. The tool tests different quality levels and, if needed, gently reduces the pixel dimensions.
  4. Download the result and upload it to the form.

What if the file is still too big?

Very large or very detailed photos may need a smaller pixel size to fit under a tight limit like 20KB. The tool handles that automatically, but you can also shrink the dimensions first with the image resizer. If the form requires a specific format, convert with HEIC to JPG or WebP to JPG first.

Everything runs in your browser, so your ID photo or signature is never uploaded to anyone's server.

FAQ

Why do forms require an exact KB size?

Government portals, visa applications and job boards often set strict upload limits (e.g. "under 100KB") to keep their systems light. This tool automates the trial-and-error of hitting that limit.

What if the target is smaller than the image allows?

The tool will also shrink the image dimensions slightly as a last resort so the file still fits your target size.