Compress and compare an image
Choose a PNG, JPEG, or WebP file, select an output format, and press Compress image. The page shows the source preview, its file size, the newly encoded preview, the output dimensions, and whether the output is smaller or larger. Use the download link only after checking the actual result; re-encoding can make a file larger.
Set maximum width and height if you want fewer pixels. The image fits inside both limits without stretching or upscaling. For example, a 1600 × 1200 image with maximums of 800 × 800 becomes 800 × 600 pixels. Leaving the original dimensions keeps the same decoded pixel size.
Quality, transparency, and limits
The quality control requests 40% to 95% for JPEG and WebP; browsers choose the actual encoding. PNG output ignores the quality control, so reducing its dimensions or changing format may be needed for a smaller file. JPEG has no transparency and transparent pixels are painted white. PNG and supported WebP output can retain transparent pixels, but inspect the preview before using it.
The selected file must be no larger than 20 MiB and decode to no more than 16 megapixels. A damaged file, unsupported browser decoder or encoder, or failed canvas export shows an error. Canvas export creates a new file and does not promise to keep EXIF data, color profiles, animation, or exact image quality. The processing runs in this browser tab without uploading the image to a Learnvaro application backend.
Image Compressor FAQs
Which image formats can I use?
The tool accepts PNG, JPEG, and WebP files and offers those three output formats where the browser supports decoding and export.
Will the result always be smaller?
No. PNG re-encoding or a high quality setting may produce a larger file. The page compares the actual byte sizes and says when the output is larger.
How do maximum dimensions work?
The image fits within both maximums while keeping its aspect ratio. It is not enlarged if the maximums exceed the original dimensions.
What happens to transparency?
JPEG output uses a white background. PNG and browser-supported WebP can encode transparency, but the output should be reviewed.
Does compression preserve metadata or animation?
No preservation is promised. The browser decodes and re-encodes an image; keep the original if metadata, color profiles, or animation matter.