Tools › Images › Image compressor

Image compressor

Make JPG, PNG and WebP files smaller, by a quality setting, or by naming the file size you have to come in under and letting it find the quality that gets there.

  • Say "under 200 KB" and it searches for the quality that achieves it
  • Compare before and after at full size before you save anything
  • A whole folder at once, saved together
  • No upload, so no size cap and no queue
1.87 MB397 KB79% smallerquality 82

Drop images here

or click to choose: JPG, PNG, WebP, AVIF, GIF, BMP

Quality, or a target size

Most compressors give you a quality slider and leave you to guess. That is the wrong way round when the constraint is a number: an email attachment limit, a CMS that refuses anything over 2 MB, a page budget.

Naming the size instead makes the tool do the search: it encodes, measures, and adjusts the quality until the result fits, in a handful of passes. You get the best quality that meets your constraint rather than the first one that happens to.

What a quality setting actually does

It is not a percentage of anything. In JPEG it scales a table of divisors applied to the image's frequency components: the fine detail is divided by a larger number and more of it rounds to zero. That is why the artefacts appear around sharp edges first, and why a photograph of foliage compresses worse than one of a sky.

Practically: 90 is visually lossless for almost anything. 80 is the sweet spot for the web. 60 shows on flat gradients if you look. Below 50 is visible on any photograph, and the file is no longer shrinking much for what it costs.

Re-compressing is not free

Each pass through a lossy encoder throws detail away again, and the losses accumulate. Compressing an already-compressed JPEG at quality 80 does not give you a quality-80 image; it gives you the errors of the first pass, re-encoded.

So compress from the largest original you have, once. If you need three sizes, make all three from the original rather than from each other.

Resize first, then compress

The single biggest saving is almost never the quality slider. It is the dimensions. A 4000-pixel photograph displayed 800 pixels wide is carrying twenty-five times the pixels it needs, and no quality setting recovers that. Resize to the size it will actually be shown at, then compress.

A photo straight off a phone at 4000 pixels and quality 95 might be 4 MB. The same photo at 1600 pixels and quality 80 is under 200 KB and looks identical on a screen.

PNG is a different question

PNG is lossless, so there is no quality to trade. Making a PNG smaller means reducing what is in it: fewer colours, or a smaller size. For a photograph the honest answer is that PNG is the wrong format and converting to WebP or JPEG will do more than any amount of optimisation.

Questions

Is my image uploaded?

No. It is compressed in this tab, which is why there is no size limit and no queue.

How do I hit a specific file size?

Set a target rather than a quality. The tool encodes repeatedly and narrows in on the highest quality that fits under your number.

What quality should I use?

80 for the web. 90 if it will be looked at closely. Below 60 starts showing on gradients.

Will compressing twice halve it again?

No, it will lose more detail for very little saving. Always compress from the original.

Why is my PNG barely getting smaller?

PNG is lossless, so there is no detail to discard. For a photograph, convert to WebP or JPEG instead.

Does it strip EXIF and GPS?

Yes. Re-encoding produces pixels only, so camera and location data do not survive. Usually a good thing before publishing.

Can I do a whole folder?

Yes. Drop them all in, set the quality or target once, and save them together.

Next

The guide that goes with this