DailyDeskTools home

Image Compressor

Shrink JPG, PNG and WebP images in your browser, with a before and after comparison.

  • Free forever
  • No signup
  • Runs on your device
Image CompressorRuns locally · nothing uploaded
Loading tool…

How to use the Image Compressor

  1. 1Drop one or more images onto the box, or click to choose them.
  2. 2Adjust the quality slider. 70 to 80 keeps photos looking sharp at a much smaller size.
  3. 3Choose an output format, or leave it on Auto.
  4. 4Drag the slider on the preview to compare the original and compressed image.
  5. 5Download each image, or all of them as a ZIP.

How it works

Your images are decoded and re-encoded by your own browser using the canvas API. They never leave your device, which makes this safe for private photos, client work and documents.

Compression works by discarding detail the eye is unlikely to notice. The quality setting controls how much is discarded: lower numbers give smaller files with more visible artefacts.

Choosing a format

  • JPG is best for photos. It has no transparency, so transparent areas become white.
  • WebP usually gives the smallest files for both photos and graphics, and supports transparency. All modern browsers display it.
  • PNG is lossless, so the quality slider does not apply. It suits screenshots, logos and graphics with sharp edges, but is rarely smaller than the original.
  • Auto keeps photos as JPG and converts PNG and WebP images to WebP where your browser supports it.

Make images smaller still

Resizing has a bigger effect than quality. A 4000 pixel wide phone photo shown at 1200 pixels on a website wastes most of its data. Turn on Limit width to scale large images down while compressing.

If re-encoding would make a file larger, the original is kept and marked "Already optimized".

Metadata

Re-encoding removes EXIF metadata such as camera details and GPS location, which is good for privacy when sharing photos.

Resize first, then compress

Pixel count drives file size more than quality does. Shrinking a 4000×3000 photo to 1600×1200 cuts the pixels by 84%, because 1,920,000 is 16% of 12,000,000. Do that with the image resizer, then compress, and you usually get a far smaller file than quality tweaks alone.

Common mistakes

  • Compressing an already-compressed JPG repeatedly. Each pass loses detail. Keep the original and compress that once.
  • Compressing a tiny image to a low quality. Blocky edges appear fast under 70.
  • Saving a screenshot as JPG. Text edges blur. Use PNG or WebP.

Got an iPhone photo that will not open elsewhere? Convert it with the HEIC to JPG converter first. Icons for your site come from the favicon generator. Combining several images into one document? See all PDF and image tools.

Frequently asked questions

Are my images uploaded to a server?

No. Compression happens in your browser, so your images stay on your device.

What quality setting should I use?

For photos, 70 to 80 is usually indistinguishable from the original at a fraction of the size. Use the comparison slider to check.

Why did my PNG not get smaller?

PNG is lossless, so re-saving it rarely helps. Convert it to WebP for a smaller file, or keep the original if you need exact pixels.

Does compression remove location data from photos?

Yes. Re-encoded images do not keep EXIF metadata such as GPS location or camera details.

How many images can I compress at once?

As many as your device's memory allows. Dozens of typical photos work fine on most computers.

Should I resize or compress first?

Resize first, then compress. Fewer pixels shrinks the file much more than lowering quality, and the result stays sharper.

Is WebP better than JPG?

Usually it gives a smaller file at similar quality, and all current major browsers display it. Use JPG if the image must open in older software.

Last updated · By the DailyDeskTools team

Built and written with AI assistance, then tested by hand by our team. How we make our tools