How to Compress an Image
- Upload a JPG, PNG, or WebP image using the file picker or drag-and-drop.
- Adjust the Quality slider — lower values produce smaller files; 70–80% is ideal for web use.
- Click Compress & Download. A side-by-side preview shows the original vs. compressed size.
- Your compressed image downloads automatically as a JPEG.
How It Works — Browser-Based Image Compression
This tool uses the browser's built-in Canvas API and the toDataURL('image/jpeg', quality) method. When you upload an image, the browser decodes it into pixel data, draws it onto an invisible canvas element, and re-encodes it as JPEG at the quality factor you chose. JPEG compression is lossy — it discards fine detail that the human eye barely perceives — which is how it achieves dramatic file size reductions.
Everything happens inside your browser tab. No pixels leave your device. Supported inputs: JPG, PNG, WebP. Output: compressed JPEG.
Frequently Asked Questions
What quality setting should I use?
For web use, 70–80% gives an excellent balance — files shrink dramatically with no visible difference on screen. For print, use 90%+ to retain fine detail.
Does this tool compress PNG files?
Yes. PNGs are re-encoded as JPEG for the smallest file size. If you need to keep the PNG format, use the Image Format Converter.
Can I compress multiple images at once?
Currently the tool processes one image at a time. For batch work, run each image through the tool separately.
Related Tools