Image Compressor
Compress JPEG, PNG and WebP images online with a quality slider and optional resizing. See the size saved for each file. Images never leave your browser.
Something not working, or missing a feature? Send feedback
About the Image Compressor
The Image Compressor makes JPEG, PNG and WebP files smaller so pages load faster and uploads fit size limits. Choose a quality level and, optionally, a maximum width or height; each file shows its size before and after and how much you saved. Compression runs in your browser, so photos are never uploaded.
Images are processed in your browser with its built-in codecs, so your photos and screenshots are never uploaded.
How to use the Image Compressor
- Drop one or more images onto the box, paste them, or choose files.
- Keep the original format or switch to WebP, and set the quality (70–85 suits most photos).
- Optionally set a maximum width or height to shrink large photos.
- Download each file, or use Download all.
Common mistakes
- Compressing a huge photo instead of resizing it. A 4000-pixel-wide photo shown 800 pixels wide wastes most of its bytes. Set a maximum width close to the displayed size first; it saves far more than lowering quality.
- Compressing the same file repeatedly. Each lossy save loses a little more detail. Always start from the original image, not from an already compressed copy.
Works well with the Image Compressor
- Image Converter: switch to a more efficient format such as WebP.
- Image to Base64: inline a small, compressed icon as a data URI.
- Meta Tag Generator: add the optimised image as your Open Graph image.
Frequently asked questions
How much smaller will my images get?
Photos straight from a phone or camera often shrink by 60–90% at quality 75, especially when you also limit the width to what your page displays. Images that were already optimised may barely change; the tool then keeps the original.
Why did my PNG not get smaller?
PNG is lossless, so there is no quality setting to lower, and the browser re-encodes it without discarding detail. Convert it to WebP, which keeps transparency and is usually far smaller, or reduce its dimensions.
Does compression remove metadata?
Yes. Re-encoding drops EXIF data such as camera details and GPS location, which also protects your privacy. The image is rotated correctly before the orientation tag is removed.
Are my images uploaded?
No. Decoding and encoding use your browser's built-in image codecs on your device.
Related tools
Image Converter
Convert images online between PNG, JPEG and WebP, and turn SVG into PNG, with quality and size options. Convert several files at once in your browser.
Image to Base64
Convert images to Base64 online: get a data URI, raw Base64, an <img> tag or CSS background for PNG, JPEG, SVG, WebP or GIF. Files stay in your browser.
Base64 to Image
Decode a Base64 string or data URI to an image online: preview it, see its type, size and dimensions, and download it as PNG, JPEG, SVG, WebP or GIF.