# Compress image

> Compress JPG, PNG, WebP and HEIC images to an exact size limit like 100 KB, or by quality. Batch, resize, zip download. Runs in your browser.

URL: https://tools.cuelark.com/compress-image
Publisher: Cuelark Team (https://cuelark.com)
Updated: 2026-11-02
Price: free, no sign-up
Privacy: runs in the browser; files are not uploaded

Set a size limit, drop your images, and each one is compressed to the highest quality that fits. The search runs in your browser and nothing is uploaded.

## How to use it

1. Choose a target size (or type your own in KB) and an output format.
2. Drop images; each is searched for the best quality under the limit.
3. Download them one by one or as a zip.

## Details

- **Input:** JPG, PNG, WebP, AVIF, HEIC
- **Output:** JPG or WebP
- **Method:** Binary search on encoder quality; if the lowest acceptable quality is still too big, the image is scaled down in steps
- **Accuracy:** Every result is at or under the target, usually within 5% of it

## Questions

### Are my files uploaded?

No. The page loads its code once, then reads and processes your files inside the browser tab. Nothing is sent to a server; you can confirm it in your browser's network panel while a file converts.

### Why does the image get smaller in pixels sometimes?

Quality alone can only shrink a file so far before it looks blocky. Below quality 0.4 the tool scales the image down instead, because a smaller sharp image looks better than a large blurry one. The new dimensions are shown with each result.

### Can I compress a PNG and keep it a PNG?

Not with a size target. PNG is lossless, so the only lever is fewer pixels or colors. The tool outputs JPG or WebP, which reach small sizes with far better quality.

### How is this different from TinyPNG or Squoosh?

TinyPNG uploads your files to its servers. Squoosh is local too but handles one image at a time. This tool targets an exact size limit and handles batches, which is what form uploads usually need.

## Related tools

- [Compress image to 100 KB](https://tools.cuelark.com/compress-image-to-100kb)
- [Compress image to 50 KB](https://tools.cuelark.com/compress-image-to-50kb)
- [Compress image to 20 KB](https://tools.cuelark.com/compress-image-to-20kb)
- [HEIC to JPG](https://tools.cuelark.com/heic-to-jpg)

## Guides

- [How to compress a photo to under 100 KB for online forms (without it looking awful)](https://tools.cuelark.com/guides/compress-photo-to-100kb)
