Skip to content
File ToolsRuns in your browser

Image Compressor

Compress JPG, PNG and WebP images directly in your browser. Compare before/after, control quality and download the result.

Drop files here, or

JPG, PNG, WebP — processed entirely in your browser.

How it works

The image compressor uses your browser's built-in canvas.toBlob API to re-encode images at the quality and format you choose. The original image is decoded into a canvas, then exported to a new file.

  • JPG and WebP are lossy — smaller files, slight quality loss.
  • PNG is lossless — preserves every pixel but produces bigger files.
  • Optional max-width downscales images that are too large while keeping the aspect ratio.

All processing happens locally — your images are never uploaded.

Examples

Common starting points:

  • Photos for the web: JPG, quality 75%
  • Maximum savings: WebP, quality 70%
  • Transparent images: PNG, no quality slider
  • Email attachments: JPG, max width 1600px, quality 80%

Frequently asked questions

No. Image compression runs entirely in your browser using the HTML5 Canvas API. Images never leave your device. You can verify this by opening the tool while offline.
JPG, PNG and WebP can be both the input and the output. For best compression, convert PNGs to JPG or WebP. PNGs are lossless by design, so converting to JPG with a quality of 70–80% usually produces a much smaller file.
70–80% is a good starting point for JPG and WebP. Below 60% you may start to see compression artifacts in photos; above 90% the savings are usually small. Try a few values and compare the result.
By default, yes. Set a value in the “Max width” field to also downscale images that exceed that width. The aspect ratio is preserved.
The browser limit is your device's available memory. The tool enforces a 50MB per-file limit by default. Very large images (over about 20 megapixels) may be slow on older devices.