JPEG is lossy, so each save at a lower quality gives a smaller file and a little less detail. This page opens with JPEG output and quality set to 75%, a starting point many photos tolerate; move the slider to trade size against clarity. The saving for each file is shown, and files that would grow are flagged.
Runs in your browser
Free, no sign-up. Decoding, resizing and re-encoding happen in your browser on a canvas. The images are not uploaded; the tool only records anonymous actions such as 'compress' or 'download', never file names or sizes.
Upload images above to start compressing
Set a size in KB (1 KB = 1,000 bytes) and the tool searches for the best quality that fits under it.
Sample data
A generated 3000 x 2000 test photo (JPEG, 2,386,343 bytes).
1,093,686 bytes, 3000 x 2000 px JPEG.
Measured in this tool on a generated, deliberately noisy test photo, which is harder to compress than most real pictures. Your final size and dimensions will differ.
The browser decodes each image onto a canvas at the target size and encodes it again in the format you chose. Smaller pixel dimensions and a lower quality value both reduce the file size; resizing usually saves far more than quality alone.
Quality applies to JPEG and WebP output. PNG is lossless, so the quality slider does not change a PNG: to shrink a PNG, reduce its dimensions or switch the output to WebP or JPEG.
saved % = (original size - compressed size) / original size x 100
JPEG suits photographs. WebP is usually smaller than JPEG at similar quality and supports transparency, but very old software may not open it. PNG suits screenshots, logos and anything that needs exact pixels or transparency.
Because the image is redrawn on a canvas, transparent areas become black if you save as JPEG, which has no transparency. Pick PNG or WebP to keep transparency.
Re-encoding keeps only pixel data. Camera EXIF data such as GPS location, device model and timestamps is not carried over, which is useful before publishing a photo but means you cannot recover it from the compressed copy.
Animated GIFs lose their animation: only the first frame is processed. SVG files are rejected on purpose because they can contain scripts.
The tool does not keep the original when the new file is larger. An already well-optimised JPEG saved at 100% quality, or a WebP converted to PNG, can grow. If Saved shows no gain, lower the quality, reduce the dimensions or keep your original.
Start at 75 to 80 for photos. Go lower for thumbnails, higher if you will zoom or print. Compare the preview, not the number.
Each re-encode loses a little detail, so compress from the best original you have rather than repeatedly from the result.
A JPG that was already heavily optimised can grow when re-encoded at a higher quality than it had. Lower the quality or keep the original.
Yes. Only pixels are kept, so location, camera and timestamp data are dropped.
We build calculators, converters and processing steps like this one directly into your web or mobile product, with your rules and branding.