Image Compressor

Compress JPG & PNG images.

Drag & drop an image here, or use the button above.

Everything runs locally — your image is never uploaded.

Free online image compressor

This image compressor shrinks your photos and graphics right in the browser — no uploads, no sign-up, and no watermarks. Pick a file, choose a quality level and output format, and the tool re-encodes the image on an HTML canvas to a smaller JPEG or WebP. You see the original size, the new size, and the exact percentage saved before you download, so you stay in full control of the quality-versus-size trade-off. Because everything runs locally, your images never leave your device.

How to compress an image

  1. Click Choose an image, or drag and drop a file onto the drop zone.
  2. Set the Quality slider — lower values make smaller files.
  3. Choose an output format: JPEG or WebP for real savings.
  4. Click Compress image and compare the original and new sizes.
  5. Hit Download to save the compressed image to your device.

Getting the smallest file

For photographs, WebP usually beats JPEG at the same quality, and a setting around 0.8 keeps detail while cutting size sharply. Remember that PNG is lossless, so re-saving a PNG barely helps — switch to JPEG or WebP instead. If your image is also larger than it needs to be in pixels, shrinking its dimensions first with the image resizer compounds the savings.

Private and free

No file ever touches a server, which makes this safe for private or unpublished images. Once you have a compact image, you can even convert it to a Base64 data URI to embed it inline in your HTML or CSS.

Frequently asked questions

Are my images uploaded to a server?

No. Compression happens entirely in your browser using an HTML canvas. Your image is never uploaded, stored, or shared, so it stays completely private on your device — safe for personal photos and unpublished graphics alike.

How does image compression work here?

Your image is drawn onto a canvas and re-encoded as a JPEG or WebP file at the quality you choose. Lowering the quality discards fine detail the eye barely notices, which shrinks the file. You can preview the result and check the exact size before downloading.

What quality setting should I use?

A quality of 0.7 to 0.85 is a good balance for photos — a big size reduction with little visible loss. Drop lower for thumbnails or when size matters most, and raise it toward 1.0 when you need maximum fidelity. Adjust the slider and watch the new size update.

Should I choose JPEG or WebP?

JPEG is universally supported and great for photographs. WebP usually produces noticeably smaller files at the same quality and is supported by all modern browsers, so pick it when you control where the image will be shown. Both are lossy, so smaller sizes trade off some detail.

Why did compressing my PNG barely help?

PNG is a lossless format, so re-encoding it as PNG keeps every pixel and the quality slider has almost no effect. For real savings on a photo saved as PNG, switch the output format to JPEG or WebP.

Can the compressed file end up larger than the original?

Occasionally, yes — for example when the source is already heavily optimised or you pick a very high quality. If that happens the tool tells you, and you can simply lower the quality, change the format, or keep your original file.