Skip to content

Compress image

Runs on your device

Shrink JPG, PNG and WebP images to a quality level or a target file size. Pixel size is never changed behind your back.

How to use Compress image

  1. Choose one or more images.
  2. Keep their format, or switch to JPG or WebP for bigger savings.
  3. Aim for a quality level, or for a maximum file size such as 200 KB.
  4. Select Compress, check each image's before and after size, and download.

Quality or file size

Aiming for a quality level re-encodes each image once at that setting. 75 is a good default for photos: the difference from the original is hard to see at normal viewing size, and files are usually a fraction of the size. Lower settings save more space and start to show blocky edges around fine detail.

Aiming for a file size, such as 200 KB for an upload form, makes the tool search for the highest quality that fits, trying up to nine settings per image. If even the lowest quality is too big, it tells you rather than quietly shrinking the image. In that case, resize the image first.

Formats

Keep format re-encodes JPG as JPG and WebP as WebP. WebP is usually 25 to 35 percent smaller than JPG at the same visual quality and works in every current browser, so it's the better choice for websites. PNG is lossless, so compressing a PNG as PNG rarely saves anything; switch it to WebP or JPG for big savings.

Every result shows the real size before and after, the format you actually got, and the pixel size, which never changes. If a re-encoded image would be bigger than the original in the same format, the original is kept and the table says so.

What happens to your images

Images are decoded and re-encoded by your browser's own codecs in a background worker in this tab, and never uploaded. Photos are first turned the right way up, then all metadata, including GPS location and camera details, is dropped in the re-encode. Several images download together as one zip.

Limits

There is no daily limit and no file-size cap set by us. Very large images, such as 50-megapixel camera files, take a few seconds each and use a lot of memory on phones; compress them in smaller batches if your browser slows down. HEIC photos from iPhones work in every browser: they're decoded by libheif, which loads from this site the first time you add one.

Questions

Will my images be resized?
No. Compress image keeps every image at its original pixel size. If you want smaller dimensions, use Resize image; the two are kept separate so nothing changes without you asking.
Why didn't my PNG get smaller?
PNG is lossless, so re-saving it as PNG rarely helps. Choose WebP or JPG to make it much smaller. If a result would be bigger than your original, you get the original back.
Are my images uploaded?
No. They are compressed by your browser's own image encoder in a background worker. Nothing is sent to a server.
Is location data removed?
Yes. Re-encoding drops all metadata, including GPS location, after turning the photo the right way up. To remove metadata without re-encoding, use Remove image metadata.