Image Compressor

Shrink JPG, PNG and WebP images with a live quality/size preview.

Drop an image here or click to choose a file

Processed on your device — never uploaded

80

What Is This Tool?

This tool re-encodes your image at a lower quality and, optionally, a smaller size, then reports exactly how many bytes you saved. JPEG and WebP have a real quality dial; PNG is lossless so its saving comes mainly from the optional width cap and re-encoding. Everything is computed locally with the canvas API.

How It Works

1

Drop an image onto the box or click to choose one.

2

Choose an output format and drag the Quality slider.

3

Optionally tick the width cap to also downscale large images.

4

Check the before/after sizes, then click Download compressed.

Everything runs locally in your browser — the image you choose is decoded onto an HTML canvas on your own device and is never uploaded to a server.

Features

  • JPEG, WebP or PNG output
  • Live original vs compressed size and percentage saved
  • Optional maximum-width downscale in the same pass
  • Side-by-side visual check in the preview
  • 100% local — the image is never uploaded

Common Use Cases

  • Getting a photo under an email or upload size limit
  • Speeding up a web page by shrinking hero images
  • Reducing storage for a large photo library
  • Preparing images for a slow mobile connection

Frequently Asked Questions

Which format gives the smallest file?

For photos, WebP is usually smallest at a given visual quality, followed by JPEG. PNG is lossless and best kept for flat graphics, screenshots and images that need transparency.

What quality should I choose?

Start at 75–80 and lower it until you can just start to see a difference in the preview, then step back up one notch. Most photos look fine around 70–80.

Why did PNG barely get smaller?

PNG is lossless, so re-encoding alone changes little. The main way to shrink a PNG here is the width cap, or converting it to WebP.

Does compressing repeatedly make it worse?

Yes, for lossy formats. Each JPEG/WebP save discards a little more detail. Compress once from the original whenever you can.

Is my image uploaded?

No. Compression runs entirely in your browser.