Compress Images Online

Compress images in your browser by quality or to an exact file size like 100 KB. Works with JPG, PNG, WebP and HEIC. No upload, batch support.

Your files are processed in your browser and never uploaded.

75

Higher means better quality and larger files.

Browsers can't save HEIC, so HEIC photos are saved as JPG.

Drop images here

Choose files

HEIC, JPG, PNG, WebP, AVIF, GIF, BMP · up to 50 megapixels each · you can also paste

How to use

  1. Choose "By quality" to set a compression level, or "To a target size" to enter a maximum file size in KB.
  2. Optionally choose an output format. "Same as input" keeps JPG and WebP as they are and turns PNG into a smaller lossy format.
  3. Drop your images. Each one is compressed immediately and shows how much smaller it got.
  4. Download files individually or all together as a ZIP.

Features

Hit an exact size
Target mode searches for the highest quality that fits under your limit and, only if needed, reduces the dimensions a little.
Better encoders
MozJPEG and libwebp produce noticeably smaller files than a phone or basic image editor at the same visual quality.
Private and unlimited
Compression runs on your device. No uploads, no daily caps, no watermarks.
Strips metadata
Compressed files contain no EXIF data, which removes location and camera details and saves a few more kilobytes.

Two ways to compress

By quality is best when you simply want smaller files and do not have a strict limit. A value between 70 and 80 is a good balance for photos on websites, in email and in chat apps. Around 85–90 is safer for images with fine detail, text or smooth gradients.

To a target size is for when a website or form says something like “maximum file size 200 KB”. Enter the limit and the tool runs a binary search over quality settings, encoding the image several times until it finds the highest quality that still fits. If even the lowest reasonable quality is too big, it reduces the width and height in small steps, because pixel count is the other big factor in file size. The result is guaranteed to be at or under your limit.

What makes an image file large?

File size depends mostly on three things: the number of pixels, the amount of fine detail, and the format and quality setting. A 12-megapixel photo has 12 million pixels, far more than most screens show; a website hero image rarely needs more than 2,000 pixels across. Detailed scenes such as foliage, gravel or crowds take more bytes than skies or plain walls. And the format matters: AVIF and WebP are more efficient than JPG, and all three are far more compact than PNG for photographs.

So if compression alone does not get you where you need to be, resizing the image first is often the most effective step. Halving both dimensions removes three-quarters of the pixels.

Which format compresses best?

Compress to common sizes

Many upload forms have fixed limits. Pages for the most common ones are pre-set: compress to 20 KB, 50 KB, 100 KB, 200 KB, 500 KB and 1 MB.

Frequently asked questions

How much smaller will my images get?

Photos straight from a phone or camera usually shrink by 50–80% at quality 75 with no visible difference on screen. Images that were already compressed for the web shrink less, sometimes only 10–20%.

What happens to PNG files?

PNG is lossless, so it cannot be compressed to a quality level or file size target. With "Same as input", PNG images are saved as WebP if they have transparency and as JPG if they do not, which typically makes them 70–90% smaller.

Why did my file get bigger?

If the original was already heavily compressed, re-encoding at a higher quality can produce a larger file. Lower the quality or use target-size mode, which never returns a file above your limit.

What if the target size is impossible to reach?

The tool first lowers quality, then shrinks the dimensions step by step. If the image still cannot fit, for example a 4K photo at 5 KB, it reports that the target could not be reached rather than returning an unusable result.

Are my images uploaded?

No. Everything runs in WebAssembly inside your browser tab, so your images never leave your device.

Compress to a file size

Related tools