Image Compressor
Compress JPG, PNG & WebP in your browser. Resize, recompress, convert format, or hit an exact target size — all locally. Your images never leave your device.
Quick Reference
- JPEG — best for photos · supports quality control · no transparency
- WebP — modern format · 25–35% smaller than JPEG at same quality
- PNG — lossless · supports transparency · larger files
- Quality 70–80% usually looks identical to original at much smaller size
How to Use the Image Compressor
- Drop an image onto the upload zone or click to browse.
- Pick a Resize preset (Original, Large, Medium, Small) or set custom dimensions with aspect-ratio lock.
- Pick a Quality preset (Best, High, Balanced, Small) or fine-tune with the custom slider.
- Choose your output Format — JPEG, WebP, or PNG — or turn on Target Size to hit an exact KB limit.
- The image recompresses automatically. Click Download or Copy when you're happy.
What Is Image Compression?
Image compression reduces file size by removing data the human eye can't easily detect. Lossy compression (JPEG, WebP) discards small details for big size savings — typically 70–90% smaller than the original. Lossless compression (PNG) preserves every pixel but offers smaller savings. Our tool uses your browser's built-in Canvas API to recompress images entirely on your device — no upload required — and can automatically tune quality to meet an exact target file size.
Common Uses for Image Compression
Why Choose Our Image Compressor?
- ✅ Privacy-first — 100% browser-based, images never upload
- ✅ Compress to target size — auto-tune quality to an exact KB limit
- ✅ Side-by-side comparison — verify the result before downloading
- ✅ Quality & resize presets — great results without fiddling
- ✅ Aspect-ratio lock — resize without distorting your image
- ✅ Auto-recompress — see results instantly as you adjust
- ✅ Three output formats — JPEG, WebP, PNG
- ✅ Copy to clipboard, dark mode & fullscreen
- ✅ No signup, no upload limits, no tracking
Frequently Asked Questions
What's the best format for the web?
WebP for photos (25–35% smaller than JPEG, supported by all modern browsers). PNG when you need transparency. JPEG remains the safest fallback for very old browsers.
How do I compress an image to an exact size (e.g. under 100 KB)?
Turn on Compress to target size, enter your KB limit, and choose JPEG or WebP. The tool auto-tunes quality to land just under the target. PNG is lossless, so it ignores the target.
What quality setting should I use?
For most photos, Balanced (70%) looks identical to the original but produces dramatic size reductions. Use High (80%) for hero images, or Small (50%) for thumbnails and previews.
Why is my PNG not getting smaller?
PNG is lossless — it can't trade quality for size like JPEG/WebP. Size mostly depends on image complexity. For real savings on photo-style PNGs, convert to WebP or JPEG instead.
What does "Lock aspect ratio" do?
With the lock enabled (default), changing the width automatically updates the height to keep your image proportional — no stretching. Click the lock to set width and height independently.
Does the image compressor work offline?
Yes. Once the page is loaded, all compression runs locally in your browser using the HTML5 Canvas API.
