Re-encoding through the browser's canvas always drops metadata, and photos are turned upright first. Max width and height only ever shrink an image. Quality applies to JPEG and WebP.
PNG is re-encoded losslessly by the canvas, so it rarely gets smaller (dedicated tools like oxipng do better). For photos, pick JPEG or WebP; for screenshots with transparency, WebP.
| File | Before | After | Download |
|---|---|---|---|
| Already optimized |
…
|
Already optimized: the compressed version came out larger than the original, so the original file is kept unchanged (including any metadata).
About the Image Compressor
This tool makes JPEG, PNG and WebP files smaller by re-encoding them in your browser with the Canvas API, optionally scaling them down first. Add as many images as you like: each shows its size before and after and the percentage saved. Nothing is uploaded.
Re-encoding also strips metadata (Exif, GPS, XMP), and phone photos are turned upright before saving. If a compressed file comes out larger than the original, the tool keeps the original and marks it Already optimized.
How to use it
- Drop images on the page, paste them, or click to choose several files.
- Pick an output format: keep the original one, or convert to JPEG or WebP.
- Move the Quality slider. Around 75 to 85 is a good balance for photos.
- Optionally set a Max width or Max height. Images are only ever scaled down.
- Click a row to compare the original and the result with the slider or side by side. Tick Actual size to inspect detail.
- Download a single file or Download all (.zip).
Examples
Typical settings and what to expect:
Phone photo, 4032 × 3024 JPEG WebP, quality 75, max width 1920 often 85-95% smaller
Blog hero image JPEG, quality 80, max width 1600
Screenshot with transparency WebP, quality 90 (keeps the alpha channel)
Common questions
Why doesn't PNG get smaller?
The canvas writes PNG losslessly with standard settings, so a PNG that was already optimized rarely shrinks. Convert photos to JPEG or WebP, or use a dedicated optimizer such as oxipng for PNG.
Should I use WebP?
Every current browser displays WebP, and it is usually 25 to 35 percent smaller than JPEG at the same quality. Keep JPEG when files go to email or older software.
Related tools
- Image Resizer & Converter: exact dimensions, crops and presets.
- EXIF Viewer & Metadata Remover: strip metadata without re-encoding.
- Favicon & App Icon Generator: icons for every platform.