Free Online Image Compressor
Compress and resize images in your browser. Supports JPEG, PNG, and WebP. See before/after previews, file size savings, and download instantly. 100% client-side — your images never leave your device.
100% Client-Side · Your data never leaves your browserHow to Use Image Compressor
Drop an image file onto the upload area or click browse to select one. The tool accepts JPEG, PNG, WebP, and other common image formats.
- Quality — drag the slider from 10% to 100%. Lower values produce smaller files with more compression artifacts; higher values preserve more detail.
- Max Width / Max Height — set the maximum pixel dimensions. The image is scaled down proportionally if it exceeds these values. Leave at 1920×1080 for typical web images.
- Output Format — choose JPEG for photos, PNG for images needing transparency or lossless output, or WebP for the best compression in modern browsers.
Click Compress or press Ctrl/Cmd+Enter. The before and after previews update side by side along with stats showing original size, compressed size, savings percentage, and output dimensions. Click Download to save the compressed file.
Frequently Asked Questions
What quality setting should I use?
For most web images, 75–85% (0.75–0.85) offers an excellent balance between file size and visual quality. Use 90%+ for images that need to be printed or examined closely. For thumbnails and previews, 60–70% is usually fine.
What is the difference between JPEG, PNG, and WebP?
JPEG is best for photographs and complex images — it achieves high compression ratios but introduces slight artifacts. PNG is lossless (no quality loss) and ideal for screenshots, logos, and images with text or sharp edges. WebP is a modern format that achieves smaller file sizes than both JPEG and PNG with comparable quality, and is supported in all modern browsers.
Is my image uploaded to a server?
No. All compression is performed locally in your browser using the HTML5 Canvas API. Your images never leave your device. This tool works entirely offline once the page has loaded.
What is the maximum file size I can compress?
There is no hard limit — it depends on your browser's available memory. In practice, images up to 50 MB compress without issue in modern browsers. Very large raw files (such as 100 MP camera images) may require more memory.
Why does my PNG get larger after compression?
PNG uses lossless compression, so the quality setting has no effect on PNG output. If your original is already an optimized PNG, re-encoding it may produce a similar or slightly larger file. Switch to WebP or JPEG for significant size reduction.
What do the Max Width and Max Height settings do?
These settings resize the image proportionally so that neither dimension exceeds the specified value. Aspect ratio is always preserved. If your image is already smaller than the limits, no scaling occurs — only quality compression is applied.