compress.genai.com.tw

Image Compressor:
shrink any photo to an exact size.

Drop in a photo, set a target size like 100 KB, and download it — resized and converted if you like. No sign-up, no upload, no daily limit.

🔒 Processed in your browser — your images never leave your device.

Your images & settings

Drop images here, or tap to choose

JPG, PNG, WebP, GIF, BMP — multiple files welcome
KB

The compressor tries to land just under this size without going over it.

80%

0 = keep the original size. Resizing keeps the aspect ratio — the image is never stretched.

PNG is lossless, so it cannot hit an exact KB target — it is resized only. Use JPEG or WebP for an exact target size.

No images yet — choose a file or drop one above.

Results

Each image gets its own result card with a before/after preview and a download button.

How to use this image compressor

  1. Drop in one or more images — or tap the box to pick files from your device. JPG, PNG, WebP, GIF and BMP all work.
  2. Set a target size — for example 100 KB for a form upload, or 200 KB for a website. Or switch to “Quality only” and pick a quality level instead.
  3. Resize if you need to — set a max width or height in pixels. Leave both at 0 to keep the original dimensions.
  4. Pick an output format — keep the original, or convert to JPEG, PNG or WebP. WebP usually gives the smallest file at the same quality.
  5. Press “Compress images” — each image gets a result card with its before/after size, savings and a download button. Nothing is uploaded at any point.

How target-size compression works

JPEG and WebP let you choose a quality level from 1 to 100. Lower quality means a smaller file, but the relationship is not a straight line — so this tool uses a binary search: it tries a quality in the middle, checks the resulting file size, then tries halfway up or halfway down, repeating about 8 times. Each round halves the gap, so it quickly lands on the highest quality that still fits just under your target size. If even the lowest quality is still bigger than your target, the tool says so honestly instead of pretending it hit the target — try a smaller target, resize the image, or switch to WebP.

JPEG vs PNG vs WebP — which should you use?

Worked example

A phone photo of 2,400 KB (2.34 MB) at 4032 × 3024 px, compressed to a 100 KB target as JPEG: the binary search settles near quality 62, and the result is about 98 KB — a saving of 95.9%. Resize the same photo to a max width of 1600 px first and the same 100 KB target is reached at a visibly higher quality, because there are far fewer pixels to store.

Tips for the best result

Example results

Typical results for common starting points. Your results will vary with the photo — busy, detailed photos compress less than simple ones.

Starting fileOriginal sizeTargetResult (JPEG)Saved
Phone photo 4032 × 30242,400 KB100 KB≈ 98 KB95.9%
Camera photo 2000 × 1500850 KB200 KB≈ 196 KB76.9%
Screenshot 2560 × 14405,120 KB500 KB≈ 492 KB90.4%

Results are typical examples, not guarantees — the exact quality the binary search finds depends on the image. PNG rows are not shown because PNG cannot hit an exact target (see the FAQ).

Frequently asked questions

Is my image uploaded anywhere?

No. Your images are processed entirely in your browser using the Canvas API. They are never uploaded to a server, never stored, and never shared. You can even turn off your internet after the page loads and keep compressing. See the privacy policy.

Why can't PNG hit an exact target size?

PNG is a lossless format: it has no quality setting to turn down. The file size is whatever the pixels need, and the only way to shrink a PNG is to resize it to fewer pixels. If you need an exact KB target, convert to JPEG or WebP instead — or resize the PNG first.

What is the maximum file size?

There is no server limit, because there is no server — the limit is your browser's memory. Images up to about 20 MB work well on most devices. Larger files (for example 50 MB panoramas) may be slow or run out of memory on a phone; resize them first or use a desktop browser.

Does it work offline after the page loads?

Yes. Once the page has loaded, all compression runs locally in your browser with no network needed. Reloading the page needs internet again, but compressing does not.

Will my photo lose quality?

JPEG and WebP compression is lossy: to reach a small target, some fine detail is discarded, and it cannot be recovered — so keep your original file. At quality 80 or above the loss is usually hard to notice on screen. If you need zero quality loss, use PNG and resize only, accepting a larger file.

Feedback

Found a bug, have an idea, or just want to leave a comment? Tell us below — your feedback helps make this tool better.