Image compressor

This image compressor makes JPG, PNG and WebP files smaller in seconds, with a quality slider, optional max dimensions and a drag-to-compare preview. Compress one photo or a whole batch without uploading anything.

Processed on this device. Nothing is uploaded.
Loading Image Compressor…

How to compress an image

  1. Drop your images into the box, click to browse, or paste one from the clipboard.
  2. Move the quality slider (75 is the default) and pick an output format: same as input, JPG, PNG or WebP.
  3. Optionally enter a max width or height to scale large photos down while compressing.
  4. Drag across the before/after preview to check quality, then download one file or all of them as a ZIP.

What you can do with Image Compressor

Live before/after slider
Drag across the image to compare the original and compressed versions side by side, with both file sizes shown on the labels.
Bulk compression
Add as many images as you like. Each one shows its old size, new size and percentage saved, and a summary totals the savings.
Format switching
Keep the original format or convert to WebP or JPG while compressing, which often cuts PNG photos to a fraction of their size.
Resize while compressing
Set a maximum width or height and oversized photos are scaled down proportionally, the single biggest win for camera images.
Never makes files bigger
If re-encoding would produce a larger file at the same size and format, the tool keeps your original and marks it as already optimal.
Settings update instantly
Change the quality, format or dimensions and every image is recompressed automatically, so you can find the right balance quickly.

Image compression explained: quality, formats and size targets

Image compression works by throwing away detail your eye is unlikely to notice. JPG and WebP are lossy formats, so lowering the quality setting removes fine texture and smooths gradients to save bytes. For most photos a quality between 60 and 80 looks identical to the original at normal viewing size while being 50 to 80 percent smaller. PNG is lossless, so the quality slider has no effect on it; a PNG photo shrinks only if you convert it to WebP or JPG or reduce its pixel dimensions.

If a form asks you to compress an image to 100 KB or 200 KB, start by setting a max width. A 4000-pixel phone photo resized to 1600 pixels has about one sixth of the pixels, which usually gets it under the limit on its own. Then lower the quality in small steps and watch the size in the file list. For websites, WebP at quality 75 to 80 gives the best size-to-quality ratio and is supported by every current browser. Transparent areas turn white when you save as JPG, so use PNG or WebP for logos.

Frequently asked questions

Is it safe to compress private photos here?

Yes. The images are decoded and re-encoded by your own browser using a canvas, and the compressed files are created on your device. Nothing is uploaded, logged or stored on a server. You can even disconnect from the internet after the page loads and the compressor keeps working.

How do I compress an image to under 100 KB?

Enter a max width such as 1200 or 1600 pixels, then lower the quality slider until the new size shown in the file list drops below 100 KB. Switching the output format to WebP usually gets there at a higher quality than JPG. There is no automatic target-size mode, but the sizes update live as you adjust.

Why didn't my PNG get smaller?

PNG is a lossless format, so the browser can't trade quality for size and the quality slider does nothing. To shrink a PNG, choose WebP or JPG as the output format or set a max width. Keep PNG or WebP if the image has transparency, since JPG fills transparent areas with white.

Is there a limit on file size or number of images?

There is no fixed limit. Because everything runs locally, the practical limit is your device's memory. Dozens of typical phone photos work fine on a laptop. Extremely large images, around 100 megapixels or more, may fail to encode in some browsers, especially on phones.

Does it keep animated GIFs animated?

No. The compressor draws the first frame of a GIF onto a canvas, so the output is a still image saved as PNG, JPG or WebP. To make a smaller animated GIF from a clip, use the Video to GIF tool and lower the width, frame rate or color count.