Images

Image compressor

Re-encode a picture at a lower quality and see the byte count before you download it. The original file never leaves this page.

PNG ignores the quality slider because it is lossless.

How it works

The browser draws your image onto a canvas and encodes it again. JPEG and WebP honor the quality slider: 1 is the largest high-quality file, and lower values throw away detail to save space. PNG is lossless, so the slider does not shrink it. Converting a PNG photo to JPEG usually does.

Dimensions stay the same. If the picture is simply too many pixels for the slot you need, resize it on the image resizer. Phone photos that are still HEIC start on the HEIC to JPG page.

Formula

  • JPEG and WebP
    smaller quality → smaller file, less detail
  • PNG
    lossless; change the output to JPEG or WebP to use the slider

Worked examples

A camera JPEG for a form

A 4 MB JPEG at quality 0.8 often lands near 1 MB without an obvious change at screen size. The page shows both sizes so you can judge the file in front of you, not a guess.

A screenshot that is a PNG

PNG of flat colors is already efficient. Switching the output to JPEG can make text fuzzy. Leave screenshots as PNG unless the upload limit forces a change.

Where each output format fits
FormatQuality sliderBest for
JPEGYesPhotographs
WebPYesPhotos and graphics on the web
PNGIgnoredScreenshots, logos, transparency

Common questions

Is the image uploaded?

No. Compression uses the canvas in your browser. The file is not sent to HandyTools HQ.

Why did PNG stay the same size?

PNG does not have a quality setting. The slider applies to JPEG and WebP. Pick one of those outputs if you need a smaller photo.

Will this remove the background?

No. It only re-encodes the pixels. Transparency survives in PNG and WebP. JPEG has no transparency and fills those pixels.

What is a good quality number?

Start at 0.8 for photographs. Drop toward 0.6 only if the file is still too large. Quality 1 is for when you want a fresh encode without visible damage.