# Image compressor

> Compress JPG, PNG and WebP images by quality or to a target size like 100 KB, resize them and compare before and after. Free, private, no upload, ZIP.

Canonical: https://cromagnon.app/tools/image-compressor
Last updated: 2026-10-26

- Category: Image
- Formats: JPG · PNG · WEBP
- Use it: https://cromagnon.app/tools/image-compressor (free, runs in the browser)

## What it does

Make photos and graphics smaller without making them look worse: for faster websites, for email attachments, and for forms that only accept files under 100 KB or 1 MB. Choose a quality, or type the largest file size you need and the compressor finds the best quality that fits, resizing the picture only if it must. JPG and WebP are compressed with your browser's own encoder; PNGs are reduced to 256 colours or fewer and saved as indexed PNGs, the method behind popular PNG shrinkers, which often makes them 60–80% smaller with no visible change. Compare before and after with a slider, then download one image or all of them as a ZIP.

## How to use it

1. Drop up to 60 images (JPG, PNG, WebP, GIF or BMP), or click to choose them.
2. Pick Save as: the same format, JPG, WebP or PNG.
3. Choose Quality and move the slider, or choose Target size and enter the largest size in KB (100 KB, 200 KB, 1 MB…).
4. If the pictures are bigger than needed, pick a size under Resize, for example 1920 px for a website.
5. Drag the divider on the preview to compare, then download each image or Download all as a ZIP.

Tip: Resizing saves far more than quality. A 4000 × 3000 phone photo shown 1200 px wide on a web page carries eleven times the pixels it needs; resized to 1920 px at quality 80, it typically drops from 4 MB to around 300 KB.

## Which format to choose

- **JPG**: For photos. Opens everywhere, including old software and every email program. No transparency: transparent parts are filled with the background colour you pick.
- **WebP**: For websites. About 25–35% smaller than JPG at the same quality, supports transparency, and works in all current browsers. Some older desktop programs can't open it.
- **PNG**: For logos, screenshots, diagrams and anything with transparency or sharp text. With colour reduction, flat graphics shrink a lot; photos are usually better as JPG or WebP.
- **Same format**: Keeps JPG as JPG, PNG as PNG and WebP as WebP. GIF and BMP are saved as WebP, since browsers can't write them.

## Quality settings that work

- **80–85**: Looks identical to the original for almost every photo. A good default for websites and sharing.
- **70–75**: Still looks good at normal viewing size; a little softness in fine detail when zoomed in. Good for thumbnails and email.
- **50–60**: Clearly smaller files, with visible blockiness around edges and in skies. Fine for previews.
- **Below 40**: Strong artefacts. Better to resize the picture smaller than to go this low.
- **PNG colours**: 256 colours keeps most graphics visually unchanged. 64 or fewer suits icons and simple logos. Dithering smooths gradients but makes the file a little bigger.

## How target size works

With Target size, the compressor tries the highest quality first and, if the file is too big, homes in on the best quality that fits by halving the range seven times. If even the lowest quality is too big, it works out how much smaller the picture must be (file size grows with the number of pixels), resizes it and tries again, up to five times, and tells you it resized. For PNG it tries 256, 128, 64, 32 and then 16 colours, and goes straight to resizing when the file is more than three times too big. If a picture can't reach the size at all, the note says so and you get the smallest version it could make.

## Example

A passport application asks for a JPG photo under 100 KB. A phone photo of 3.2 MB at 3024 × 4032 px goes in with Target size 100 KB. Quality alone can't get there at full size, so the compressor makes the picture smaller step by step until a quality fits, and the note says it resized. Choosing Resize 1080 px first usually gives a sharper result at the same file size, because fewer pixels leave room for a higher quality.

## Privacy and photo data

The compressed copies don't keep the camera data (EXIF) of the original, which can include the GPS location where a photo was taken, the phone model and the time. Photos are turned the right way up before that data is removed, so portraits don't end up sideways. If a compressed file would be bigger than the original, which happens with images that were already well compressed, the original is kept and marked as kept.

## Tips

- **Websites**: WebP, quality 80, longest side 1920 px for full-width pictures or 1200 px for article images.
- **Email**: JPG at quality 75 and 1600 px keeps attachments around 200–400 KB each.
- **Upload limits**: Use Target size and set it a little under the limit (95 KB for a 100 KB limit), since some sites count 1 KB as 1,000 bytes.
- **Screenshots**: Keep PNG with 256 colours; text stays crisp, while JPG would blur it.

## Questions

### Does compressing reduce quality?

JPG and WebP compression is lossy, but at quality 75–85 the difference is very hard to see. PNG colour reduction is invisible for most graphics; tick Lossless to keep every colour.

### Can I compress to exactly 100 KB?

Choose Target size and enter 100. You get the best quality at or under 100 KB, usually 90–100 KB.

### Why is my PNG photo still big?

Photos have millions of colours, which PNG stores poorly. Save it as JPG or WebP for a far smaller file.

### Can I compress HEIC photos from an iPhone?

Only if your browser can open HEIC (Safari can). Otherwise set the iPhone camera to Most Compatible, or export the photos as JPG first.

### Are animated GIFs kept animated?

No, only the first frame is used, saved as a still image.

### How many images at once?

Up to 60 images of up to 50 MB each, compressed one after another on your device.

### Are my pictures uploaded?

No. Everything happens in your browser, on your device. Nothing is sent to a server or stored, so private photos and unreleased designs stay private.

## Related

- [Image Resizer](https://cromagnon.app/tools/image-resizer)
- [Image Converter](https://cromagnon.app/tools/image-converter)
- [Image to Base64](https://cromagnon.app/tools/image-to-base64)
- [Favicon Generator](https://cromagnon.app/tools/favicon-generator)
- [All tools](https://cromagnon.app/tools)
