Compress Image

This image compressor makes JPG, PNG and WebP pictures smaller in your browser, using MozJPEG at quality 75 by default, and shows the size saved on each one. Compress up to 20 at once, compare each result with the original on a slider, and download them one by one or as a ZIP.

Processed on your device. Nothing is uploaded.

Drop pictures here, or choose them from your device

You can drag, paste (Ctrl+V) or choose several at once. Free limit: 20 pictures per batch. Files stay on your device.

How to use Compress Image

  1. Choose pictures, or drop them on the box. You can also copy a picture and paste it with Ctrl+V.
  2. Pick a quality. Recommended (75) is a good start.
  3. Leave Save as on “Same format”, or change JPG to WebP, or a PNG to JPG, to save more.
  4. Optionally type a largest width or height. Bigger pictures are made smaller; smaller ones are not changed.
  5. Press Compress. Each picture shows its new size and how much was saved.
  6. Press Compare under a picture to check it, then download it, or download all of them as one ZIP file.

How the compression works

A JPG stores a picture as small blocks of numbers. The quality setting decides how roughly those numbers are rounded: the lower the quality, the more rounding, the smaller the file and the more detail lost. This page uses MozJPEG, an encoder made by Mozilla to give smaller JPG files at the same visual quality, and saves them as progressive JPGs, which load in stages on the web.

Format What happens Quality setting
JPG Decoded and saved again with MozJPEG Used
WebP Saved again as lossy WebP Used
PNG, same format Packed again with OxiPNG, nothing is lost Not used
PNG as JPG or WebP Converted; see-through areas get the background colour for JPG Used

Pictures are resized, when you ask for it, with the Lanczos method, which keeps edges sharper than simple averaging. The work is shared between several background workers (one fewer than your processor has threads, at most four), so the page stays responsive while a batch runs.

Choosing a quality

Quality Typical use What to expect
60 Thumbnails, pictures that must fit a small upload limit Smallest files; fine detail and smooth skies can show blocks
75 (Recommended) Web pages, messages, email A large saving on most photos, with little visible change at normal size
85 Pictures that will be viewed large or edited again Larger files, very close to the original
95 and above Archives Files get big quickly for very little visible gain

The best way to decide is to compress one picture, press Compare, and zoom in on a detailed area such as hair, text or leaves.

What happens to camera and location data

A photo from a phone or camera usually carries an Exif block. It can hold the exact GPS position, the date and time, the phone model, and a small copy of the picture. If you post or send the file, anyone who gets it can read all of that.

Compressing removes it by default:

  • JPG: the picture is saved again from its pixels, so Exif, XMP and Photoshop data are not carried over. A photo stored sideways with an orientation tag is turned upright first, so it does not end up sideways.
  • PNG: text, Exif and time-stamp blocks are cut out; the pixels are untouched.
  • WebP: Exif and XMP blocks are removed.

If you untick the box, a JPG keeps its Exif and XMP data, with the orientation tag set to “upright” because the pixels have already been turned. PNG and WebP files made here never carry it.

Saving the most space

For photos, JPG at quality 75 is a good default. WebP is smaller again: in Google’s own tests, WebP files were 25% to 34% smaller than JPG at the same quality. It works in current versions of Chrome, Edge, Firefox and Safari, but some older programs and upload forms still refuse it, so check where the file is going. Reducing the largest side to what the screen needs saves more than any quality setting: a picture shown at 1200 pixels wide gains nothing from 4000. To change the size by exact amounts or print sizes, use Resize Image; to switch format only, see JPG to WebP.

Frequently asked questions

Are my pictures uploaded anywhere?

No. Your browser reads each picture and the compression runs on your device, in background workers that this page starts. The result is saved from your own memory. To check, open your browser’s network panel while you compress: you will see this site’s own program files load, and no picture leave.

Which quality should I choose?

Start with Recommended (75). It is the usual default for JPEG, and Google calls it the generally recommended level in its WebP study. Look at the result with the comparison slider. If you see blocky edges or smudged detail, go up to 85. If the file is still too large for an upload form, go down to 60 or set a smaller maximum width.

Why did my PNG barely get smaller?

PNG is a lossless format, so the tool can only pack the same pixels more tightly, and many PNG files are already packed well. The saving is often small, and a screenshot or logo may not shrink at all. For a bigger saving, choose Save as JPG for photos (see-through areas become a colour you pick) or WebP for graphics that need transparency.

Will the picture look worse?

JPG and WebP at lower quality throw away fine detail that is hard to see, and the lower the number, the more is thrown away. At 75 the difference is usually hard to see at normal size. Use the Compare button under each finished picture to look at the original and the new one on top of each other. A PNG stays exactly as it was.

Can I compress a picture to an exact size, such as 200 KB?

Not directly. The file size depends on the picture, so there is no way to know the size before it is made. Try Recommended first. If the result is too large, lower the quality, or set a largest width: a picture 1600 pixels wide is far smaller than one 4000 pixels wide. You can run it again as many times as you like with the same files.

Does it remove my location from photos?

Yes, by default. Phone photos can carry the place and time they were taken, the phone model and a small preview. The box Remove camera and location data is ticked at the start and removes all of it from the files you download. Untick it only if you want that data kept, and only JPG files can keep it.

Why does a picture say “already compressed more than this setting would do”?

Some pictures were saved at a lower quality than the setting you chose. Compressing them again at a higher quality would make the file bigger, so the tool keeps the original picture data (with camera data removed if you asked) instead of handing back a larger file. Choose a lower quality if you want it smaller still.

How many pictures can I compress at once?

Up to 20 in one batch. Add more after the batch is done. Very large pictures (tens of megapixels) need a lot of memory, and several are processed at the same time, so close other tabs if your device struggles. Animated GIFs are not supported.

See all Image Tools →

Sources and review

Last reviewed: .