HEIC2ALLHEIC2ALL
Learn more

Lossy vs Lossless WebP: Which Should You Choose?

Pick the right WebP mode and settings for photos, graphics, and transparent images.

Convert to WebP

Introduction

Two WebP files can look identical but be wildly different in size. The difference often comes down to one choice: lossy or lossless compression.

People convert to WebP expecting smaller files, but the wrong mode or settings can leave you with either degraded quality or no size improvement at all. Understanding what WebP is is the first step; choosing the right compression mode is the next.

This guide explains lossy vs lossless WebP in practical terms, gives you decision rules for common image types, and provides a quick workflow for testing your choices.

Lossy vs Lossless: Plain Language Definitions

Lossy compression reduces file size by discarding some image data. The encoder analyzes the image and removes information that is less noticeable to the human eye. The result is a smaller file, but you cannot recover the original data — the compression is one-way.

Lossless compression reduces file size without discarding any data. The encoder finds more efficient ways to represent the same information, so every pixel in the output matches the original exactly. Files are typically larger than lossy, but there is no quality loss.

Both modes support transparency (alpha channel). However, lossy compression can introduce artifacts around transparent edges, especially at lower quality settings. Lossless preserves edges perfectly.

When to Choose Lossy WebP

Lossy WebP is best for photographs, complex images, and anything with smooth gradients. These image types compress extremely well because small changes in color values are hard to see.

Why lossy works for photos:

  • Photographs have continuous tones and subtle color variations
  • The human eye is less sensitive to small changes in busy areas
  • Lossy compression can reduce file sizes by 70-90% with minimal visible difference

Quality slider guidance:

Use CaseStarting QualityNotes
Hero images, portfolios85-90Preserve detail where quality matters
Product photos80-85Good balance of size and clarity
Thumbnails, previews70-75Smaller size acceptable at display size

Watch out for: Lossy compression can cause "ringing" artifacts around sharp edges, especially text overlaid on photos. If your image has text or UI elements, test carefully or consider lossless.

For a step-by-step guide, see our JPG to WebP tutorial.

When to Choose Lossless WebP

Lossless WebP is best for logos, UI elements, screenshots, and graphics with sharp edges and flat colors. These image types have hard transitions between colors that lossy compression tends to blur.

Why lossless works for graphics:

  • Flat colors and hard edges compress efficiently with lossless algorithms
  • No risk of artifacts around text or fine lines
  • Pixel-perfect output matches the original exactly

When lossless may not help:

  • Complex images (like photos) do not compress well losslessly — files can be larger than the original PNG
  • If your "graphic" is actually a photo with some text, lossy at high quality may be better

A common workflow: try lossless first, compare the file size to a high-quality lossy export, and keep whichever is smaller while meeting your quality needs.

For images with transparency, see our PNG to WebP tutorial, which covers edge handling in detail.

Decision Table

Use this table as a starting point, then adjust based on your results:

Image TypeRecommended ModeStarting SettingsWhat to Check
PhotographLossyQuality 80Banding in gradients, skin texture
Product photoLossyQuality 85Detail in fabric/texture
Logo (flat colors)LosslessFile size vs PNG
UI iconLosslessEdge sharpness
Screenshot with textLosslessText readability
Illustration (gradients)Try bothLossy 85-90Banding, edge artifacts
Transparent PNGLossless or high lossyQuality 90+ if lossyEdge halos on dark/light backgrounds

Quick Test Workflow

Here is a simple workflow to find the best settings for any image:

  1. Start with a baseline: Convert the image to WebP with your expected mode (lossy for photos, lossless for graphics).
  2. Compare file sizes: Note the WebP size vs the original. If lossless is larger than the original PNG, try lossy at high quality.
  3. Visual check: Open both files at 100% zoom. For transparent images, place them on light and dark backgrounds.
  4. Adjust and repeat: If artifacts are visible, increase quality or switch modes. If the file is too large, decrease quality carefully.
  5. Keep the winner: Save the version that meets your size and quality requirements.

With img2webp.com, you can try a lossy and a lossless export in seconds and compare directly.

Common Mistakes

Avoid these pitfalls when choosing WebP settings:

  • Using lossy for screenshots with text: Text edges blur easily. Use lossless or quality 95+.
  • Over-optimizing small icons: A 2KB icon becoming 1KB does not matter if HTTP headers add 500 bytes. Focus on large images first.
  • Assuming WebP always beats PNG/JPG: Test your specific images. Some highly optimized PNGs are hard to beat, and some JPGs are already close to optimal.
  • Ignoring dimensions: A 4000px image at quality 80 is still huge. Resize to actual usage dimensions first.

For more guidance on when to keep your original format, see our WebP vs PNG comparison.

Summary

The right WebP mode depends on your image content:

  • Photos and gradients: Use lossy compression, starting around quality 80.
  • Graphics, logos, and text: Use lossless compression, or lossy at 90+ if lossless is too large.
  • Transparent images: Test edges carefully; lossless avoids halos.

The best approach is to test both modes on your actual images and compare. A few minutes of testing saves hours of rework later.