Compress JPG, PNG, WebP and AVIF images

Shrink images without changing their format by default. See a before and after slider and the size saved. If the result is bigger, the tool says so and recommends keeping the original.

Drop images here, or pick them from your device

Stays on your device. Nothing is uploaded.

Processing on this device

How to use it

  1. Add JPG, PNG, WebP or AVIF images.
  2. Choose quality. For PNG, optionally reduce colours.
  3. Compare before and after with the slider.
  4. Download the result, or keep the original if no saving was made.

What it keeps

  • Pixel dimensions. Compression does not resize.
  • The original format by default.
  • PNG transparency.

What it removes or changes

  • JPG, WebP and AVIF are recompressed, which is lossy.
  • PNG is recompressed losslessly by default. Reducing colours is optional and is lossy.
  • Metadata can be dropped depending on the option you choose.

Limits

  • A file that is already well compressed may grow. The tool reports it and recommends the original.
  • JPG encoding uses the browser's own encoder.
  • Heavily recompressing a JPG repeatedly causes visible degradation.

Compatibility

Keeping the format means the result opens wherever the original did. That is the main benefit over converting. For web use, switching JPG to WebP may save more, but at the cost of some older software.

Privacy

Compression runs in your browser tab. Your images are not uploaded, and closing the page releases them from memory.

Lossy versus lossless compression

Lossless recompression, which PNG uses by default here, gives back identical pixels with slightly smaller files, but it cannot do much. Lossy compression gives large savings for photos by discarding detail you hardly notice. Choose lossless when pixel accuracy matters, like screenshots and diagrams, and lossy for photographs.

Troubleshooting

The compressed file is bigger.

The original was already efficient. Keep it, or resize the dimensions.

The PNG barely shrank.

Lossless PNG compression has limited headroom. Reduce colours for graphics, or switch photos to JPG or WebP.

The PNG colours changed.

Colour reduction is lossy. Turn it off, or raise the number of colours.

Frequently asked questions

Does it change the format?

Not by default. JPG stays JPG, PNG stays PNG, and the same for WebP and AVIF.

Is PNG compression lossless?

By default. Colour reduction is a separate, lossy option.

What if it gets bigger?

The tool tells you and recommends the original.

Related tools

Related guides

Last updated 2026-11-10