Image Compressor
Shrink images to the exact file size you need, right in your browser.
runs entirely in your browserChanging a setting re-encodes the results below live. PNG stays lossless by design, so real savings on a PNG come from re-encoding it as JPG or WebP here.
When a file size limit is the whole problem
Most people compressing an image are trying to clear a specific bar: a form that rejects anything over its upload limit, an application portal asking for a photo under 100 KB, an email attachment that bounces, or a page that loads slowly because one hero image outweighs the rest of the site. The picture is fine. The number attached to it is the problem.
Quality sliders alone make you guess at that number. This tool has a target size mode for exactly that reason: type the size you need, like 100 KB, and it finds the quality setting that lands closest automatically. The original and compressed sizes are shown side by side, so you know exactly what you saved before you download anything.
What re-encoding in your browser actually does
The image is decoded and re-encoded on your own machine using the browser's built-in codecs. For JPG and WebP output you get a quality slider; lower quality means a smaller file with more visible artifacts, most noticeably in smooth gradients like skies. Because the file is rebuilt from raw pixels, EXIF metadata, including any GPS location a phone camera embedded, is stripped in the process. Nothing is uploaded at any point.
PNG deserves a straight answer: it is a lossless format, so there is no quality dial to turn. Real savings on a PNG come from re-encoding it as JPG or WebP, which this tool does, or from reducing its dimensions. If your file must stay a full-size PNG, compression will not work miracles on it, and this tool will not pretend otherwise.
fair questions
- Does my image get uploaded to a server?
- No. Decoding and re-encoding both happen inside your browser using its built-in codecs. The file never leaves your machine, and there is nothing on our end to store or log.
- How does the target size mode work?
- You type a size, like 100 KB, and the tool re-encodes the image at different quality settings until it finds the one that lands closest to your target. The final size is shown next to the original, so you see the exact result before downloading.
- Why did my PNG barely shrink?
- PNG is lossless, so there is no quality setting to lower. To get real savings from a PNG, re-encode it as JPG or WebP with this tool, or reduce its dimensions. If the file must remain a full-size PNG, large reductions are not honestly achievable here.
- Does compressing remove EXIF metadata?
- Yes. Re-encoding rebuilds the file from raw pixels, which drops EXIF data, including camera details and any GPS coordinates. That is a useful side effect if you are sharing photos, and worth knowing if you wanted to keep the metadata.
related tools
this site is built on Guardrails, the guard-railed boilerplate for shipping real products with AI agents.