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.

Original Converted

Drop images here

JPG, PNG, WebP, AVIF or GIF · as many as you like

Converted on this device. Nothing is uploaded.

Tip: you can also paste an image with Ctrl+V (⌘V on a Mac).

Compression

Compress by
75
KB

Tries several qualities and keeps the highest one under the limit. Files never come out larger than the original.

px

Fewer pixels is the most effective way to reach a small size.

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

    1. Add images by dropping them on the page or choosing them.
    2. 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.
    3. 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.
    4. 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.