Skip to content

image guide

How to Compress Images: Reduce File Size Without Visible Quality Loss

Compressing images is a balancing act: reduce file size while keeping the image looking identical. Done well, a 5 MB photo becomes 500 KB with no visible difference. Done poorly, you get blocky artefacts, colour banding, and muddy text. This guide covers every technique, the exact settings that work, and the mistakes to avoid.

Updated September 22, 2026 · 22 questions answered

Key takeaways

  • JPEG quality 75-85 is visually near-identical to 100 at a fraction of the file size — start there, not at maximum quality.
  • Resizing oversized images to their real display dimensions is the biggest free win: a 4000 px photo shown at 800 px wastes over 90% of its bytes.
  • Format choice matters as much as the quality slider: the same photo is typically 25-35% smaller as WebP and smaller again as AVIF, at equal quality.
  • Compress from originals, work on copies, and keep a lossless master — every lossy re-save throws away data permanently.
  • If you cannot see a difference at 100% zoom, you have compressed well; chase bytes, not a target file size in the abstract.

Why Image Compression Matters

The average web page in 2026 transfers 2.2 MB, and images account for 45% of that. A single uncompressed product photo at 5 MB can add two seconds to a page load on 4G — and Google's Core Web Vitals penalise pages with a Largest Contentful Paint over 2.5 seconds.

Beyond web performance, file size matters for email sending limits (most providers cap at 25 MB total), cloud storage quotas (Google Drive gives 15 GB, iCloud 5 GB), upload limits on forms and applications, and mobile data costs for users in bandwidth-constrained regions.

The good news: most images can be compressed 60-90% without a human eye detecting any difference, because cameras and design tools produce far more data than is necessary for a good-looking image.

How Lossy Compression Works

Lossy compression reduces file size by permanently discarding image data that the human visual system is least sensitive to. In JPEG, this means converting each 8×8 pixel block into frequency coefficients (using the Discrete Cosine Transform) and rounding the small coefficients — representing fine detail — down to zero.

The quality slider (typically 0-100) controls how aggressively those coefficients are rounded. Quality 95 preserves almost all detail and gives 10-20% size reduction. Quality 80 discards invisible subtlety for 40-60% reduction. Quality 50 starts producing visible artefacts in complex scenes.

The key insight: lossy compression is not linear. Going from 100 to 80 saves 60% file size with zero visible change. Going from 80 to 60 saves another 20% with noticeable degradation in edges and gradients. Quality 80 is almost always the sweet spot.

How Lossless Compression Works

Lossless compression finds statistical redundancy in pixel data and encodes it more compactly without discarding any information. PNG uses DEFLATE (the same algorithm behind ZIP files) combined with per-row predictive filtering — storing only the difference between what the filter expected and what the pixel actually contains.

Tools like OptiPNG, Zopfli, and PNGOUT improve the encoding by searching for better filter choices and more optimal Huffman tables. These can reduce a PNG by 5-20% with no visual change whatsoever — just a smaller file that decodes to identical pixels.

Lossless WebP uses a similar prediction+entropy-coding approach with more modern predictors, achieving 26% average reduction over PNG. For images that must remain lossless (screenshots, technical diagrams, archival), converting to lossless WebP is pure win.

Optimal Settings by Image Type

Different content types compress differently. Applying the same settings to a portrait photograph and a UI screenshot produces suboptimal results for one of them.

Photographic images (portraits, landscapes, products): JPEG quality 78-85 or WebP lossy quality 75-82. These preserve visual quality while removing 60-80% of file size.

Screenshots with text: PNG (lossless) or lossless WebP. Lossy compression at any level causes text to bleed and develop ringing artefacts at small sizes.

Graphics with flat colours and transparency: PNG with lossless optimisation (Zopfli/PNGOUT pass) or lossless WebP. Lossy modes destroy flat colour boundaries.

Gradient-heavy images (product shots on solid backgrounds, digital art): quality 85+ to prevent banding, or lossless. JPEG is notorious for banding in smooth gradients below quality 85.

Animated GIFs: reduce frame count, use nearest-neighbour rescaling to reduce dimensions, or convert to MP4 (90% smaller with better colour).

Batch Compression vs One-at-a-Time

If you have more than three images to compress, batch processing saves disproportionate time. Opening images one at a time in Photoshop, exporting, checking file size, adjusting, and re-exporting takes 2-3 minutes per image. A batch compressor handles 20 images in under 30 seconds.

This is especially relevant for website migrations (every image on the site needs compressing), photography portfolios (200+ images per shoot), e-commerce catalogue updates, and social media content preparation.

