Skip to content

Compress images

Make JPG, PNG, WebP and AVIF images smaller with a before-and-after preview; images are compressed on your device and never uploaded.

Drop images to compressJPG, PNG, WebP or AVIF · or click to browse · paste with Ctrl+V
Choose imagesProcessed on your device — never uploaded
Runs in your browser · no uploadHow it works

How to use Image compressor

  1. 1

    Drop your images

    Add up to 10 JPG, PNG, WebP, AVIF or HEIC files of up to 25 MB each, or paste a screenshot with Ctrl+V. Compression starts at once.

  2. 2

    Pick a preset

    Balanced (quality 75) suits the web; Smallest goes to 55 with a 128-colour PNG palette; Best keeps 90 and lossless PNG.

  3. 3

    Tune format and size

    Optionally convert everything to JPG, PNG, WebP or AVIF, cap the width and height, or keep the camera data.

  4. 4

    Check and save

    Drag the before/after divider and zoom in, then download single files or every result in one ZIP.

Limits and Pro

Up to 10 images per batch and 25 MB per image, at full resolution and without a watermark.

Pro compresses batches of up to 500 images and files of up to 4 GB each. See Pro

About Image compressor

Image compressor re-encodes each picture with a stronger encoder than the camera or app that made it — MozJPEG for JPG, libwebp for WebP, libavif for AVIF and OxiPNG for PNG — and gives you a file with the same pixel dimensions unless you set a maximum size. By default each file keeps its format; HEIC photos become JPG, and GIF, BMP or ICO input becomes JPG, or PNG when it has transparency. Optional PNG colour reduction turns a full-colour PNG into an 8-bit palette image with dithering, often a fraction of the original size while transparency stays intact. Results update by themselves whenever you change a setting.

Remove metadata is on from the start: EXIF camera details, GPS position, XMP and comments are dropped, and photos stay upright because the rotation is applied to the pixels. Re-encoded images come out in sRGB without an embedded colour profile. If an encoder can't beat the original, the original is kept and labelled instead of replacing it with a bigger file.

It is meant for page-speed work, product photos for an online shop, email attachments and uploads with a size cap. It can't restore detail that a heavy earlier compression already destroyed, it doesn't target an exact file size, and animated GIFs keep only their first frame. Repeatedly re-saving a JPG at low quality adds visible blocks, so start from the best source you have.

Privacy

Decoding, resizing and encoding run in up to three Web Workers in this tab, using the jSquash WebAssembly builds of MozJPEG, libwebp, libavif and OxiPNG served from this site, so your pictures never leave the device. The codecs are fetched only once you add an image. HEIC photos additionally need the libheif decoder from the jsDelivr CDN, about 1.5 MB, and that request carries no image data.

Features

Pro-grade encoders

MozJPEG, libwebp, libavif and OxiPNG produce files often 50–80% smaller than the originals.

Lossy PNG like TinyPNG

Reduce PNGs to a smart 16- to 256-colour palette with dithering, with transparency kept.

Before/after comparison

An interactive slider with zoom and pan shows exactly what changed, down to single pixels.

Never bigger

If a file is already well optimized, you get the original back instead of a larger copy.

Removes hidden metadata

EXIF data such as GPS location and camera details is stripped by default; orientation is preserved.

Which format should I choose?

JPG is the safest choice for photos that must open everywhere. WebP is usually 25–35% smaller than JPG at the same quality and supports transparency, and every modern browser displays it. AVIF is smaller still, often half the size of JPG, but takes longer to encode. PNG is lossless and best for screenshots, logos and graphics with sharp edges or transparency; turn on Reduce PNG colors to make it much smaller.

A quality around 75 is a good default for the web. Go up to 85–90 for photography portfolios or images with fine gradients, and down to 50–60 for thumbnails.

Image compressor: frequently asked questions

How much smaller will my images get?
Photos straight from a phone or camera usually shrink by 60–85% at the Balanced preset, because cameras save JPGs at very high quality. Screenshots saved as PNG often lose 60–80% with Reduce PNG colors switched on. Images that were exported for the web already may shrink by only 5–20%, and if nothing can be gained the tool keeps the original and says so in its row.
Which quality setting should I use?
Quality 75, the Balanced preset, is hard to tell apart from the original at normal viewing size and is a good default for websites and email. Choose 85–90 for photography portfolios, skies and smooth gradients, where banding shows first. Go down to 50–60 for thumbnails. Drag the comparison divider and zoom to 1:1 to judge the trade-off on your own picture.
Is WebP or AVIF better than JPG?
Both are smaller at the same visual quality: WebP files are typically 25–35% lighter than JPG, and AVIF files often half the size, though AVIF takes several seconds longer to encode. Every current browser displays both. Keep JPG when the picture goes to older software, print shops or forms that only accept JPG, and use WebP or AVIF for your own website.
Does compressing remove EXIF and GPS data?
Yes, by default. With Remove metadata on, camera model, shooting date, GPS location, XMP and comments are stripped, and the picture stays upright because orientation is applied to the pixels. Turn the switch off to keep the EXIF block, which works when a JPG is saved as JPG again; other format changes always leave the metadata behind.
Can I compress iPhone HEIC photos?
Yes. Add the HEIC files directly. Safari reads them itself; in other browsers the libheif decoder, about 1.5 MB, is downloaded once from a CDN and then cached. With the format left on Keep, each HEIC photo is saved as a JPG, which every device opens. Pick WebP or AVIF under Convert format if you prefer a smaller modern file instead.
All image tools