How to use Image compressor
- 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
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
Tune format and size
Optionally convert everything to JPG, PNG, WebP or AVIF, cap the width and height, or keep the camera data.
- 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.