Image Compressor
Reduce file size with a quality slider and a live before/after comparison. Works on JPEG, PNG and WebP, keeps transparency, and never uploads your file.
Compression
What this tool does
Drop in a JPEG, PNG or WebP and the compressor re-encodes it at the quality you choose, then shows you the original size, the new size and the percentage saved — and it updates live as you move the slider. The result downloads as a new file; your original is never touched.
Everything happens with your browser's own image encoder via the HTML5 Canvas API. There is no upload, no queue and no server: the page is static and the work runs on your device, so a 20 MB photo compresses in about a second and your file never leaves your computer.
Choosing a format
- Auto keeps JPEGs as JPEG and WebP as WebP. PNGs (and GIF, BMP, SVG inputs) become WebP, because WebP keeps transparency and is typically 70–90% smaller than a re-saved PNG.
- JPEG is the safest choice for photos you need to open anywhere — email, old CMSs, print shops. No transparency; transparent areas are filled white.
- WebP is the smallest for the web and is supported by every current browser. Keeps transparency. Use it for site images, not for files you'll hand to a designer.
- PNG is lossless, so the quality slider is disabled. Pick it when pixel-exactness matters (UI screenshots, diagrams with text) and size is secondary.
Picking a quality
For photos, 70–80 is the sweet spot: most of the size saving, no visible artefacts at normal viewing sizes. Go to 85–90 for hero images or anything that will be zoomed. Below 50 you will start to see banding in gradients and halos around text. Because the preview updates live, the quickest method is to drag down until you notice a change, then nudge back up.
Good to know
- Re-encoding strips EXIF (including GPS location) — useful before publishing, but it also drops embedded colour profiles.
- If the result is larger than the original the tool says so; that usually means the source was already well compressed. Try WebP or keep your original.
- GIF animations are flattened to the first frame — use a dedicated GIF tool for animation.
- HEIC/HEIF from iPhones decodes only in Safari; on other browsers export as JPEG first.
Frequently asked questions
How much smaller will my image get?
It depends on the source. A camera JPEG saved at quality 95–100 typically drops 60–80% at quality 75 with no visible change. A PNG screenshot converted to WebP usually shrinks 70–90%. A JPEG that has already been compressed may only lose a little more — the tool tells you the before/after size and warns you if the result isn't smaller.
Does compressing a PNG keep transparency?
Yes, as long as you output PNG or WebP. Only JPEG has no alpha channel; if you choose JPEG, transparent areas are filled with white and the tool tells you so before you download.
Why does Auto turn my PNG into WebP?
Re-encoding a PNG as PNG through the browser rarely makes it smaller — PNG is lossless, so there is nothing to trade away. WebP keeps transparency and is usually a fraction of the size. If you need lossless PNG, pick PNG explicitly; the quality slider is then disabled because it doesn't apply.
Is there a file size or count limit?
No. Nothing is uploaded, so there is no server quota. Images are limited only by your device's memory — anything up to roughly 50 megapixels is comfortable on a modern phone or laptop. Compress as many as you like.
How does this compare to TinyPNG or Squoosh?
TinyPNG uploads your image to its servers and limits free use; AI-Pix never uploads anything and has no limits. Squoosh also runs in the browser and offers more codecs (AVIF, MozJPEG); AI-Pix is simpler, uses your browser's built-in encoders, and sits alongside five other tools. For most everyday "make this smaller for the web" jobs the result is the same.
Does it strip EXIF metadata?
Yes. Re-encoding through the Canvas API produces a fresh file with no EXIF, GPS location, camera model or embedded thumbnail. That is a privacy win for photos you are about to publish, but note that it also discards colour-profile data; sRGB images are unaffected.