Image Compressor
Compress images locally with lossy or lossless output, quality controls and a best-effort target size. Compare actual bytes before downloading.
Smaller when possible. Honest when it is not.
IN YOUR BROWSER / PRIVATE INPUT100% in your browser, files never leave your device.
Choose your file and settings. The original stays unchanged.
How to use the
Image Compressor
- 01
Choose the images
Add as many images as your device can handle, keeping each file within 40 MB and 24 megapixels. Highly detailed images need more space than flat graphics.
- 02
Set the compression strategy
Lossy output trades visual detail for size. Lossless mode uses PNG or lossless WebP and preserves decoded pixels.
- 03
Compare the actual result
A target is a goal, not a guarantee. Inspect sharp edges and small text and keep the original if the output is larger.
How the target-size search works
For lossy output, the tool tests up to seven quality settings while keeping dimensions fixed. It retains a smaller candidate when a requested target cannot be reached and explicitly reports the miss. It does not silently shrink the image to meet a number.
Lossless mode does not use the KB target. PNG ignores lossy quality controls, and a PNG round trip may produce very little saving. Re-encoding also removes original metadata, so identical pixels do not imply identical file bytes.
A practical web-photo starting point
Photo → WebP
Mode: Lossy
Quality ceiling: 80
Target: 200 KBCompare the measured output with 200 KB.
If the target is missed, reduce dimensions
or choose a less demanding target.Choose what can be sacrificed
Preserve text and logos
Use lossless output for fine type, diagrams and crisp edges when artifacts would be distracting.
Resize oversized photos first
An image displayed at 800px rarely needs a 6000px upload. Fewer pixels often save more than an extreme quality setting.
Avoid repeated lossy passes
Work from the original each time. Repeated JPEG/WebP lossy encoding can accumulate visible artifacts.
Image Compressor:
questions, answered.
Is PNG compression guaranteed to reduce size?
No. An already optimized PNG can be the same size or larger after re-encoding. The interface shows the measured comparison.
Does a 200 KB target reduce my dimensions?
No. The quality search keeps dimensions fixed. Use the resizer separately if the target remains unreachable.
Which formats support lossless mode?
This interface uses PNG or lossless WebP. Selecting another format in lossless mode produces PNG.
Are files sent to a compression server?
No. Decoding and encoding happen on your device in a browser worker.
The calculations and checks above describe this tool's implementation. Use these primary references for the underlying formats and publishing guidance.
Canvas image export ↗ (opens in a new tab)Smaller when possible. Honest when it is not.
Choose your settings, inspect the result and download a new file. Your original remains unchanged.
Use the Image Compressor↑