How to use Image Compressor
- Choose up to 20 JPEG, PNG or WebP images and an output format. The same settings apply to the batch.
- 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.
- 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.
- If JPEG metadata removal is needed, enable Remove camera and location data. Otherwise an unchanged smaller original can be returned with its metadata.
- 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.
- 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.
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
- 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.
Sources
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.