/
index.md
16 lines (11 loc) · 1022 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: Lossless compression
slug: Glossary/Lossless_compression
page-type: glossary-definition
---
{{GlossarySidebar}}
**Lossless compression** is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data. Lossless compression methods are reversible. Examples of lossless compression include {{glossary("GZip_compression", "gzip")}}, {{glossary("Brotli_compression", "brotli")}}, {{glossary("Zstandard compression", "Zstandard")}}, {{glossary("WebP")}}, and {{glossary("PNG")}}.
{{glossary("Lossy compression")}}, on the other hand, uses inexact approximations by discarding some data from the original file, making it an irreversible compression method.
Compression methods such as {{glossary("WebP")}} are capable of [both lossy and lossless compression](https://developers.google.com/speed/webp/docs/compression) depending on the compression level or the options you want to use during encoding.
## See also
- {{glossary("Lossy compression")}}