# Image Compressor

Drop images to shrink them in bulk while keeping them sharp. Convert to WebP or AVIF, resize, and compare before and after. Your images are never uploaded.

- URL: https://tools.itlibra.com/en/image-compress
- On-device・No upload
- Last updated: 2026-10-23

## How to use

1. Drop images or click “Choose files” (multiple files and Ctrl+V paste are supported).
2. Compression starts right away with the “Balanced” preset. Change quality, output format or size under “Compression settings”.
3. Check original vs. compressed size and savings in the list. Use “Compare” to inspect quality with a slider.
4. After changing settings, click “Recompress with these settings”.
5. Download images one by one or all at once as a ZIP.

## Use cases

- Lighten images on a website or blog to improve loading speed (Core Web Vitals)
- Fit attachments under email or chat size limits
- Shrink large phone photos to a shareable size in one go
- Make PNG screenshots smaller without any quality change
- Convert images to WebP or AVIF for even smaller files

## What it does

### High-quality encoders

MozJPEG for JPEG, libwebp for WebP, libavif for AVIF and OxiPNG for PNG, all running as WebAssembly — smaller files than the browser’s built-in export at the same quality.

### Keeps the original when recompression doesn’t help

Already-optimised images can grow when re-encoded. When re-encoding in the same format at the same size would make a file larger, the original is kept (on by default). Images that still carry location or other metadata are always re-encoded so the metadata is removed, and format conversions always use the converted file.

### Before/after comparison slider

Overlay the original and the result and drag the divider to inspect quality. Arrow keys work too.

### Batch processing & ZIP download

Process up to 200 images at once. Failures don’t block the rest, and you can include a report.csv in the ZIP.

### Strips location metadata

Re-encoding removes EXIF data (date, camera details, GPS). Orientation is applied to the pixels, so photos never end up sideways.

### Stays responsive

Compression runs in background Web Workers and can be stopped at any time; the page remains usable during large batches.


## Supported formats

### Input

- JPEG (.jpg / .jpeg / .jfif)
- PNG
- WebP
- AVIF
- GIF (still)
- BMP

### Output

- JPEG
- WebP
- AVIF
- PNG (lossless)
- PNG (reduced to 256 colours or fewer)
- Same as input


## Capability matrix

| Feature | Support | Notes |
| --- | --- | --- |
| Lossy JPEG / WebP / AVIF compression (quality 1–100) | Supported | — |
| Lossless PNG optimisation | Supported | Typically 5–30% smaller |
| Convert to WebP / AVIF / JPEG / PNG | Supported | — |
| Resize by long edge (never upscales) | Supported | — |
| Before/after comparison slider | Supported | — |
| Batch, ZIP download, report.csv | Supported | Up to 200 files, 50 MB each |
| Remove EXIF and GPS data | Supported | Always removed (cannot be kept) |
| Lossy PNG colour quantisation | Supported | 256 colours or fewer, usually 50–80% smaller. Best for diagrams and screenshots (photos can show banding) |
| Animated GIF / APNG / animated WebP | Not supported | Not processed, to avoid losing the animation |
| HEIC (iPhone photos) | Supported | Works in any browser (outside Safari, a \~1.5 MB decoder loads once; outside Safari the wide colour gamut (Display P3) is not converted, so colours can look slightly duller). With "keep original format" it is saved as JPEG |
| Wide gamut (Display P3) and ICC profiles | Partial | Output is converted to sRGB |

## Limits & notes

- Up to 50 MB per file and 200 files per batch; up to 100 megapixels per image (e.g. 10000×10000).
- AVIF encoding is slow (seconds to tens of seconds per image). Choose WebP when speed matters.
- Transparent areas become the chosen background colour (white by default) when saving as JPEG.
- ICC colour profiles are not preserved; images are output as sRGB.
- Processing uses your device’s CPU and memory; older phones may be slow with many large images.

## Privacy & safety

Reading, compressing and zipping all happen inside your browser. Images are never sent to or stored on a server. Only the compression engine (WebAssembly) is downloaded the first time you use it.

## FAQ

### How much quality is lost?

The default “Balanced” preset is visually indistinguishable for typical photos. Use “Compare” to check against the original, and switch to “High quality” if you notice a difference.

### Why don’t PNG files get much smaller?

When keeping the PNG format, we optimise losslessly — every pixel stays identical — which usually saves 5–30%. To shrink a PNG dramatically and keep it a PNG, choose “Reduced-colour PNG”: it keeps 256 colours or fewer and the transparency, usually 50–80% smaller. For photos, WebP works better.

### Should I choose WebP or AVIF?

WebP displays almost everywhere and encodes quickly. AVIF is even smaller but slower to encode and unsupported by some older software. If unsure, choose WebP.

### Is the photo’s location kept?

No. Re-encoding removes EXIF including GPS location. To remove metadata without changing image quality at all, use the “EXIF & GPS Remover” tool.

### Are my images uploaded?

No. All processing happens in your browser; images never leave your device.
