Image Compressor
Make JPG, PNG, WebP, AVIF and HEIC photos smaller without uploading them anywhere. Choose a quality, optionally limit the size, and download each result or all of them as a ZIP.
Run an online store? See apps by FoxEcom.
How the compressor works
Add one photo or a whole batch, and the tool decodes each picture in a background thread, resizes it if you asked for a maximum size, and encodes it again with the quality you chose. Files are processed one after another so even large batches do not freeze the page.
Each row shows the size before and after, plus the percentage saved. When you keep the format and do not resize, a file that cannot get smaller keeps its original bytes. In every other case, such as converting to another format or resizing, the result is shown with its real size and marked as not smaller, so you decide whether to download it.
Choosing quality and size
For JPG and WebP, a quality between 70 and 80 is a good starting point: the difference is hard to see on screen, yet the file is often half the size. Lower values save more space but add visible blocks around edges and in skies.
Limiting the longest side to 1920 or 1280 pixels is the biggest saver for phone photos, which are usually far larger than any screen needs. PNG is lossless, so its quality setting does not apply. Converting a PNG photo to WebP or JPG usually shrinks it much more than recompressing the PNG.
Which format should I pick?
JPG works everywhere and suits photos. WebP is usually 25 to 35 percent smaller at similar quality and is supported by all current browsers. AVIF can be smaller still but takes longer to encode. Keep PNG for logos, screenshots with sharp text and images that need transparency.
HEIC photos from an iPhone are converted to JPG when you keep the format, because browsers cannot write HEIC files.
Privacy
Your images never leave your device. The compression code runs in your browser using WebAssembly, no file is uploaded to a server, and the tool keeps working offline after the page has loaded. Files above 50 MB are skipped to keep your browser responsive.
Frequently asked questions
Does compressing reduce image quality?
JPG, WebP and AVIF are lossy, so some detail is discarded. At quality 75 the change is rarely visible. Move the slider up if you need a closer match to the original.
Is there a limit on how many images I can add?
No count limit. Each file can be up to 50 MB, and they are processed one at a time.
Why did a PNG not get smaller?
PNG is lossless and may already be well optimized. Try converting it to WebP or JPG, or reduce the maximum size.
Are my photos uploaded anywhere?
No. Everything happens in your browser, so your photos and their metadata stay on your device.