Skip to main content

Advanced image compressor

Compress multiple images with advanced settings. Supports JPEG, PNG, WebP, AVIF and more.

This page explains what the compressor above does with your settings, so you can predict the result instead of guessing. Every step runs in your browser tab: the file is decoded, re-encoded and handed back to you without being sent anywhere.

A 1,536 × 1,024 px PNG of 2.1 MB saved as JPG at the compressor’s default quality 80: 143.2 KB (−93.3%). The close-ups are 1:1 crops of the area marked by the box.Sample image: ImgCompress.app blog illustration (owned by ImgCompress.app)

Two controls: quality and target size

The quality slider runs from 10% to 100% in 5% steps and starts at 80%. It is passed straight to the encoder, so it controls how much detail JPG, WebP and AVIF are allowed to discard. Under Advanced options you will find the target size, a slider from 20 kB to 10 MB that starts at 1 MB.

Both settings are always in play. The compressor first encodes the image at your quality. If that result already fits under the target, you get it as it is. If it is still too big, the target takes over and the file is re-encoded in smaller steps until it fits. So for most phone photos, quality decides how the image looks, and the target only steps in when the file is heavier than you allowed.

What happens when a file is over the target

For JPG, PNG and WebP the work is done by the open-source browser-image-compression library. Each extra pass lowers the quality by 5% of its current value (15% for PNG) and, unless you switched on Force original resolution, shrinks the width and height by 5% as well. The loop stops as soon as the file is under the target or after 30 passes. If it still does not fit, you get the smallest version it produced and, if you set a target, the result card says it could not get under it.

AVIF goes through a separate WebAssembly encoder. It retries up to six times, cutting quality harder each time down to a floor of 10%, and only then, if resizing is allowed, reduces the longest side, never below 64 pixels. In Safari, where the browser cannot write WebP itself, a WebAssembly WebP encoder takes over and follows the same order: quality first, then dimensions.

The target is an upper limit, not an exact size. The loop stops on the first pass that fits, so a 200 kB target can give you 170 kB.

Settings that change the pixel size

Out of the box the compressor also caps the longest side at 1,920 pixels. A 4,000 × 3,000 photo therefore comes back at 1,920 × 1,440 even if the file was already under the target. You can move the Max dimension slider anywhere from 512 to 4,096 pixels, or switch on Force original resolution to keep every pixel and let only the quality drop.

There is one limit you cannot switch off: browsers refuse canvases above a certain size, and on iPhone and iPad the compression library keeps the canvas within 4,096 × 4,096 pixels' worth of area. When that or the size loop leaves your image smaller than expected, the result card shows the new dimensions.

Choosing a quality for photos, screenshots and graphics

Photos hide compression well because they are full of texture and noise. Start at the default, drag the compare slider over a face or a patch of sky, and lower the quality until you can see blocky areas or smeared detail, then go back one step.

Screenshots with text are the opposite case. JPG and WebP blur the edges of letters and leave faint halos around them, which shows long before a photo would suffer. Keep screenshots as PNG, or use WebP at a high quality if the file has to be small.

Logos, icons and flat illustrations usually have few colours and sharp edges. PNG suits them, and so does WebP, which can keep transparent backgrounds. JPG has no transparency, so a transparent logo saved as JPG gets a white background.

Why PNG files barely shrink

PNG is lossless: every pixel is stored exactly. The compressor's only lever for PNG is the number of colours. It re-encodes the file through palette quantisation with at most 4,096 colours, fewer as you lower the quality (about 3,300 at the default 80%). That makes this step lossy: it helps a photo saved as PNG but can add visible banding to smooth gradients.

A screenshot or diagram with few colours has less to give, but the compressor still merges similar colours, so the new file is not pixel-identical. In our test a UI screenshot went from 2,002 colours to 1,314 and shrank by about 20%, with no difference you would spot by eye. If you need an exact copy, keep the original PNG. When the result is not smaller and the format did not change, the compressor gives you back your original file rather than a worse copy.

If the PNG is a photo and does not need transparency, converting it to JPG or WebP will save far more than any PNG setting. The converter pages below do exactly that.

Resize first, or convert instead

File size follows pixel count closely. A 12-megapixel phone photo destined for a 1,200-pixel-wide blog column carries more than ten times as many pixels as the column can show. Scaling it down first with the image resizer cuts the size before quality even comes into it, and you choose the exact width instead of relying on the 1,920-pixel default.

Convert instead of compressing when the format is the problem: a photo stored as PNG, an iPhone HEIC file that a website rejects, or an old BMP. The compressor only reads JPG, PNG, WebP and AVIF, so HEIC and GIF files need their own pages. Animated GIFs are handled by the GIF compressor, which keeps the frames.

Limits, metadata and fixed-size targets

You can add up to 10 images per batch, each up to 50 MB. The count covers the whole list, not just one drop. For bigger batches, the bulk compressor takes 50. Output can stay in the original format or switch to JPG, PNG, WebP or AVIF; changing the format here also changes the file name extension to match.

Metadata such as camera model, date and GPS position is dropped by default because the image is redrawn on a canvas. Preserve EXIF keeps it, but only when a JPG stays a JPG. If you want the metadata gone without any re-compression, use the metadata remover instead.

When a form gives you a hard limit such as 100 KB or 2 MB, the size links above the guide open this compressor with that target already set.

The same 512 × 768 px sample photo saved three ways. Lossless PNG keeps every pixel and is the largest; JPG and WebP at quality 80 discard fine detail and come out far smaller. Use PNG for screenshots and graphics with sharp edges, JPG or WebP for photos.Sample image: Kodak kodim19, Eastman Kodak Company (Kodak test image, unrestricted use)

Questions about quality and target size

Why did my 4,000-pixel photo come out at 1,920 pixels?
The Max dimension setting caps the longest side at 1,920 pixels by default. Raise it to as much as 4,096 pixels under Advanced options, or switch on Force original resolution to keep the original pixel size.
Can I get a file of exactly 100 KB?
No. The target is a ceiling. The compressor stops on the first pass that fits under it, so the file usually lands somewhat below the number you set.
Why is the result the same size as my original?
When re-encoding does not make the file smaller and the format stays the same, the compressor keeps your original instead of handing you a worse copy. This happens most with PNG screenshots and JPGs that were already saved at a low quality.
Does compressing remove the photo's location data?
Yes, unless you switch on Preserve EXIF, which only works when a JPG stays a JPG. To strip the location without re-compressing the image, use the metadata remover.
Why does AVIF take longer than JPG or WebP?
Browsers can display AVIF but most cannot save it, so the page loads a WebAssembly AVIF encoder and runs it in your tab. It is slower than the built-in JPG and WebP encoders, and a tight target can make it retry several times.