Image Compressor

Compress JPG, PNG and WebP images to reduce file size, right in your browser.

Loading tool…

Image CompressorShrink JPG, PNG and WebP images with an adjustable quality slider and instant before/after size comparison. Re-encoding uses the Canvas API directly in your browser, so photos are never uploaded anywhere. Switch the output format to WebP for the best size savings on most photos.

What is Image Compressor?

A free online image compressor that reduces the file size of JPG, PNG, WebP, and other browser-decodable images right in your browser. Photographers, bloggers, web developers, and anyone who needs to shrink images for faster page loads or email attachments can drop in a picture, pick an output format, drag the quality slider, and watch the before/after size comparison update automatically. Because re-encoding runs on the Canvas API locally, you can compress images without uploading them and convert between JPEG, WebP, and PNG output at the same time. Switching the output format to WebP usually gives the biggest size savings on most photos.

How to use Image Compressor

  1. Drop an image onto the dropzone, or click it to browse and pick any image your browser can open (JPG, PNG, WebP, and more) from your device.
  2. Choose the output Format (JPEG, WebP, or PNG) from the dropdown; it starts on JPEG.
  3. Drag the Quality slider (10%-100%) to balance file size against visual fidelity; the image re-compresses automatically a moment after you stop. The slider is hidden for PNG, which is lossless.
  4. Compare the Original and Compressed sizes shown side by side, including the percentage saved, and inspect the before/after previews (click either to zoom in).
  5. Click Download to save the compressed file, or use Reset to clear and start over with a new image.

Examples

Shrink a large JPEG photo for the web

Drop a multi-megabyte JPEG, keep the JPEG format, and lower the quality slider toward 60%. The Compressed stat updates to a much smaller value with a negative percentage (e.g. -80%), and Download saves it as photo-compressed.jpg with the dimensions unchanged.

Convert a PNG screenshot to WebP for smaller size

Drop a PNG screenshot and switch the Format dropdown to WebP, then adjust the quality slider. The output is re-encoded as a .webp file, typically far smaller than the original PNG while looking nearly identical.

Re-export at full quality

Set the slider to 100% to re-encode with minimal loss. The before/after sizes may be close, or the Compressed value can even show a + (larger) if the original was already heavily optimized.

Frequently asked questions

Which image formats are supported?
You can load any image your browser can decode (JPG, PNG, WebP, and more) and export to JPEG, WebP, or PNG. WebP generally produces the smallest files for most photos.
Why does the quality slider disappear when I pick PNG?
PNG is a lossless format, so the quality value has no effect on it. The slider only appears for JPEG and WebP, where it controls the lossy compression level.
Does compressing change the image dimensions?
No. The tool re-encodes the image at its original width and height; it reduces file size by adjusting compression and format, not by resizing the picture.
Why did my compressed file come out larger than the original?
If the source was already optimized, or you pick a high quality or a less efficient format, re-encoding can increase the size. The Compressed stat shows a + percentage in that case, so you can lower the quality or try WebP instead.
Are my images uploaded to a server?
No. Everything runs 100% client-side in your browser using the Canvas API. Your photos are never uploaded, sent, or stored anywhere, so it works even offline once the page has loaded.

Related tools