Image Compressor and Resizer: Convert JPG, PNG and WebP Online

Search with Ctrl + F Last updated: 2026-11-26

The Image Compressor and Resizer helps reduce image file size, change pixel dimensions and convert between JPG, PNG and WebP. It uses the Canvas API, so the image never leaves your device.

What you can adjust

  • Output format: keep the source format or choose JPG, PNG or WebP.
  • Width and height in pixels, with an optional locked aspect ratio.
  • Compression quality for JPG and WebP output.
  • Background color for transparent areas when exporting to JPG.
  • Live previews of the original and the result, plus before and after file sizes.

How to use it

  1. Choose an image file from your device.
  2. Set the target width and height. Enable aspect-ratio lock if you only want to change one dimension.
  3. Pick an output format and adjust quality for lossy formats.
  4. Click Compress Image, review the preview and download the result.

Format notes

PNG is lossless, so the quality slider is ignored for PNG output. JPG does not support transparency, so transparent areas are filled with the chosen background color. WebP usually provides better compression than JPG at similar visual quality, but compatibility should be checked if the image will be used in older software.

Privacy

The image is read with a local FileReader and processed with Canvas. Nothing is uploaded to a server.

Open the tool: Image Compressor and Resizer.