Compress image
Shrink JPEG, PNG and WebP files and see exactly how much space you save, without uploading anything.
Your files never leave your device
Drop images here
PNG, JPEG, WebP, GIF, BMP or AVIF. Or drag them anywhere on this page.
Opened on this device. Nothing is uploaded.
Applies to JPEG and WebP output. JPEG has no transparency, so transparent areas turn white.
Lossy. Best for logos, screenshots and flat art.
Up to 50 images per batch, 50 MB each, about 100 megapixels each. PNG, JPEG, WebP, GIF, BMP and AVIF (where your browser can open them).
How to compress an image
- Choose your images, or drag them onto the page.
- Pick an output format and a quality. For PNG, you can also reduce the number of colours.
- Press Compress, check the sizes, then download the files or a .zip.
How image compression works here
Most of an image file's size is pixel data. JPEG and WebP shrink it by discarding detail the eye is least likely to miss; the quality setting decides how much is discarded. PNG is lossless, so its size depends on how predictable the pixels are. Reducing a PNG to a palette of at most 256 colours makes the data far simpler to compress, at the cost of exact colour.
This tool decodes each image with your browser, draws it to a canvas and saves it again, using your browser's own JPEG and WebP encoders. For palette PNGs it picks the colours with the open-source UPNG.js quantiser and writes the PNG file itself. If the result is not smaller than the file you gave it, you get your original back.
Tips
- Large photos shrink most when you also reduce their dimensions: try Resize image first, then compress.
- Need a different format? Convert image handles PNG, JPEG and WebP.
- To strip location and camera details without recompressing, use Remove EXIF.
Questions
Are my images uploaded?
No. Compression runs in your browser: the image is decoded, redrawn and saved again on your device. Nothing is sent to a server.
Which quality should I pick?
For photos, 70 to 85 usually gives a clearly smaller file that looks the same at normal viewing size. Lower values save more space but show blockiness around edges and in smooth skies. For a single image the page shows the centre of the original and the result side by side at 100%, so you can judge it.
What does "Reduce colours" do?
It rewrites a PNG with a palette of 256, 128, 64 or 32 colours instead of millions. Logos, screenshots and flat illustrations often shrink a lot with no visible change. Photos and smooth gradients can show banding, so check the preview. It is lossy and applies only when the output is PNG.
Why did a file say "already optimised"?
If the re-saved version would not be smaller than your original, the tool keeps your original file untouched instead of giving you something bigger.
Is metadata kept?
No. The image is re-encoded, so EXIF data such as camera details and GPS location is not carried over, and any colour profile is not embedded. The picture is saved in the orientation it displays in. To remove metadata without re-encoding, use Remove EXIF.
What happens to GIF, BMP and AVIF files?
With "Keep" they are saved as PNG (a GIF becomes its first frame). If that is not smaller, your original is kept. You can also choose JPEG or WebP as the output.