Image Compressor
Upload a PNG, JPEG, or WebP image, choose a quality level, and download a smaller file — with the before/after size shown.
Overview
This tool re-encodes an image at a lower quality setting to reduce its file size, keeping the original format. It runs server-side using a dedicated image-processing library rather than a browser's Canvas API, which matters most for PNG: Canvas has no real compression control for PNG output at all, while a proper encoder can meaningfully shrink a PNG through palette reduction and better deflate compression. JPEG and WebP also compress somewhat better server-side than through `canvas.toDataURL()`'s quality parameter.
The output stays in the same format as the input — a PNG in produces a smaller PNG out, a JPEG produces a smaller JPEG, and so on. If you also want to change the format, use Image Converter, HEIC Converter, or AVIF Converter first, then compress the result here.
Examples
Compressing a PNG screenshot
screenshot.png (2.1 MB)
compressed-screenshot.png (~600 KB, same dimensions)
How It Works
- Choose a PNG, JPEG, or WebP file from your device.
- Adjust the quality slider — lower means a smaller file at the cost of some detail.
- Click Compress. The file is uploaded, recompressed on the server, and the result is returned.
- Check the before/after file size shown, then click Download to save the compressed image.
Use Cases
Reducing page weight without changing format
Shrink existing PNG/JPEG/WebP assets for a website without introducing a new file format your CMS or CDN doesn't already handle.
Fitting an attachment size limit
Compress a large photo before emailing it or uploading it somewhere with a strict file size cap.
Tips
- For PNG screenshots and graphics, compression gains are usually larger than for photos, since PNG palette reduction works especially well on images with few distinct colors.
- Start around 70-80% quality for photos — it's usually a good balance before compression artifacts become visible.
- If you need the smallest possible file and don't need to keep the original format, try converting to WebP or AVIF instead of just compressing.
FAQ
Yes. This tool uses a real image-compression library for better results than a browser can produce on its own, so the file is uploaded, processed in memory, and the result returned — nothing is stored.
No. Only the compression level changes — width and height stay the same. Use Resize Image if you also want to change dimensions.
Image Converter uses the browser's Canvas API, which has no real quality control for PNG output at all. This tool uses a dedicated server-side encoder that can meaningfully reduce PNG file size.
Yes, 15MB per file.