About this tool
Image compression shrinks the file size by re-encoding and removing redundant data: JPEG is re-encoded with MozJPEG at your chosen quality, PNG is optimized losslessly with Oxipng, and WebP uses an efficient WebP encoder. Nothing is uploaded — your images are processed entirely in your browser, so your privacy is preserved.
For photos, converting to JPEG or WebP usually gives the biggest savings; for transparency or lossless needs, keep PNG. If a compressed result would be larger than the original, the tool automatically keeps the original file so the result is never worse.
Each output format is handled by a different encoder, and the results behave differently. When you keep the original format, JPEG files are re-encoded with MozJPEG, which preserves sharp edges and fine texture at a lower bitrate than most default encoders; PNG files are optimised with Oxipng without changing a single pixel; WebP files are re-encoded with a modern WebP encoder. “Keep original” therefore does not simply copy the file — it performs a genuine re-encode at the quality you choose, which is why the size can drop dramatically even when the extension stays the same.
Why not always pick the lowest quality? Because compression is a trade-off judged by the eye, not by the number. Between 70 and 85 most photographs look identical to the source on a normal screen while the file can be a fraction of a 95-quality export. Below roughly 60, gradients in skies and skin tones start to band, and the edges of text smear. For interface screenshots and graphics with flat colours or sharp lines, PNG or a high-quality WebP usually beats a heavily compressed JPEG, because JPEG artefacts appear exactly where sharp edges are.
In many real cases resizing saves more than compressing. A 4000-pixel-wide photo shown in an 800-pixel column carries several times the pixels it needs; setting a maximum edge removes the excess before encoding and is often the single largest saving available. This is also the main lever for Core Web Vitals, since the Largest Contentful Paint element is frequently an oversized hero image. Keep the untouched original if the picture is destined for print or for repeated editing, and remember that re-encoding also drops EXIF metadata such as camera model, capture time and GPS coordinates — useful for privacy, but a loss if you depend on that data.
How to use
- Add images: drag them into the area above, or click “Choose images” to select several at once — compression starts automatically.
- Set options: pick the output format (keep original / JPEG / WebP / PNG) and quality, and optionally a max edge to downscale proportionally.
- Recompress: after changing the options, click “Recompress” to process every image in the list with the new settings.
- Compare: each image shows its original size, compressed size and savings, with a total summary at the bottom.
- Download: click “Download” on a single image, or “Download all (ZIP)” to grab every result at once.
- Batch first, then fine-tune: apply one setting to the whole list, sort the results by savings, and re-check the few images that shrank least — those are usually the ones worth resizing instead of re-compressing.
- Verify before publishing: open a compressed image at 100% and inspect sharp edges, small text and smooth gradients. If artefacts are visible, raise the quality by 5–10 and compress again.
Frequently asked questions
Are my images uploaded to a server?
No. All compression runs locally in your browser using WebAssembly encoders. Nothing is uploaded, and the data disappears as soon as you close or refresh the page.
Which formats are supported?
JPG / JPEG, PNG, WebP, GIF, AVIF and BMP. For GIF only the first frame is processed (no animation is kept). The output can keep the original format or be converted to JPEG, WebP or PNG.
Does compression reduce quality?
JPEG and WebP are lossy: a lower quality means a smaller file but more visible artifacts, so keeping it at 70 or above is recommended. PNG uses lossless optimization and does not lose quality.
Why is the compressed file larger than the original?
If the original was already heavily optimized, re-encoding may not shrink it further. In that case the tool keeps the original file and marks it “Already optimal”, so the result is never worse than the source.
Can I limit the output dimensions?
Yes. Set a “Max edge” and the image will be scaled down proportionally to fit within it before compression — handy when you need to cap the size.
What quality setting should I use?
For photographs, 75–85 is the usual sweet spot: the difference is invisible at normal viewing size and the file is much smaller. Use 90 or above for images with fine text or critical detail, and go below 60 only for small previews or thumbnails where artefacts will not be noticed.
Does compression remove EXIF data and GPS location?
Yes. Re-encoding through a canvas produces a fresh image without the original metadata, including camera model, capture time and GPS coordinates. That is good for privacy when sharing photos online, but if you need the EXIF data for archiving or editing, keep a copy of the original file first.
Can I compress to an exact file size, for example 100 KB?
There is no hard target-size mode. The practical approach is to lower the quality step by step, and — more effectively — set a maximum edge to reduce the pixel dimensions first, because a smaller image compresses far better. Repeat until the reported size fits your upload limit.
Does compressing the same image twice reduce quality further?
For lossy formats such as JPEG and WebP, yes. Every re-encode throws away a little more detail, so repeatedly opening, editing and saving the compressed copy causes visible generation loss. Always start again from the original file and compress once at the end.
Does the compressor work offline?
After the page has loaded once, the encoders are cached by the browser and compression continues to work without a network connection. All processing is local either way, because the images never leave your device.