kb/data/developer.mozilla.org/en-US/docs/Glossary/Lossy_compression-0.md

11 KiB

title chunk source category tags date_saved instance
Lossy compression - Glossary | MDN 1/3 https://developer.mozilla.org/en-US/docs/Glossary/Lossy_compression reference web, html, css, javascript, documentation 2026-05-05T05:37:06.402682+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Lossy compression

Lossy compression

Lossy compression , or irreversible compression, is a data-compression method that uses inexact approximations and partial-data discarding to represent content. In simpler terms: lossy compression causes data from the initial file to be lost, possibly causing degradation in quality. The process of such compression is irreversible; once lossy compression of the content has been performed, the content cannot be restored to its original state. Therefore, content that has undergone lossy compression should generally not be further edited. Lossy compression is widely used in image formats such as JPEG, WebP, and audio and video formats such as MP3, MP4, H.264 and others. Compression methods such as WebP are capable of both lossy and lossless compression depending on the compression level or the options you want to use during encoding. Lossy compression image Although there is no obvious difference in quality between the two images above, the size of the second image has been significantly reduced using lossy compression.

In this article

See also