🗜️ Image Compressor
Shrink image file size with a quality slider and instant before/after comparison, your photo never leaves the browser.
How the image compressor works
The image is decoded and re-encoded by the browser's own codec at your chosen quality level. Lossy formats (JPEG, WebP) discard detail the eye rarely misses, most photos survive quality 70-85 with no visible change while dropping to a fraction of the size. The size readout updates live so you can find the point where quality loss becomes visible, and re-encoding also strips metadata as a side effect.
The counterintuitive tip: for photographs, converting PNG to JPEG or WebP saves far more than any PNG optimization, PNG is lossless by design and stores photographic noise expensively. Keep PNG for screenshots, diagrams and anything with text or sharp edges, where JPEG artifacts show first.
Frequently asked questions
What quality setting should I use?
For photos, 75-85 is the sweet spot, usually 5-10× smaller than the original with no visible difference at normal viewing size. Go lower for thumbnails, higher (90+) only for print or editing masters.
Why is my PNG barely shrinking?
PNG is lossless, the quality slider doesn't apply, and photographic content compresses poorly in it. Convert photos to JPEG or WebP for major savings; keep PNG for screenshots and graphics with text or transparency.
Does compression remove metadata too?
Yes, re-encoding through the canvas produces a file with pixels only, so EXIF, GPS and other metadata are dropped as a side effect. For metadata specifically, the image metadata remover shows what was present first.
Is WebP better than JPEG?
For the same visual quality, WebP files are typically 25-35% smaller, and WebP supports transparency. Every modern browser displays it; the residual reason to pick JPEG is compatibility with old software and some upload forms.
Is the image uploaded for processing?
No, decoding and re-encoding use the browser's built-in codecs on your device. Nothing is transmitted; the tool works offline.
Related image tools
From the blog
-
What Your Photos Reveal: EXIF, GPS Location and How to Strip Them
EXIF metadata in phone photos includes camera, timestamps and GPS coordinates accurate to a few meters. What leaks, and how to strip it in your browser.
-
Why iPhone Photos Won't Open on Windows, HEIC Explained (and How to Convert It)
HEIC to JPG: why iPhone photos won't open on Windows, Android or the web, and how to convert them privately in your browser (no upload).
-
JPEG vs PNG vs WebP: Which Image Format to Use (and How to Shrink Files 90%)
JPEG vs PNG vs WebP: JPEG for photos, PNG for screenshots and transparency, WebP for 25-35% smaller web files, plus the resize-then-compress workflow.
-
How to Convert a PDF to JPG Without Uploading It
Convert PDF pages to JPG entirely in your browser, nothing uploaded, plus how to choose JPG vs PNG and the right resolution.