A good batch compressor lets you set quality once and apply it to every file, then download the results individually or as a ZIP. Doing compression locally in your browser means zero upload time, which for 20 files × 5 MB each saves several minutes on even fast connections.

Online vs Desktop Compression

Desktop tools (ImageMagick, Photoshop export, Lightroom) give more granular control but require software installation, learning curve, and use local CPU resources.

Online tools offer convenience but raise privacy concerns: uploading a photo to a server means a copy exists outside your device, potentially in logs, temporary storage, or backup systems. For personal photos, screenshots containing sensitive data, or unreleased product photography, this is a real risk.

Browser-based tools occupy the best middle ground: they run locally using JavaScript and Canvas APIs, giving the convenience of a web UI with zero data leaving your device. No server to trust, no upload queue, no deleted-after-24-hours promise you have to take on faith.

How to Compress Images in Your Browser (Step by Step)

Using Collabs Tool's image compressor:

  • Open the compressor page — no install, no sign-up, works immediately.
  • Drag and drop up to 20 images at once, or paste from clipboard.
  • The tool auto-detects format and shows current file sizes.
  • Adjust the quality slider: 75-82 is ideal for photos, 90+ for graphics with text.
  • Preview side-by-side: original left, compressed right. Check for artefacts in faces, text, and gradients.
  • Download individually or batch-download the results.
  • Your images never left your device — verify in the Network tab: no upload request is made.

Common Compression Mistakes

Compressing already-compressed files: converting a JPEG to another JPEG at lower quality compounds artefacts. Start from the highest-quality source you have.

Using JPEG for images with text: JPEG's block-based compression causes ringing around sharp edges, making small text unreadable. Use PNG or lossless WebP.

Over-compressing below quality 60: below 60, blocking artefacts and colour banding become immediately visible on any screen. There is no setting worth quality loss that the viewer can see.

Stripping metadata without thinking: EXIF data contains camera settings, GPS coordinates, and copyright. Some compressors strip it automatically. If you want EXIF removed for privacy, that is correct. If you want it preserved for cataloguing, choose a compressor that keeps it.

Ignoring the container: converting a 12 MB PNG to JPEG and compressing it well is good. But converting a 12 MB PNG to a lossy WebP at quality 80 is better — 30% smaller at identical quality than the JPEG.

Measuring Compression Success

A good compressor gives you a before-and-after file size percentage. A 70% reduction means the new file is 30% of the original — excellent for photographic images. Anything under 40% reduction at visible quality means the image was already well-compressed (or you are using lossless mode on a complex image where lossless cannot help much).

The true test is visual: open the compressed image at 100% zoom and look at faces (skin tones should be smooth), text (edges should be crisp), and gradients (no banding). If all three pass, the compression is good regardless of the percentage.

Frequently asked questions

The questions people ask most about how to compress images without losing quality (2026), answered directly.

How do I compress an image without losing quality?

Use lossless compression (PNGOUT, Zopfli, or lossless WebP) for zero quality loss but limited size reduction (5-25%). For greater reduction with imperceptible quality loss, use lossy compression at quality 80-85 for photographs. At this level, the human eye cannot distinguish the compressed version from the original on screen.

How much can I compress a JPEG?

A typical camera JPEG (quality 95, ~5 MB) can be re-compressed to quality 80 (~1.5 MB) with no visible difference — a 70% reduction. Below quality 75 (~800 KB), artefacts become visible. The practical limit for a photographic image is about 10-15:1 compression from the raw data, which JPEG already achieves. Re-compressing an already-compressed JPEG has diminishing returns.

Can I compress a PNG without losing quality?

Yes. PNG is already lossless, but its encoding can be optimised. Tools like Zopfli or PNGOUT re-encode the PNG with better filters and Huffman tables, typically reducing file size by 5-20% with zero pixel change. Converting to lossless WebP reduces size by a further 20-30% with zero quality loss.

What is the best free image compressor?

For desktop: ImageMagick (command-line, batch processing). For online: browser-based tools like Collabs Tool's image compressor work locally without uploading. For professional workflow: TinyPNG, Squoosh, and Photoshop's 'Save for Web' export dialog all offer quality controls. The 'best' depends on whether you value speed, control, or privacy.

How do I reduce an image to 100 KB?

First convert to WebP or JPEG if it is currently PNG/BMP. Then use a compressor with a target file size option, or adjust quality progressively: start at quality 80, preview, and lower until the output is under 100 KB. For photographic content, 100 KB typically means around 800×600 pixels at quality 75.

Does compression remove EXIF data?

