100% local · no uploads · free

The Best Image Compressor

Almost every guide to this ranks tools. The ranking is mostly noise, because the modern encoders are shared: MozJPEG, OxiPNG, and the reference AVIF and WebP encoders do the actual work in most of them, including the ones with the glossiest interfaces.

What separates a good result from a bad one is the choice of output format, and most compressors either hide that choice or make it for you. Get it right and a middling tool beats a great one used carelessly.

Compress an image locally →
  • Files never leave your device
  • No size limits
  • Free, no sign-up

Pick the output format first

SourceBest outputWhy
PhotographAVIF, or JPEG for compatibilityContinuous tone compresses well with lossy encoders
Screenshot with textPNG, or WebP losslessLossy encoders smear the edges of text
Logo, icon, flat colourPNG or SVGFew colours compress far better losslessly
Image with transparencyPNG, WebP or AVIFJPEG has no alpha channel at all
Scanned document pageJPEG or AVIFEffectively a photograph of a page
AnimationWebP or AVIFBoth beat GIF substantially

Format choice usually moves file size more than the choice of tool or the quality slider.

The mistake that makes files bigger

Converting a flat-colour image to JPEG is the classic one. A logo, a screenshot of a form, a chart with six colours: as PNG these are tiny, because lossless compression is extremely efficient on large areas of identical pixels. Push the same image through a JPEG encoder and it can come out several times larger than it went in, with visible fringing around every edge.

This is not a defect in any particular compressor. It is what happens when a lossy photographic encoder is handed content it was never designed for. Any tool that silently converts everything to JPEG will do it, so check the output size against the input before you accept the result, and choose PNG or lossless WebP for flat-colour content.

The reverse mistake is cheaper but still real: saving a photograph as PNG produces a file several times larger than a JPEG at quality nobody can tell apart.

What quality setting to actually use

For JPEG and WebP, quality around 80 is the usual sweet spot: most of the size saving, no artefacts a normal viewer will notice. Below about 60 the damage becomes visible on faces, gradients and any high-contrast edge.

AVIF holds up much lower, often around 50, and typically lands twenty to thirty percent smaller than WebP at matching perceived quality. The cost is encoding time and older-browser support, so it is the right default for the web and the wrong one for a file you are emailing to someone who will open it in an unknown application.

If you need an exact size rather than an exact quality, use a tool that accepts a target and works towards it. Guessing at slider positions to hit a portal limit is the slowest possible way to do this.

Where the tools genuinely differ

Not in the encoders, which are largely shared, but in three practical things. Whether there is a daily or size limit. Whether you can name a target size instead of a quality preset. And whether the image is uploaded.

That last one gets waved away for images more often than for documents, and it should not be. The images people compress are passport photographs for visa portals, ID scans, medical images and photographs of documents. A visa photo is a biometric image of your face attached to an application; it is not a holiday snap.

Compressing in the browser removes the transfer entirely. The encoders are the same ones the good server-side tools use, compiled to WebAssembly and run on your device, so the output is not a compromise for the sake of privacy.

A short method that works

Choose the output format from the table above, based on what the image actually is. Set quality around 80, or around 50 for AVIF. Compare the output size to the input, and if it grew, the format is wrong. Check one image at full zoom before batch-processing two hundred.

That sequence will beat any tool comparison, including this one.

How to the best image compressor

  1. 1
    Identify what the image is

    Photograph, screenshot, flat-colour graphic, or a scan. This decides the format, and the format decides most of the file size.

  2. 2
    Pick the output format deliberately

    AVIF or JPEG for photographs and scans. PNG or lossless WebP for text, logos and flat colour. Never convert a flat-colour PNG to JPEG.

  3. 3
    Set quality, then check the result

    Around 80 for JPEG and WebP, around 50 for AVIF. Compare output size to input: if it grew, change the format rather than the slider.

Frequently asked questions

Why did compressing my image make it bigger?

Almost always because a flat-colour image such as a logo or screenshot was converted to JPEG. That content compresses far better losslessly, so choose PNG or lossless WebP instead. Always compare the output size to the input.

Which format gives the smallest file?

AVIF for photographs, usually twenty to thirty percent smaller than WebP at matching quality. PNG or lossless WebP for text, logos and flat colour, where lossy encoders both damage edges and enlarge the file.

What quality setting should I use?

Around 80 for JPEG and WebP, which keeps artefacts below what a normal viewer notices. AVIF holds up around 50. Below 60 on JPEG the damage shows on faces, gradients and text.

Does compressing lose quality permanently?

With lossy formats yes, and it compounds if you recompress an already-compressed file. Keep the original and compress a copy. Lossless formats such as PNG and lossless WebP lose nothing at all.

Are my images uploaded to compress them?

Nothing is uploaded. The tools compile to WebAssembly and run inside the tab, so the file is opened, processed and saved by your own browser. You can confirm it in the Network tab of developer tools: run a job and watch that no request carries the file.