Every image you see online has been compressed. Whether it's a product photo on Amazon, a meme on Reddit, or a banner on a corporate website — the image you see is almost always smaller than the original captured or created. Understanding how image compression works helps you make smarter decisions about quality, file size, and format choices.
A raw, uncompressed photograph is surprisingly large. A 12-megapixel photo (4032×3024 pixels) at 24-bit color depth requires:
4032 × 3024 × 3 bytes ≈ 36.6 MB
That's for a single photo. Compress it to JPEG at 85% quality, and it drops to roughly 3–5 MB. Compress to JPEG at 75% quality and you're at 1–2 MB — with no visible difference at normal screen sizes. For websites serving thousands of images, the bandwidth and storage savings are enormous.
Permanently removes some image data to achieve smaller files. The decompressed image is different from the original — but often indistinguishable to human eyes. Used by JPEG, lossy WebP, AVIF, and HEIC.
Reduces file size without discarding any data. The decompressed image is bit-for-bit identical to the original. Used by PNG, lossless WebP, GIF, and RAW formats. File sizes are larger than lossy.
Lossy is like summarizing a book — you capture the key ideas but lose some specific details. Most readers don't notice what's missing.
Lossless is like a word-for-word transcript — everything is preserved exactly. It takes more space, but nothing is lost.
JPEG is the most widely used image format, and its compression algorithm is a masterpiece of applied mathematics:
At 80% JPEG quality, the quantization is gentle enough that most humans can't detect the difference from the original at normal screen viewing distances.
PNG uses two stages of lossless compression:
Because PNG compression is lossless, it works best on images with large areas of identical color — like logos, screenshots, and illustrations. For photographs (which have random-seeming pixel variation), PNG produces much larger files than JPEG.
WebP supports both lossy and lossless modes:
| JPEG Quality | File Size (1MP photo) | Visual Quality | Typical Use Case |
|---|---|---|---|
| 100% | ~2–4 MB | Near-perfect | Professional archival |
| 90% | ~800 KB–1.5 MB | Excellent | Print-quality web images |
| 85% | ~500–900 KB | Very good | High-quality web photos |
| 80% | ~300–600 KB | Good (imperceptible) | Standard web images |
| 75% | ~200–400 KB | Good (subtle artifacts) | Email, thumbnails |
| 60% | ~100–200 KB | Acceptable (visible) | Heavily trafficked pages |
| 40% | ~60–120 KB | Poor (blocky) | Avoid for most uses |
| Scenario | Recommended | Reason |
|---|---|---|
| Photos for websites | JPEG / Lossy WebP | 60–80% smaller, imperceptible quality loss |
| Logos & icons | PNG / SVG | Pixel-perfect edges; transparency support |
| Screenshots with text | PNG | Text remains sharp; JPEG creates blurry text |
| Product images (e-commerce) | JPEG 85–90% | Quality matters; slightly larger files acceptable |
| Background textures | JPEG / Lossy WebP | Lossy artifacts rarely visible in backgrounds |
| Medical/legal images | PNG / Lossless | No data loss; original preserved exactly |
| Social media posts (pre-upload) | JPEG 95%+ | Platforms re-compress; start with highest quality |
Images contain more than just pixel data. EXIF metadata stores camera model, GPS coordinates, shooting settings, copyright information, and more. This data can add 50–200 KB to file sizes.
Stripping EXIF metadata is often called "metadata removal" or "exif stripping" and can reduce file size by 5–15% with zero impact on image quality. Most compression tools (including ImgMin) strip EXIF automatically. If you need to preserve metadata for archival or professional work, choose a tool that gives you the option to keep it.
Image compression can happen in two places:
Image compression reduces the file size of an image by encoding its data more efficiently — either by removing less-important information (lossy) or finding smarter ways to store the same information (lossless). The result is a smaller file that loads faster and takes less storage.
Lossy permanently removes some image data — the result is slightly different from the original, though often imperceptible at normal viewing sizes. JPEG uses lossy compression. Lossless removes no data — the decompressed image is bit-for-bit identical to the original. PNG uses lossless compression.
Lossy compression (JPEG, WebP lossy) does reduce quality, but at 75–85% quality the difference is imperceptible at normal viewing sizes. Lossless compression (PNG, lossless WebP) never reduces quality. For most web and sharing purposes, JPEG at 80% offers the best balance.
Compress JPEG and PNG files instantly in your browser. No upload, no account, no limits.
Compress Images Now →Last updated: May 2026. File size estimates are representative of typical photographic content.