Image Compressor

Make JPG, PNG, WebP, and AVIF files smaller by choosing how much quality to give up for size. Compress up to 20 images at once and compare each result with the original before you download it.

Updated
Your files are processed in your browser and never uploaded.

Your images

JPG, PNG, WebP, AVIF, GIF, BMP. Up to 20 images, 50 MB each. Ctrl+V pastes.

    Settings

    Save as
    75
    More options
    Limit the size (optional)

    Preview

    Your preview will appear here
    1. Choose or drop images on the left
    2. Pick a format and quality
    3. Compare, then download

    How to use the Image Compressor

    1. Add your images: choose them, drop them on the box, or paste a screenshot with Ctrl+V. You can add up to 20 at a time, 50 MB each.
    2. Set the Quality. 75 is a good start for photos. Lower numbers give smaller files with more visible blur and blocks.
    3. Pick another format under Save as if you like. WebP and AVIF are usually much smaller than JPG at the same quality.
    4. Enter a Max width or Max height if the images are bigger than they will ever be shown. Scaling down saves more than any quality setting.
    5. Drag the divider on the preview to compare, then download each image or press Download all (ZIP).

    How it works

    Each image is decoded to pixels and saved again at the quality you chose. JPG, WebP, and AVIF are lossy formats: they drop the detail your eye is least likely to miss, and the quality number decides how much goes.

    • JPG files are written with MozJPEG, which makes smaller files than the encoder built into browsers at the same quality.
    • WebP uses libwebp and AVIF uses libaom, both compiled to WebAssembly, so the result is the same in every browser.
    • PNG is lossless, so the slider does not apply. The file is recompressed, and Reduce to 256 colors turns it into a palette image, which suits logos, charts, and screenshots.
    • If the new file would be bigger than the original and the format stays the same, the original is kept (with its metadata removed if that box is ticked).
    • Photos are turned upright from their EXIF rotation tag first, and the color profile is copied, so colors don't shift.

    Examples

    Results for the sample photo (1600 × 1067 px, a 163 KB JPG):

    • JPG at quality 75: 63 KB, 61% smaller.
    • JPG at quality 60: 46.1 KB.
    • WebP at quality 75: 40 KB, about a third smaller than the JPG at the same setting.
    • AVIF at quality 50: 17.3 KB, about a tenth of the original size.

    Numbers vary with the picture. Busy detail such as grass or gravel compresses less than sky or smooth walls.

    Which quality setting should I use?

    QualityGood forWhat you will see
    85 to 95Photos you may edit or print laterNo visible change
    70 to 85Photos on websites and in emailHard to tell apart from the original
    50 to 70Thumbnails and previewsSome softness in fine detail
    Below 50Only when size matters mostBlocky edges and bands in smooth areas

    AVIF holds up better at low numbers than JPG, so AVIF at 50 often looks like JPG at 75.

    Limitations

    • Animated GIF and WebP files keep only their first frame.
    • Lossy compression can't be undone. Keep your originals.
    • AVIF encoding is slow: a large photo can take a few seconds.
    • HEIC photos from iPhones open only in Safari. In other browsers, export them as JPG first.
    • Each image can be up to 50 MB and 50 megapixels.

    Frequently asked questions

    Does compressing an image reduce its quality?

    JPG, WebP, and AVIF compression removes some detail. At quality 70 to 85 most people can't see the difference at normal viewing size. PNG compression here is lossless unless you tick Reduce to 256 colors.

    Are my images uploaded to a server?

    No. The images are compressed in your browser by encoders compiled to WebAssembly. Nothing is sent anywhere.

    Why didn't my image get smaller?

    It was probably saved at a low quality already, or it is a PNG that is already well packed. When the result would be bigger, the original is kept. Try WebP or AVIF, a lower quality, or a max width.

    What is the best format for small images on a website?

    AVIF gives the smallest files, then WebP. Every current version of Chrome, Edge, Firefox, and Safari shows both. Keep JPG for places that need very old software to open the file.

    Often used together with the Image Compressor.

    • Image Resizer

      Resizes images to exact pixels or a percentage, one at a time or in batches.

    • Image to WebP

      Converts JPG, PNG, GIF, and other images to WebP without visible quality loss.