Image Compressor
Make JPG, PNG and WebP images smaller with advanced encoders that run in your browser. Your files are never uploaded.
Your files stay on your device. Everything is processed in your browser; nothing is uploaded to a server.
What this image compressor does
Drop in photos, screenshots or graphics and the tool saves smaller copies as JPG, WebP or PNG. Each file gets a row showing its original size, its new size and the percentage saved, and you can download them one by one or together as a ZIP.
It uses the same kind of encoders that dedicated compression services use, compiled to WebAssembly so they run inside your browser: mozjpeg for JPG, libwebp for WebP, and palette reduction followed by oxipng for PNG. In our tests mozjpeg made clearly smaller JPG files than the browser's built-in encoder at the same quality setting. The work happens on your device, in the background, so the page stays responsive.
Key takeaways
- JPG and WebP quality settings, and PNG reduction to 256 colors, are lossy: they discard detail you are unlikely to notice.
- PNG (lossless) only re-packs the file more efficiently; every pixel stays exactly the same.
- Auto quality searches for the smallest file that still measures as very close to the original.
- The tool never hands you a bigger file in the same format. If it cannot make one smaller, it keeps your original.
- Lowering the maximum width or height usually saves more than any quality setting.
How to use it
- Add images. Drag JPG, PNG or WebP files onto the box, or click it to pick them. Up to 20 files in the list, each up to 50 MB. Files are processed one at a time so phones do not run out of memory.
- Pick a format. JPG suits photos and screenshots and opens everywhere. WebP is usually smaller still and keeps transparency. PNG (smaller, up to 256 colors) suits screenshots, logos and graphics. PNG (lossless) keeps every pixel.
- Leave Auto on, or set the quality. Auto is the default for JPG and WebP. Untick it to choose a quality from 1 to 100 yourself.
- Optionally set a maximum width or height. The longest side is scaled down to that size and the shape is kept. Images already smaller are left at their size.
- Check and download. Tap a thumbnail to compare before and after. Download a single file from its row, or use Download all (ZIP).
How Auto quality works
A quality number means different things for different images: a setting that is invisible on a busy photo can smear the text in a screenshot. So instead of one fixed number, Auto tries several qualities between 50 and 90 and measures each result against your original with SSIM (structural similarity), a standard score of how alike two images look, where 1 means identical. It keeps the lowest quality whose score stays above a set threshold, which gives the smallest file that still measures as very close to the original.
The threshold was chosen by measuring the output of a well-known online compressor on a real phone screenshot, so Auto aims for at least the same measured similarity. The quality never goes below 50, because lower settings start to show rings around text even when the score still passes. If no quality in the range reaches the threshold, as can happen with grainy or very detailed photos, Auto uses 90.
Why some images barely shrink, or get bigger
JPG compression is lossy, and it cannot be undone. A photo or screenshot sent through WhatsApp, Messenger or most social apps has already been compressed by the app, often heavily. Compressing it again means decoding it to pixels, including all the small artifacts the first compression added, and encoding those artifacts as if they were real detail. At a high quality setting, the new file can easily come out larger than the one you started with.
This tool checks every result. If the new file is not smaller than the original and the format is the same, it keeps your original file unchanged, shows Already optimized and 0% saved, and the download gives you the original bytes. To get a smaller file in that case, lower the quality, switch to WebP, or set a maximum width or height.
JPG vs PNG vs WebP
| Output | Lossy or lossless | Transparency | Best for |
|---|---|---|---|
| JPG (mozjpeg) | Lossy, quality setting | No (filled with white) | Photos and screenshots that must open anywhere |
| WebP (libwebp) | Lossy, quality setting | Yes | Images for websites and apps; usually the smallest |
| PNG, up to 256 colors | Lossy (color reduction), then lossless packing | Yes | Screenshots, logos, icons, diagrams |
| PNG, lossless (oxipng) | Lossless | Yes | Images that must stay pixel-perfect |
PNG with up to 256 colors works by building a palette of the 256 colors that best represent the image and mapping every pixel to one of them, with dithering to hide the steps between shades. Flat graphics and screenshots often look the same afterwards; smooth photos can show slight grain. PNG lossless keeps every pixel and only finds a more efficient way to store them, so savings are usually smaller.
Your images stay on your device
Many online compressors upload your files to a server, process them there and send them back. This one does not: the encoders are downloaded to your browser the first time you compress something and run on your device. Your images go from your disk to your browser's memory and back to your disk.
The compressed files contain only the image. Metadata such as the camera model, the date taken and GPS location is not copied, which is usually what you want before sharing a photo. Photos are turned the right way up first, using the orientation your phone recorded, so they do not come out sideways.
File sizes are shown in binary units, as Windows shows them: 1 KB is 1,024 bytes and 1 MB is 1,024 KB. The size in each row is the exact size of the file you download, and the total in the summary is the sum of the rows.
Frequently Asked Questions
Are my images uploaded anywhere?
No. The encoders run in your browser on your own device. Nothing is sent to a server.
Why did my WhatsApp photo hardly get smaller, or show as already optimized?
WhatsApp and most messaging and social apps already compress images. Recompressing a JPG re-encodes the artifacts from the first compression, so at a high quality the result can be bigger than the original. The tool then keeps your original. Try a lower quality, WebP, or a maximum width or height.
What does Auto quality do?
It tries qualities between 50 and 90 and keeps the lowest one whose result still scores above a set similarity threshold (SSIM) against your original. That gives the smallest file that measures as very close to the original.
Is compression lossless?
Only with PNG (lossless), which keeps every pixel exactly. JPG and WebP quality settings and PNG with up to 256 colors are lossy: they remove detail that is usually hard to see.
Should I choose JPG, WebP or PNG?
JPG for photos and screenshots that must open anywhere. WebP for the smallest files and transparency, where the receiving app supports it. PNG with up to 256 colors for logos, icons and simple graphics. PNG lossless when nothing may change.
What happens to transparent areas?
WebP and PNG keep them. JPG cannot store transparency, so transparent areas are filled with white.
Does compressing remove location data?
Yes. The new file is built from the pixels only, so EXIF metadata such as GPS location, camera details and the date taken is not included.
How are KB and MB counted?
In binary units, as Windows shows them: 1 KB = 1,024 bytes and 1 MB = 1,024 KB. The size shown for each file is the exact size of the file you download.