Image Compressor

Compress JPEG, PNG, WebP or HEIC/HEIF to a target in KB or MB. Images stay on your device. Keep their dimensions or choose a smaller maximum side.

On your device. Your input is not uploaded or saved.

HEIC/HEIF images become JPEG by default, with a white background for transparent areas. Choose PNG or WebP for another output format.

Compression settings

Compression mode

Balanced quality. Keeps your format and dimensions by default.

Output options

Keeps the aspect ratio and never enlarges images. When resizing, the smaller dimensions take priority over keeping the original file.

    Formats, privacy and limits

    JPEG and WebP use lossy quality settings. PNG is re-encoded losslessly and may not get smaller; choose WebP explicitly if a PNG cannot meet your target. Dimensions stay unchanged unless you choose a maximum side.

    Static JPEG, PNG, WebP and HEIC/HEIF are supported. For GIF, SVG, animated images or custom resizing, use Image Converter .

    Re-encoded images discard original metadata. Unchanged originals retain their metadata. Files and filenames are not sent to analytics. Nothing is uploaded or saved by this tool.

    Up to 24 megapixels per image and 32 MiB of results per batch. Files are processed one at a time. Browser encoding may finish its current operation before cancellation takes effect.

    Size targets use decimal units: 1 KB = 1,000 bytes; 1 MB = 1,000,000 bytes. Input limits use 25 MiB per file and 100 MiB per batch.

    Need a different format or smaller dimensions? Open Image Converter.

    How to compress an image to a specific size

    1. Choose or drop up to 20 JPG, PNG, WebP or HEIC/HEIF images.
    2. Pick a mode: Auto for balanced quality, Target size for a maximum file size, or Manual to set the quality yourself.
    3. For a target, type a size or pick a preset: 100 KB, 200 KB, 500 KB, 1 MB or 2 MB.
    4. Press Compress. Each result shows its new size and whether the target was met; open Compare previews to check the quality.
    5. Download each image or a ZIP. Names keep the original with a suffix, such as photo_optimized.jpg.

    Compress to 100 KB, 200 KB or any size

    To compress a JPEG to 100 KB for an online form, choose Target size and the 100 KB preset. The compressor encodes the image at several quality levels, measures the real file size each time and keeps the highest quality that fits, with up to 12 attempts per image. Units are decimal: 100 KB is 100,000 bytes.

    If no quality level fits, you get the smallest version, marked Target not met. Dimensions are kept by default, so a large photo may need a smaller Maximum side, such as 1600 px, to reach a small target.

    Modes and formats

    Auto keeps the format and dimensions and saves JPEG at 82% quality and WebP at 80%. Manual applies your quality from 1 to 100%. PNG is always saved losslessly, so it shrinks less and often cannot reach small targets; choose WebP or JPEG for those.

    HEIC and HEIF photos become JPEG by default; choose PNG or WebP for another output. Choosing JPEG for a PNG or WebP fills transparent areas with the background color, white by default.

    While you keep the format, Keep original if it is smaller is on: if re-encoding would make an image bigger, you get the untouched original, marked Original kept. Re-encoded images discard the original metadata, such as camera details and location; an unchanged original keeps it.

    Limits

    Up to 20 images, 25 MB each and 100 MB in total, each up to 24 megapixels. Results can total 32 MiB per batch. Images are processed one at a time. GIF, SVG and animated images are not accepted; use Image Converter for those.

    Where do my files go?

    Images are compressed in your browser and are not uploaded or saved by this tool. They are never included in analytics events.

    Like the rest of the site, this page uses Google Analytics and Yandex Metrica, including Metrica session replay. Tool events report only that the tool was opened or used.

    Also useful