What image compression does
Image compression rewrites a picture so that it needs fewer bytes. The visible pixels stay at the same width and height; what changes is how efficiently the file stores colour, detail and metadata. This compressor decodes your image at full resolution, draws it once on a canvas without resizing, and lets the browser's own encoder write a new file. It then reports the real byte size of that new file.
There are two broad families of compression. Lossy formats such as JPEG, WebP and AVIF discard some fine detail to save space. Lossless formats such as PNG keep every pixel exactly, but they usually produce larger files for photographs. The tool uses each family according to the output format you choose.
How to compress an image
- Add your images. Drag files onto the upload area or use Browse images. You can add several files at once; JPG, PNG, WebP and AVIF are accepted, up to 25 MB each.
- Choose a preset. High quality keeps more detail, Balanced is a sensible default, and Maximum compression pushes for the smallest practical file. Custom quality reveals a slider if you want direct control.
- Choose an output format. Keep the original format, or convert to JPEG, PNG or WebP. AVIF appears only when your browser can encode it.
- Compress. The tool processes the batch one image at a time and keeps the interface responsive. A failed image is reported on its own row and does not stop the rest.
- Compare and download. Each row shows the original and compressed previews, the real file sizes, the amount saved and the percentage reduction. Download one file, or use Download all (.zip) for the batch.
Lossy versus lossless compression
Lossy compression removes detail that the eye is less likely to notice. A quality setting controls how aggressively it does that. At a high quality the difference is often hard to see; at a low quality you may notice blockiness around edges, banding in smooth gradients and softer fine texture.
Lossless compression keeps every pixel identical. PNG is the common lossless format on the web, and it is the right choice for screenshots, diagrams, logos and images with sharp edges or transparency. A PNG re-encode can remove metadata and repack the data, but it has no quality slider. If you move the slider while PNG is selected, the PNG output will not change. That is why the tool suggests WebP or JPEG when you need a smaller photographic file.
Transparency is preserved for PNG and WebP output. JPEG cannot store an alpha channel, so when you choose JPEG the tool warns you and fills transparent areas with the background colour you select.
Which output format should you choose?
| Format | Best for | Transparency | What to expect |
|---|---|---|---|
| JPEG | Photographs, email attachments, broad compatibility | No | Lossy. Small files at moderate quality; no alpha channel. |
| PNG | Screenshots, diagrams, logos, images with transparency | Yes | Lossless. Quality presets do not apply; output can be larger than a lossy format. |
| WebP | Modern websites that need small files and transparency | Yes | Lossy or lossless depending on the encoder; widely supported in current browsers. |
| AVIF | Smallest photographic files where the browser supports it | Yes | Lossy. Encoding is browser-dependent, so the option is hidden when unavailable. |
How quality affects file size
The presets map to lossy quality levels of roughly 90% for High quality, 78% for Balanced and 55% for Maximum compression. A higher quality keeps more detail and produces a larger file. A lower quality reduces the file further but can introduce visible artefacts. For a photograph that will be viewed on a screen, Balanced is usually a good starting point. For an image that will be printed or examined closely, start with High quality.
File size also depends on the content. A detailed landscape with foliage and texture is harder to compress than a portrait against a plain background. Two images with the same dimensions can produce very different results at the same setting, so always check the measured size rather than assuming a percentage.
Why a compressed file can be larger
Compression is not guaranteed to shrink every file. An image may already be optimised, may be very small, or may be stored losslessly. Re-encoding a PNG can add overhead even though the pixels are unchanged. In those cases the tool shows a negative saving, explains that the selected settings did not reduce the file, and suggests trying WebP or JPEG, choosing Maximum compression, or keeping the original. It never labels a larger output as a successful reduction.
Privacy and local processing
Your images are not uploaded. Decoding, compression and encoding happen in your browser using the Canvas and, where available, OffscreenCanvas APIs. There is no account, no AI service and no paid API. Temporary object URLs are released when you remove an image, reset the tool or leave the page, and the original files on your device are never modified.
Frequently asked questions
Does the compressor upload my images?
No. The image is decoded, compressed and encoded in your browser. It is not sent to LetitEdit or to a third-party service, and no account is required.
Will compression change the image dimensions?
No. The compressor keeps the original pixel dimensions. It does not resize or crop. A 3000 by 2000 pixel photo stays 3000 by 2000 pixels.
Which image formats are supported?
JPG, PNG and WebP are supported wherever the browser can decode and encode them. AVIF appears only when the browser can both decode and encode AVIF. Other formats are rejected with a clear message.
Is transparency preserved?
PNG and WebP output keeps transparent pixels. JPEG cannot store transparency, so the tool warns you and fills transparent areas with the background colour you choose.
Why is my compressed file larger than the original?
Some files are already optimised, very small, or stored in a lossless format. Re-encoding can then add overhead. The tool reports the negative saving honestly and suggests WebP or JPEG, a lower quality, or keeping the original.
Does compression remove EXIF metadata?
The browser applies the JPEG EXIF orientation before compression, then the Canvas encoder writes a new file without the original metadata such as camera details and GPS coordinates.
Is there a file size limit?
Each image can be up to 25 MB. You can add several images and compress them in one batch; one failed file does not stop the others.