It depends on the tool. Many online compressors strip EXIF for simplicity. Browser-based tools can preserve EXIF if you enable that option. EXIF contains camera settings, creation date, GPS coordinates, and copyright — removing it is good for privacy but bad for photo management.

How do I compress an image for email?

For email attachments, compress to under 5 MB total. Use JPEG at quality 80 for photos, or resize to 1200-1600px width (most email viewers do not need full resolution). PNG with transparency for logos. Most email clients block WebP, so avoid it for email.

What is the difference between compression and resizing?

Compression reduces the data density within an image of the same pixel dimensions (fewer bytes per pixel). Resizing reduces the pixel dimensions themselves (from 4000×3000 to 2000×1500 = 4× fewer pixels). They combine: a resized image can also be compressed, and often the visual savings come more from resizing than from compression.

How do I compress a PNG with transparency?

Lossless compression preserves alpha: use lossless WebP (26% smaller than PNG, still transparent) or PNGOUT/Zopfli (keeps the PNG format with 5-20% reduction). If you can accept a flattened background, lossy WebP gives the greatest reduction but eliminates transparency.

Can I compress multiple images at once?

Yes. A batch image compressor processes up to 20 files simultaneously: set quality once, see before/after sizes for every file, and download all results at once. This saves enormous time compared to compressing one image at a time.

Is online image compression safe?

Only if the tool processes files locally in your browser. Upload-based tools transmit a copy of your image to a server. Even if they promise deletion, a copy existed on disk. Browser-based tools never transmit your file: the compression happens entirely in your device's JavaScript memory.

How do I compress an image in Photoshop?

File → Export → Save for Web (Legacy): choose JPEG or WebP format, set quality to 60-80 while watching the estimated file size. Or File → Export → Export As with format and quality sliders. For batch: File → Scripts → Image Processor, which applies the same settings to a folder of images.

What is the best quality-to-size ratio for WebP?

For photographic images: WebP lossy quality 75-82 typically matches JPEG quality 85 in visual quality at 25-30% smaller file size. For lossless (preserving every pixel): WebP lossless is 26% smaller than PNG by default.

How much does image compression affect website speed?

Directly. A 3 MB hero image takes approximately 2.4 seconds to load on a 10 Mbps connection. Compressed to 400 KB, it takes 0.3 seconds — a 2-second improvement in Largest Contentful Paint, which Google measures and uses for ranking.

Why does my compressed image look pixelated?

Two causes: over-compression (quality below 50 destroys blocks), or downscaling with poor resampling (a 4000×3000 image shrunk to 400×300 without high-quality interpolation loses detail). Always use a compressor with quality control, and preview at 100% before accepting the output.

Should I compress images before or after converting format?

Convert format first, then compress. Converting a 5 MB PNG to WebP already reduces size to 2 MB (lossless). Then compressing that WebP to lossy quality 80 gives the optimal 400 KB file. Compressing the PNG first then converting to WebP introduces artefacts that WebP cannot undo.

What file size should images be for a website?

Hero images: 150-300 KB. Content/blog images: 80-200 KB. Thumbnails: 10-30 KB. Icons/logos: 5-20 KB. Background textures: 50-150 KB. Total page weight target: under 1 MB for images combined. These are achievable with quality 75-85 WebP/JPEG at appropriate dimensions.

Can I uncompress a compressed image?

No. Lossy compression permanently discards data — it cannot be recovered. Lossless compression can be reversed to the original pixel data, but a lossy JPEG saved at quality 50 cannot be restored to quality 95. This is why you should always keep the highest-quality original.

How do I compress a TIFF image?

Convert it to WebP or JPEG first. TIFF is typically uncompressed or minimally compressed, so a 30 MB TIFF converts to a 500 KB-2 MB WebP/JPEG at equivalent visual quality. For lossless TIFF archival, convert to lossless WebP (75% smaller) rather than JPEG (which adds lossy artefacts).

Does quality 100 mean no compression?

Not necessarily. Quality 100 in most encoders means 'use the minimum quantisation', which still involves the DCT transformation and block-based encoding. The image will be visually identical to the original but not mathematically identical at the pixel level. True lossless requires PNG or WebP lossless mode.

What is smart/adaptive compression?

Some encoders analyse image content per-region: applying higher quality to faces and text areas while compressing backgrounds more aggressively. This preserves perceived quality at lower overall file sizes compared to uniform compression settings.

How do I compress HEIC photos from iPhone?

Convert HEIC to WebP or JPEG using a browser-based converter, then apply compression. HEIC is already well-compressed (H.265), so conversion to WebP at quality 80 might only give 10-20% additional size reduction. The bigger benefit is compatibility: the converted JPEG/WebP can be opened everywhere.