Image Compressor

Reduce the file size of JPEG, PNG and WebP images in your browser by lowering the quality or the dimensions, and compare before and after with a slider. The output keeps the original format, and the image is compressed on your device without being uploaded.

About this tool

What does the Image Compressor do?

The Image Compressor makes an image file smaller so it loads faster on a web page or fits an upload or email size limit. Lower the quality, the dimensions, or both, and the result is shown next to the original with a draggable comparison slider and both file sizes. It works on one image at a time, entirely in your browser.

How to use

  1. Drag an image onto the drop area, or click it to choose a file.
  2. Move the Quality slider (JPEG and WebP only). The default is 60%.
  3. Move the Size slider to scale the image down from 100% to 1%. The resulting width and height in pixels are shown next to the label.
  4. Drag the divider on the preview to compare the Original and Compressed images. Each label shows its file size.
  5. Click the download button in the top-right corner of the preview. The file is saved as name-compressed.jpg (or .png / .webp).

To compress another image, drop it onto the preview.

Features

  • Quality from 1 to 100% for JPEG and WebP
  • Size from 1 to 100% of the original dimensions, keeping the aspect ratio
  • The output format is the same as the input
  • Before/after comparison slider with file sizes
  • The result updates automatically shortly after you change a slider
  • The last image and settings are kept in this browser, so they are still there when you come back

What to adjust for each format

FormatQuality sliderMost effective way to shrink it
JPEGYesLower the quality; reduce the size for large photos
WebPYesLower the quality; reduce the size for large images
PNGNo (lossless)Reduce the size

FAQ

Are my images uploaded?

No. Compression runs in your browser with the Compressor.js and browser-image-compression libraries. The image is stored only in your browser so it can be shown again next time.

Why is the Quality slider disabled for PNG?

PNG is a lossless format, so it has no quality setting and the image is saved as PNG again. Reduce the Size instead, or convert the image to JPEG or WebP with the Image Converter tool.

Can I compress several images at once?

Not in this tool; it handles one image at a time. The Image Converter tool accepts multiple files, has quality and resize options, and can download the results as a ZIP.

Is EXIF data kept?

No. The compressed image is re-encoded and does not keep metadata such as the camera model or GPS location.