Image Compressor
Set image quality or a file-size limit, then check the actual encoded bytes before downloading. Your image stays in this browser.
1. Choose an image
Drop an image here
JPEG, PNG, WebP, or a still frame from GIF · up to 25 MB
You can also paste an image from your clipboard. Files are processed locally.
How image compression works
Pixel dimensions and file size measure different things. Halving width and height leaves one quarter as many pixels, but the encoded file size depends on image content and format. This tool checks the actual bytes it creates; it cannot guarantee every image will fit a requested limit.
How to compress an image
- Choose an image, drop it here, paste it from your clipboard, or load the built-in sample.
- Keep the source format or choose JPEG, PNG, or WebP. Set a quality or a maximum file size.
- Optionally resize the longest edge, then compress and review the measured output before downloading.
Questions
Should I resize by pixels or compress by file size?
Pixels control the image dimensions. File size is measured in bytes after encoding. Cutting both dimensions in half leaves one quarter as many pixels, but does not guarantee one quarter the file size.
Will the image always fit my file size limit?
No. The compressor checks actual encoded bytes and reports when the smallest tested result still exceeds your limit.
Why can’t I set a quality or byte limit for PNG?
PNG uses lossless encoding, so a quality slider cannot make the same kind of tradeoff as JPEG or WebP. A re-encoded PNG may even grow; choose JPEG or WebP, or resize it.
Are my images uploaded?
No. Image loading and compression happen in this browser. The page does not send image data to a server.