Browser tool
Image Compressor
Shrink JPG, PNG, and WebP files without sending them anywhere. Choose a quality level for JPEG and WebP, a target size, or PNG palette quantization, then compare the before and after. If compression would make a file larger, you get the original back.
Choose images to compress
JPG, PNG, or WebP. Select several files at once for a batch.
or drag and drop files here
Animated WebP and APNG are skipped: only the first frame would survive.
No files selected.
Results
Lower value, smaller file.
Aim for this size or smaller.
PNG is lossless, so there is no quality level. Auto tries a 256-color palette for screenshots and icons; photo-like images skip it.
Available after compression.
Quality applies to JPEG and WebP.
A result is only offered when it is smaller than the original. Otherwise the original is kept and the row says why.
What the quality setting does
JPEG and WebP are re-encoded lossily, so the quality slider changes both quality and file size. PNG is lossless and has no quality level, so the slider is hidden for PNG-only batches. PNG uses the PNG handling setting instead: a 256-color palette for screenshots and icons, or a lossless re-encode for photos.
What target size can and cannot do
For JPEG and WebP, the tool tries several quality levels and keeps the smallest result at or below your target. If the target is not reachable, the row says so. PNG cannot be driven to a target size. No result is ever larger than the original: if nothing is smaller, the original is kept.
PNG: palette or lossless
Screenshots and icons usually quantize well to 256 colors. Photos usually do not, so the tool detects photo-like images and skips the palette. A palette result is lossy and can band gradients. Lossless mode never reduces colors, and often cannot beat an already-optimized PNG; in that case the original is kept.
Formats, animation, and color
Only JPG, PNG, and WebP are accepted; GIF, AVIF, and HEIC are not. Animated WebP and APNG are rejected because only the first frame would survive. Lossless WebP is kept unchanged, because the browser cannot write it losslessly. Images are never resized. Re-encoding converts colors to sRGB, so wide-gamut colors can shift; EXIF and GPS are dropped, and transparency is preserved for PNG and WebP.
Related tools
The next step in the same task — and still nothing leaves this browser.