Compress Image
Compare file sizes and keep the same pixel dimensions.
Free to use · No account needed · Files stay on your device
File and settings
Open in the Free Tools workspace
About Compress Image
This compressor keeps the width and height fixed, which is useful when a form specifies both a pixel size and a file-size ceiling. Re-encode the image, inspect the details you need to keep and compare the actual sizes.
How to use this tool
- Choose one still PNG, JPG or WebP.
- Select Compress image for WebP, or open Format and quality to change the output first.
- Compare both previews and file sizes before downloading.
Formats, options and limits
- Input
- One still PNG, JPG or WebP up to 20 MB. Images must be at most 16 megapixels and 8,192 pixels on the longest side.
- Formats
- Save as WebP when available, JPG or PNG. JPG fills transparent areas with white. WebP and PNG can retain transparency.
- Quality
- For WebP and JPG, choose 40–100. The initial setting is 82. PNG has no quality control.
- Comparison
- Original and Result each show a preview and file size. If the new copy is at least as large, Keep original downloads the source file.
Keep the pixel dimensions a form expects
A photo upload can have two requirements, such as a 1,200-pixel-wide image and a maximum number of kilobytes. If the width is already correct, reducing it would solve one problem by creating another. This compressor keeps both pixel dimensions and changes the encoding. Run it on the image you intend to submit, compare the original and result sizes shown beside their previews, and use the destination’s byte ceiling to decide whether the copy fits.
For an image that is also too wide or tall, set its dimensions first in Resize Image. Save that copy before comparing different encodings. This gives you a consistent picture to evaluate and avoids spending time fine-tuning quality at a size you will discard.
Pick a setting using the hardest detail
Start with a detail that matters to the recipient. In a product photo it might be the stitching or small lettering on a label. In a report screenshot it might be a decimal point or a faint grid line. Examine that detail after compression. A large percentage reduction is a poor trade if two numbers that used to be distinguishable now look alike.
WebP and JPG accept a quality setting from 40 to 100, starting at 82. The value expresses an encoder preference. A setting of 75 does not mean a 25 percent reduction. PNG offers no quality slider. Try PNG or WebP for artwork that needs transparent regions and JPG when a white background suits the destination.
Read the comparison even when the file grows
Photographs, solid-color graphics and screenshots have different patterns of detail. Two files at the same dimensions and output quality can have different byte counts. The supplied 960 × 640 report gives a reproducible comparison. At WebP quality 75, the example download was 54.0 percent smaller than its PNG source and retained the same dimensions. Try the settings on the provided source before deciding what your own image can tolerate.
A source that has already been optimized may grow on another export. If the result is at least as large, Keep original downloads the original bytes. That can be the right attachment when it already meets the recipient’s format and size requirements.
Check the source limits independently
Select a single still PNG, JPG or WebP. Both the 20 MB file limit and the decoded pixel limits apply. A highly compressible picture can be a small download yet expand into a very large image. The limits are 16 megapixels in total and 8,192 pixels along the longest edge. Animated PNG and WebP inputs are rejected. If you need just one illustration from an animation, select the frame separately and export it as a still image before using the compressor.
Try a checked example
Choose WebP, set Quality to 75, and select Compress image.
A 960 × 640 WebP that is 54.0% smaller for this sample.
Frequently asked questions
Will compression change my image’s width or height?
The output keeps the original pixel dimensions. To shrink a 4,000-pixel image to 1,600 pixels wide or tall, use the separate resize tool and set its longest side.
Can I make a photo smaller than 200 KB?
Use the result’s file size to check your target. Try a lower WebP or JPG quality and run Compress image again. If quality is already too low, reducing the dimensions in the resize tool is another option.
Why is the compressed file bigger?
A small or already optimized source can grow when encoded again. If the result is the same size or larger, select Keep original to download the source bytes. Use the displayed sizes to decide.
Which format keeps a transparent background?
Choose PNG or WebP to retain transparent areas. With JPG, those areas become white. If you need the exact source file, keep the original.
Can I use an animated WebP or an animated PNG?
This tool accepts still images and rejects animated WebP and PNG files. Choose a still frame saved as PNG, JPG or WebP if that is the picture you want to compress.
Why is a file under 20 MB being rejected?
The pixel limits apply separately. A 4,000 × 4,000 image meets the 16-megapixel ceiling, while a 4,001 × 4,000 image exceeds it. The longest side must also be at most 8,192 pixels.
Will the same quality setting give every image the same size?
File size depends on the content and source encoding. At WebP quality 75, a 960 × 640 test landscape produced 11,568 bytes and a screenshot of the same dimensions produced 21,428 bytes.


