🗜️ 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
Phone photos embed EXIF metadata — camera, timestamps and, with location on, GPS coordinates accurate to a few meters. What's in the file, which sharing channels leak it, and how to remove it in your browser.
-
Why iPhone Photos Won't Open on Windows — HEIC Explained (and How to Convert It)
iPhones save photos as HEIC — half the size of JPEG, but unreadable on Windows, Android and the web. What HEIC is, why it breaks things, how to convert it privately, and how to make your iPhone shoot JPEG instead.
-
JPEG vs PNG vs WebP: Which Image Format to Use (and How to Shrink Files 90%)
JPEG for photos, PNG for screenshots and transparency, WebP for the web at 25–35% smaller. How each format works, the conversion mistakes that ruin images, and the resize-then-compress workflow that cuts files by 90%.
-
How to Convert a PDF to JPG Without Uploading It
Most 'PDF to JPG' sites upload your document to their servers to do the conversion — a problem when it's a contract, a bank statement or an ID. Here's how to convert PDF pages to images entirely in your browser, and how to choose JPG vs PNG and the right resolution.