Menu

Image Compressor

Purpose: Compress JPG and PNG images to reduce file size. Adjust quality and see estimated size before downloading. All local.

Image Compressor: How It Works

Image compression trades file size against visual quality. Done well the difference is invisible and the saving is 60–80%; done badly you get soft edges and blocky gradients. The technique is knowing which format and which quality setting suit the image in front of you.

Lossy or lossless

LossyLossless
FormatsJPEG, WebP, AVIFPNG, WebP lossless
Discards dataYes, permanentlyNo
Typical saving60–90%10–30%
Best forPhotographsLogos, screenshots, line art, transparency

Lossy compression exploits the fact that human vision is far more sensitive to brightness than to colour detail, so it discards colour information first. This works beautifully on photographs, where colour varies smoothly, and poorly on sharp-edged graphics, where it produces visible artefacts around lines and text.

Quality settings

QualityResult
95–100Near-lossless; large files, minimal visible gain over 85
80–90The practical sweet spot for web photographs
60–75Acceptable for thumbnails and background images
Below 60Visible artefacts on most photographs

Quality 85 is the standard recommendation because the file is typically half the size of quality 95 while being visually indistinguishable at normal viewing size. Going above 90 rarely earns its bytes.

Resize before you compress

This is the biggest saving available and the most commonly missed. A 4000-pixel-wide photograph displayed in a 800-pixel column is carrying 25 times more data than the screen can use. Resizing to the display size, then compressing, routinely reduces a file by 95% — far more than any quality setting alone.

Serve at roughly twice the CSS display width to look sharp on high-density screens, and no more.

Format selection

ContentUse
PhotographAVIF, with WebP and JPEG fallbacks
Logo or iconSVG if vector, PNG otherwise
Screenshot with textPNG, or WebP lossless
Needs transparencyPNG, WebP or AVIF
AnimationWebP or a video format, not GIF

AVIF typically produces files 30–50% smaller than WebP at equivalent quality, and WebP is 25–35% smaller than JPEG. Encoding AVIF is slower, but that cost is paid once at build time while the saving is paid on every visit.

Generation loss

Each time a lossy image is decoded, edited and re-encoded, more information is destroyed — and it never comes back. Always keep the original and re-export from it rather than repeatedly compressing an already-compressed file. Re-saving a JPEG a dozen times produces visible degradation from nothing but the saving.

Metadata

Photographs carry EXIF data — camera model, settings, timestamp and often GPS coordinates. Stripping it saves a few kilobytes and, more importantly, removes location data you probably did not intend to publish. Most compressors strip it by default; it is worth confirming before uploading personal photographs anywhere.

Compression here happens entirely in your browser, so your images are not uploaded to any server.

Frequently Asked Questions

What quality setting should I use?
Around 85 for web photographs. The file is typically half the size of quality 95 while being visually indistinguishable at normal viewing size. Below 60, artefacts become noticeable on most images.
Why is my compressed image still large?
Most likely the dimensions rather than the quality. A 4000-pixel image shown in an 800-pixel column carries 25 times more data than needed. Resize first, then compress — that is where the large saving is.
Which format should I use?
AVIF or WebP for photographs, with a JPEG fallback for older clients. PNG for screenshots, logos and anything needing transparency. SVG for vector graphics, which scale to any size without loss.
Does repeatedly compressing an image degrade it?
Yes, with lossy formats. Each decode-edit-re-encode cycle destroys more information permanently. Keep the original and always re-export from it rather than compressing an already-compressed file again.
Does compression remove EXIF data?
Usually yes, and that is generally desirable — EXIF often includes GPS coordinates and camera details you may not want published. Confirm before uploading personal photographs if it matters to you.
Are my images uploaded to a server?
No. Compression runs entirely in your browser using its own image APIs, so the files never leave your device.

Related Image Tools

Browse all Image tools →