Skip to the tool

Image Compressor

Compress JPEG, PNG and WebP images by quality or target file size, right in your browser. Your photos never leave your device.

Drop an image above to get started

Image compression shrinks file size in one of two ways. Lossy formats such as JPEG and WebP discard visual detail that a quality setting controls — lower quality, smaller file. PNG is lossless and stores exact pixels, so no quality setting can trim it. Making a PNG smaller means reducing its pixel count, which is what this tool does when you set a target size or a maximum edge.

Images typically account for about half of the bytes a web page downloads. Every extra hundred kilobytes delays the moment visitors see content, and search engines measure that delay directly: page speed feeds Core Web Vitals and ranking signals. Compressing photos before publishing — aiming for the smallest file that still looks sharp on screen — remains one of the cheapest performance gains any site can make.

For photographs, quality values between 70 and 85 hit the practical sweet spot: files drop to a fraction of their original size while the difference stays invisible at normal viewing distance. Everything happens locally — a Web Worker inside your browser does the heavy lifting, so private or unreleased images never touch a server, and the compressed file downloads straight to your device.

Common uses

Frequently asked questions

What is the difference between quality mode and target size mode?
Quality mode re-encodes JPEG or WebP at the exact quality you pick — best when you want control over the visual trade-off. Target size mode keeps re-encoding and downscaling until the file fits under the KB value you set, and it is the mode PNG responds to.
Why doesn't the quality slider affect PNG files?
PNG is lossless: it stores exact pixel values, and no quality parameter can shrink that representation. To make a PNG smaller here, use target size mode or set a maximum edge — reducing the pixel count is the only lever PNG actually has.
What quality setting should I use?
Between 70 and 85 for photographs. In that range files shrink dramatically while differences stay invisible on normal screens. Below 60 you start seeing blocking artifacts near edges; above 90 you mostly spend extra bytes on detail that never shows.
Is my image uploaded to a server?
No. Compression runs entirely inside your browser, with the heavy work done by a local Web Worker. The compressed file downloads straight to your device and nothing is transmitted anywhere — safe even for private or unreleased images.
Why is my compressed file sometimes larger than the original?
Re-encoding an already efficient file can produce more bytes than it started with — most common with small, highly optimized JPEGs and PNGs. This tool shows the change honestly instead of hiding it. Try a lower quality or a maximum edge to force real savings.
Does compression change the image dimensions?
Only when it has to. Quality mode keeps the original resolution. Target size mode and the maximum edge setting downscale the image, because reducing pixels is the only guaranteed way to cut bytes — especially for PNG. The result card shows the exact dimensions you are downloading.

Related tools