Image Compressor

Make JPG, PNG, WebP, and AVIF files smaller by choosing how much quality to give up for size. iPhone HEIC photos work too and come out as JPG, WebP, or AVIF. Compress up to 20 images at once and compare each result with the original before you download it.

Your files are processed in your browser and never uploaded.

Your images

JPG, PNG, WebP, AVIF, HEIC, GIF, BMP. Up to 20 images, 50 MB each (HEIC up to 30 MB). 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. Set quality, or colors for a PNG
    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, or 30 MB for an iPhone HEIC photo.
    2. For a JPG, WebP, or AVIF, set the Quality. 75 is a good start for photos. Lower numbers give smaller files with more visible blur and blocks.
    3. For a PNG, set Colors. 256 is a good start and is usually much smaller. Fewer colors shrink it more. Smooth gradients can show bands.
    4. Pick another format under Save as if you like. WebP and AVIF are usually much smaller than JPG at the same quality.
    5. 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.
    6. 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 setting 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.
    • A PNG is saved with fewer colors. 256 colors is the default, and it suits logos, screenshots, and most graphics. Lower the number for a smaller file. Keep all colors under More options stores every pixel and barely shrinks the file.
    • HEIC photos from iPhones are decoded with libheif. With Save as left on Original they become JPG, because this tool can't write HEIC. Pick WebP or AVIF for a smaller file.
    • 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 laterFine detail can still change; compare with the original
    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.
    • PNG color reduction can band smooth gradients. Raise Colors, or turn on Keep all colors, if you see bands.
    • AVIF encoding is slow: a large photo can take a few seconds.
    • HEIC files can be up to 30 MB each and are saved as JPG, WebP, or AVIF.
    • Each image can be up to 50 MB and 50 megapixels.

    Read the guide

    Compress images before they go on a page

    Resize a photo to the width it is shown, save WebP where the page can use it, and compress with a quality you can compare before you replace the original.

    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. A PNG is reduced to the number of colors you set, 256 by default. Raise Colors if a gradient looks banded, or turn on Keep all colors for an exact copy.

    Are my images uploaded to a server?

    Chosen local files are compressed in your browser by WebAssembly encoders. If you use Load From URL, the browser tries the address directly and may use our server as a fallback. See the privacy policy for that route.

    Why didn't my image get smaller?

    It was probably saved at a low quality already. A PNG only stays large when Keep all colors is on, because that path is lossless. Lower Colors, or save as WebP. When the result would be bigger, the original is kept.

    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.

    Can I compress HEIC photos from an iPhone?

    Yes, in any current browser. HEIC is already a compact format, so a JPG can come out the same size as the original or bigger. AVIF usually gives the smallest file, and the result list shows the size of every file before you download it.

    Often used together with 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.