Image Compressor

Compress supported images with quality, PNG colors and optional pixel reduction, then compare measured results.

On-device No sign-up Free to use

Compress controls

  1. 1 Add files
  2. 2 Arrange/Options
  3. 3 Download

Drop your images here

or choose them from your device

JPEG, PNG, WebP, AVIF, HEIC/HEIF, GIF, BMP, ICO, restricted SVG and supported TIFF. Animated images need first-frame consent. TIFF supports unsigned 8-bit grayscale/RGB, uncompressed or PackBits; BMP supports uncompressed 24/32-bit images.

    80
    ?

    50–100% for JPEG and WebP. PNG ignores this setting; use PNG colors instead.

    ?

    After quality or palette compression, try up to five smaller sizes. Stops at 64 pixels on the longest side. The result reports its actual dimensions and size.

    ?

    Animated GIF, PNG, WebP and AVIF are flattened to one still image only when this is checked.

    Advanced
    ?

    JPEG output only. Removes camera settings, location, extra document metadata and the saved color profile, and always hands back the newly encoded file even when the original was smaller. The saved print resolution is kept.

    ?

    0 keeps the quality setting. A target is best effort for JPEG and WebP: the tool lowers quality up to four times and reports the size it actually reached. PNG output ignores it and uses the PNG color count instead.

    ?

    Used when the output is PNG. Reducing colors can change colors and smooth shading and may reduce the file size. The dither option below adds a fine pattern that may reduce visible banding. "Smallest file" tries four counts and keeps the smallest, which is slower on large PNGs. Full color keeps the PNG lossless.

    ?

    PNG output with a reduced color count only. Adds a fine repeating pattern before reducing colors, which can make color steps less obvious. It does not change transparency itself, but reducing the colors can still change it. Compare the actual file size and appearance before using the result.

    ?

    Keep the original pixel dimensions. Turn this off to apply the maximum longest side below.

    ?

    0 keeps the original pixel size. Images are never enlarged.

    ?

    Blank includes every image. Use image numbers such as 1, 3-5. The same selection applies to each multipage file.

    Result

    Showing an example.

    Make a JPEG copy of a PNG photo and compare the measured file sizes.

    One JPEG at 320 by 240 pixels, named after the source image with -compressed added. The result reports the size before and after.

    Loading the tool. Your result will appear here.

    https://usefreetools.net/image-compressor · 20 November 2026

    Was this helpful?

    How to use Image Compressor

    1. Choose up to 20 JPEG, PNG or WebP images and an output format. The same settings apply to the batch.
    2. For JPEG or WebP, set Quality and optionally a Target size in KB. For PNG, use PNG colors; reduced palettes can change colors and transparency.
    3. To reduce dimensions, turn off No maximum pixel size and enter Maximum longest side. A value of 0 disables that size limit. Images are not enlarged.
    4. If JPEG metadata removal is needed, enable Remove camera and location data. Otherwise an unchanged smaller original can be returned with its metadata.
    5. Select Compress, compare the reported before/after sizes and inspect the download. Use Compare for a reduced before/after preview; refresh it after settings change.
    6. To allow smaller dimensions when a size target is still unmet, enable Reduce pixel dimensions. Review the dimensions and size that were actually produced.

    Example: Image Compressor

    Make a JPEG copy of a PNG photo and compare the measured file sizes.

    You add
    One 320 by 240 PNG photo, Quality 70, Output format JPEG.
    You get
    One JPEG at 320 by 240 pixels, named after the source image with -compressed added. The result reports the size before and after.

    Options

    Quality
    Used for JPEG and WebP output only, where it is lossy. PNG ignores it.
    PNG colors
    Its default of 256 colors requests lossy PNG palette reduction. Smaller palettes can alter gradients and transparency. Full color (lossless) avoids palette reduction of the browser-decoded pixels. The original may still be returned if it is smaller and no format/size change or forced fresh output applies.
    Output format
    Keep the original format retains each input’s format family, rather than promising unchanged file bytes. A fresh JPEG/WebP is lossy at the selected quality. An original can be returned when the re-encode is not smaller and no other requested change prevents that fallback.
    Maximum longest side (pixels)
    Turn off No maximum pixel size to enable this limit. A positive value reduces the longest edge when necessary; 0 keeps dimensions unchanged. There is no enlargement.
    When the original is kept
    If the new encode is not smaller and neither format nor dimensions changed, the original is normally returned under its original name. It can retain its metadata. A request for metadata removal prevents that fallback; JPEG output is freshly encoded and stripped of the listed containers.
    Before and after
    Choose any image in the batch to compare its source and compressed result. Press Compare after changing the settings, then use the reveal slider. This reduced screen preview helps you spot changes; check the complete exported file too.
    Target size
    Set a desired number of KB for JPEG or WebP output. The tool measures up to four additional quality attempts down to 50% and reports the file it delivers. PNG uses palette settings instead. An unchanged original may still be the smallest result.
    Remove camera and location data
    JPEG output can remove the EXIF/XMP, ICC and Photoshop/IPTC containers after encoding. Enabling this forces a new file rather than returning the original. It also removes color profiles, so review the colors.
    PNG dithering
    For a reduced PNG palette, this adds an ordered pattern to the red, green and blue values before color mapping. It may reduce visible banding and can change the file size. The pattern pass leaves alpha unchanged; palette mapping can still change colors or transparency. Compare the preview and complete download.
    Reduce pixel dimensions if the target is still unmet
    After the normal encode, try at most five smaller sizes until the target is met or the longest side reaches 64 pixels. This is optional and can change the pixel dimensions. A target remains best effort.

    Supported inputs and limits

    Batch sizeUp to 20 images per run
    Per image64 MiB each, 40 megapixels each
    Output formatJPEG and WebP lossy; PNG palettes up to 16 megapixels
    • Up to 20 selected images, 64 MiB per file, 128 MiB total and 40 megapixels per image.
    • JPEG, PNG, WebP, AVIF and HEIC/HEIF are accepted.
    • GIF is limited to 12 MiB, 100 frames and 16 megapixels across frames.
    • BMP supports uncompressed 24/32-bit Windows RGB up to 16 megapixels.
    • ICO uses its largest entry and supports PNG or uncompressed 24/32-bit DIB entries, up to 32 entries.
    More details

    SVG is limited to a restricted static subset, 256 KiB and 16 megapixels; external references, scripts, styles, images, filters and gradients are refused.

    TIFF supports classic 8-bit unsigned grayscale/RGB, uncompressed or PackBits, up to 20 pages and 16 megapixels combined.

    Animated inputs need explicit consent to use the first frame.

    TIFF/HEIF image numbers can be selected.

    Auto output keeps JPEG, PNG and WebP; other inputs become PNG.

    JPEG/WebP use lossy compression.

    Reduced PNG palettes can change colors and alpha and are limited to 16 megapixels.

    Size targets use 1 KB = 1,024 bytes.

    Quality search is bounded at four additional encodes.

    Optional dimension reduction tries at most five sizes and reports the best actual output; no exact size is guaranteed.

    A smaller original may be kept when neither pixels nor format changed.

    Requested metadata removal forces fresh JPEG output.

    Keep originals and inspect detail.

    Where your input is processed

    This tool does not upload your inputs. See the limits for anything saved on your device.

    Why a lossless PNG re-encode rarely shrinks a file

    PNG already compresses its samples losslessly, and different filtering/encoding choices can produce different byte counts from similar decoded pixels. Re-encoding alone need not make a file smaller. Reducing the palette can save space by mapping many colors to fewer entries, but can introduce banding or change transparency. The compressor compares measured bytes and can keep the original. Retain that source when fine gradients or exact file preservation matter.

    Questions about Image Compressor

    Why is my PNG the same size after compressing it?

    A full-color re-encode may be larger, so the tool can return the smaller original. Try a reduced PNG color count or enable a smaller maximum dimension, then compare the measured result and its gradients, text and transparent edges. No setting guarantees a reduction for every file.

    Should I choose JPEG or WebP?

    Both are lossy at the quality you set. Compare the outputs at your chosen settings. JPEG may work in older software that cannot open WebP.

    Does compressing remove the location data in my photo?

    Compression can return the original when it is smaller, carrying its original metadata. Enable Remove camera and location data for JPEG output to force a fresh result and strip the listed containers. You can inspect that result with the JPEG metadata tool.

    Why did my large PNG refuse to reduce colors?

    Palette reduction is limited to 16 megapixels of output. Turn off No maximum pixel size, then set Maximum longest side to 4000 pixels or less, or choose Full color to avoid palette reduction. Check the actual dimensions and result.

    Page updated · Project managed by Tony Hines · Report a problem with Image Compressor

    Related reading

    All guides