Image Compressor: Shrink PNG, JPG and WebP Files
Shrink PNG files by reducing their colours, and JPEG and WebP files with a quality slider. One image or a whole batch, all in your browser.
- PNG, JPG and WebP
- PNG stays PNG
- Batch ZIP
- No upload
1Add images
Click to choose one or more images, or drag them here. No limit on file count or size.
2Choose how much to compress
Your compressed pictures appear here, with the file size before and after.
About Image Compressor
Image Compressor makes PNG, JPEG and WebP files smaller. JPEG and WebP are re-saved at a Quality value from 10 to 100 percent. A PNG kept as PNG is rebuilt with a palette of at most 256 colours, or fewer if you choose, so it stays a PNG and keeps its transparency. You can also switch the Output format to JPEG or WebP. A single image gets a before-and-after preview with file sizes, while several images are processed in turn and packed into one ZIP.
People reach for it when an online form rejects a photo as too large, when a phone gallery is running out of room, or before attaching pictures to an email or sending them on WhatsApp. It also suits product photos for a Daraz or OLX style listing, and logos or screenshots for a website, where PNG files are often far bigger than they need to be.
Only the file size changes. The pixel width and height stay exactly as they were, and camera details such as GPS location are not copied into the new file. The work happens on your own device, so large batches depend on its memory.
How to use Image Compressor
- Click the drop area to choose one or more images, or drag them onto it.
- Pick an Output format: Keep original, JPEG or WebP.
- For JPEG and WebP, move the Quality slider. The default of 80% is a reasonable starting point; lower values give smaller files with more visible blockiness.
- For PNG files kept as PNG, choose the Colours: 256 looks closest to the original, and fewer colours give a smaller file.
- Click Compress. One image shows Original and Compressed previews with dimensions and sizes, and a batch lists each file's size before and after.
- Click Download for a single image, or Download All (.zip) for a batch. If a file is still too large, change the setting and click Compress again.
Lossy vs lossless compression
What is image compression?
Image compression stores the same picture with less data, so the file takes up less space and loads faster. There are two kinds, and every image format uses one of them.
Lossy compression
Throws away detail your eye is unlikely to miss, such as tiny colour shifts and fine texture. Files get much smaller, but the removed detail can't be brought back. JPEG works this way, and so does WebP as this tool saves it.
Lossless compression
Keeps every pixel exactly and only packs the data more tightly, much like a ZIP file. Nothing is lost, so the saving is smaller. PNG is lossless.
How does image compression work?
A lossy format splits the picture into small blocks and keeps their broad shapes and colours while rounding off the finest detail; the Quality slider decides how much is rounded off. A lossless format looks for repeated patterns instead, which is why a screenshot with large flat areas packs far better as PNG than a photo does.
How to make a JPEG file smaller
JPEG is lossy, so the way to reduce the file size of a JPG is to save it at a lower quality.
- Add your JPG photos above and keep Output format on Keep original.
- Set Quality between 70% and 85% for photos you'll share or upload, and click Compress.
- Compare the Original and Compressed previews and their sizes. Still too big? Lower the slider and compress again.
Start from the original photo, not from a copy that was already compressed: each time a JPEG is saved again at lower quality, a little more detail is lost. For the biggest saving, make the picture smaller in pixels first with the Image Resizer.
Compress PNG without losing transparency
PNG is lossless, so a quality setting can't make it smaller. This PNG compressor reduces the number of colours instead: a PNG that can hold up to 16 million colours is rebuilt with a palette of at most 256, so each pixel needs one byte instead of up to four before the file is packed. Transparent areas stay transparent, and the result is still a PNG.
- Add your PNG files above and keep Output format on Keep original.
- Pick the number of Colours for PNG files. 256 looks closest to the original; 64 or 32 suits icons and simple graphics.
- Click Compress and check the size and the number of colours shown under the result.
When nothing changes
If a PNG already has no more colours than you allow, which is common for logos, icons and many screenshots, it's saved with exactly the same pixels, only packed again. The result then says "same pixels".
Photos saved as PNG
A photo has many thousands of colours, and with 256 its smooth areas can show bands. For photos, WebP or JPEG gives a much smaller file: choose one under Output format, or use PNG to WebP to keep transparency.
How to reduce an image file size
With this tool
Lower the quality of JPEG and WebP files, reduce the colours of PNG files, or switch the output format. Nothing is uploaded, and a batch downloads as one ZIP.
On Windows
Open the picture in Paint, press Ctrl+W to resize it to fewer pixels, then save it as JPEG.
On a Mac
Open the picture in Preview, choose File > Export, pick JPEG and move the Quality slider to the left before you save.
For email
Gmail accepts attachments up to 25 MB in total, and smaller pictures send and open faster. Compress them here before you attach them.
A form with a strict limit, such as 50 KB? Reduce Image Size in KB finds the quality for you, and shrinks the pixels only when it has to.
Tips for best results
- A photo saved as PNG can show bands when it is reduced to 256 colours. For photos, switch Output format to WebP or JPEG instead, but remember that JPEG cannot store transparency, so transparent areas become white.
- Compression never reduces pixel dimensions. When a form has a strict limit such as 50 KB, use Reduce Image Size in KB, which also shrinks the pixels when it has to.
- Compare the sizes. An already well-compressed file can come out larger than the original; the status then says so, and you are better off keeping your original.
- With Keep original, formats other than PNG, JPEG and WebP (GIF or BMP, for example) are saved as JPEG, and an animated GIF keeps only its first frame.
- The tool sets no file count or size cap, but hundreds of large photos will use a lot of memory. On a phone, work through them in smaller groups.
Frequently asked questions
Is my image uploaded to a server?
No, compression happens locally in your browser, so the image never leaves your device.
Which formats can I compress?
PNG, JPEG and WebP. JPEG and WebP get smaller with the quality slider; a PNG kept as PNG gets smaller by using fewer colours. You can also switch the output to JPEG or WebP. If your browser cannot save WebP, the tool tells you instead of saving a different format under a .webp name.
How do I compress a PNG?
Add the PNG, keep Output format on Keep original, pick the number of colours (256 looks closest to the original) and click Compress. The result is still a PNG, with its transparency.
How do I reduce PNG file size without losing quality?
Keep 256 colours. If the PNG has 256 colours or fewer, as most logos, icons and many screenshots do, it's saved with exactly the same pixels. If it has more, the closest 256 are used, which is hard to see on graphics but can show bands on photos.
Why did my PNG get bigger, or barely smaller?
It was probably already saved with few colours and packed well. The tool shows both sizes and says so when the new file isn't smaller; keep your original then, or try fewer colours.
What quality setting should I choose for JPEG and WebP?
Start at the default 80% and compare the Original and Compressed previews, which appear when you load a single image. If it looks fine, try a lower value; if you notice blocky patches around edges or text, go higher.
Is there a limit on file count or size?
There is no daily task cap and the tool sets no file-size limit. The real limit is your device's memory, so for very large batches work in smaller groups. Download the results as a ZIP.
Does compressing change the width and height of my image?
No, the dimensions stay the same and only the colours or the encoding quality change. Use the Image Resizer when you need fewer pixels.
Will my compressed photo still contain its location data?
No. The image is redrawn and saved again, so EXIF details such as GPS location, camera model and date are not copied into the new file.