Images

Lossy Compression

Definition

Compression that permanently removes some data to make files much smaller, used for photos, audio and video.

Lossy Compression, Essential Tools glossary. Checklist card with good lossy compression habits for web photos

Lossy compression reduces file size by permanently removing some data, usually details people are unlikely to notice. JPG images, lossy WebP, AVIF, MP3 audio and most video formats use lossy compression.

Quick answer: Lossy compression is the best choice for photos on the web, often cutting file size dramatically with little visible change. Pick a moderate quality setting, compare results at normal viewing size and avoid saving the same file repeatedly, because each save loses more data.

Key Takeaways

  • Removes data permanently: Can’t be fully restored.
  • Big savings: Much smaller than lossless.
  • Ideal for photos: Smooth gradients hide changes.
  • Quality settings matter: Balance size and look.
  • Re-saving degrades: Keep originals.

Lossy vs Lossless

FeatureLossyLossless
Data keptSome removedAll kept
File sizeMuch smallerLarger
Best forPhotos, video, audioGraphics, text, screenshots
FormatsJPG, lossy WebP, AVIFPNG, lossless WebP

Google’s WebP documentation reports that WebP lossy images are 25 to 34% smaller than comparable JPEG images at equivalent quality.

Why Lossy Compression Matters

Photos are often the heaviest files on a page. Lossy compression is what makes photo-rich pages practical on mobile networks.

Used well, visitors can’t tell the difference. Used badly, images look blocky, blurry or banded, which hurts trust and product presentation.

How to Use Lossy Compression Well

Step 1: Start With a Good Original

Keep a high-quality source file.

Check: You compress from the original, not a compressed copy.

Step 2: Resize First

Scale images to display size before compressing.

Check: Dimensions fit your layout.

Step 3: Choose a Quality Setting

Try around 70 to 85 for JPG or similar for WebP.

Check: No obvious artifacts at normal size.

Step 4: Compare Side by Side

View original and compressed versions together.

Check: Differences are hard to spot.

Step 5: Use Modern Formats

Convert to WebP with a JPG to WebP converter.

Check: Files are smaller than JPG at similar quality.

An Illustrative Example

An online clothing store saves product photos at maximum JPG quality, assuming it looks best. Pages load slowly on mobile.

Testing shows quality around 80 looks identical to shoppers but cuts file size substantially. Combined with WebP conversion, product pages load much faster without any visible loss.

Myths vs Reality

  • Myth: Lossy always looks bad. Reality: Moderate settings are hard to notice.
  • Myth: Quality 100 means no loss. Reality: JPG at 100 is still lossy.
  • Myth: You can undo lossy compression. Reality: Removed data is gone.

Convert Photos to WebP

Get smaller lossy images with modern compression.

Common Use Cases

  • Photos: Blog, product and hero images.
  • Video: Streaming and embeds.
  • Audio: Podcasts and music files.
  • Social media: Platforms compress uploads too.

Do It Yourself or Get Help

Choosing quality settings and converting photos is easy to do yourself. For large catalogs, a developer can automate compression and test settings across image types.

Quick Tip

Save a few test exports at different quality levels and compare them on a phone. Small screens hide artifacts, so you may be able to compress more than you think.

How to Spot Over-Compression

Look for blocky squares in flat areas, color banding in skies and halos around edges.

Mistakes to Avoid

  • Compressing compressed files: Quality drops each time.
  • Lossy for screenshots: Text blurs.
  • Very low quality: Artifacts appear.
  • Deleting originals: Keep sources.
  • One setting for every image: Detailed images may need higher quality.

FAQ

What Is Lossy Compression?

Compression that permanently removes some data to shrink files.

Which Formats Use Lossy Compression?

JPG, lossy WebP, AVIF, MP3 and most video formats.

Can Lossy Compression Be Reversed?

No. Removed data can’t be recovered.

What Quality Setting Should I Use?

Around 70 to 85 is a common starting point for photos.

Is Lossy Bad for SEO?

No. Smaller images improve speed, as long as quality stays good.

Why Do Social Platforms Blur My Images?

They apply their own lossy compression to uploads.

Is AVIF Lossy?

AVIF supports both lossy and lossless compression.

Does Lossy Compression Affect Colors?

It can slightly, especially in gradients. Moderate settings keep colors accurate.

Should Product Photos Use Lossy Compression?

Yes, with moderate quality so details stay sharp for shoppers.

Is Video Always Lossy?

Almost all web video uses lossy compression to keep files manageable.

How Does Lossy Compression Decide What to Remove?

It removes details and color changes that human eyes are less likely to notice.

Does Lossy Compression Work on Text?

Not well. Text and sharp lines show artifacts quickly.

Where to Go Next

Kinsta BFCM Deal