jpeg · webp · avif
Image compressor
Shrink photos at a quality you choose, or name a file size (say, 200 KB for an upload form) and let the compressor find the best quality that fits.
Runs in this tab. Nothing is uploaded.
Drop images here
JPG, PNG, WebP, AVIF or GIF · as many as you like
Converted on this device. Nothing is uploaded.
Your images
Nothing yet. Converted files show up here with their savings.
Drop images on the page, or use “Choose images” above.
How to compress images
- Add images by dropping them on the page or choosing them.
- Pick a format. “Same as original” re-encodes JPEGs as JPEG (with MozJPEG), WebP as WebP and AVIF as AVIF. PNG and GIF become WebP, which keeps transparency at a fraction of the size.
- Choose quality or a target size. With a target, each file is encoded several times and the highest quality that fits is kept. The list shows the quality it settled on.
- Compare and download. Zoom the comparison to 100% to check faces, text and skies, then download files or a ZIP.
Getting good results
Recompressing a JPEG that is already heavily compressed saves little and can look worse. If a file comes out larger than the original, keep the original. Switching the format to WebP or AVIF often saves far more than lowering the quality. When a target size can’t be reached even at the lowest quality, the smallest result is kept and marked, and a smaller max width will help.
Questions
How does the target file size work?
The compressor encodes the image at a first guess, then narrows in on the highest quality whose file is no larger than your target, using the sizes it has already seen to make each next guess. Large photos get their first guess from a quick search on a small copy. It stops within about 3% of the target or after 8 full-size attempts (6 for AVIF, which is slower), and it never aims above the original file’s size.
Why is my compressed file bigger than the original?
The original was already compressed harder than your settings. Lower the quality, switch to WebP or AVIF, or keep the original file.
Is there a file size or count limit?
There is no fixed limit. Very large photos (above roughly 50 megapixels) can run out of memory on phones; set a max width or height for those.
Does compression remove EXIF data?
Yes. The compressed files contain only the image. Camera details, dates and GPS location are not copied, and photos are rotated upright first.
Are my images uploaded?
No. All encoding happens in this browser tab with WebAssembly builds of MozJPEG, libwebp and libavif.
More image tools
- Convert to AVIFBatch JPG, PNG, WebP and GIF to AVIF with quality, effort, chroma and lossless controls.
- AVIF to JPGTurn AVIF pictures into JPEGs that every app and website accepts, encoded with MozJPEG.
- AVIF to PNGLossless PNG copies of AVIF images for editing, with transparency kept.
- WebP ConverterConvert JPG, PNG and GIF to WebP, or WebP back to PNG, JPEG or AVIF.
- Image CompressorShrink JPEG, WebP or AVIF by quality, or let it search for a target file size.
- Image ResizerBatch resize to fit, fill and crop, an exact size or a percentage, with sharp Lanczos downscaling.
- EXIF RemoverSee the GPS position, camera and dates in a photo, then strip them without re-encoding.
- AVIF Support CheckerTest AVIF, WebP and JPEG XL decoding in this browser and generate a <picture> fallback.