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 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
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
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.
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
- Related glossary terms: