Why compression matters
Without compression, the digital world would grind to a halt. A single minute of uncompressed high-definition video can occupy several gigabytes. A phone camera's raw image runs to tens of megabytes. Streaming films, sending photos on messaging apps and storing thousands of songs on a phone are all possible only because data is routinely squeezed to a small fraction of its original size. Compression saves storage space, reduces mobile data bills and lets content travel faster across networks. It happens so constantly and invisibly, in web pages, video calls and app updates, that most people never realise they are using it hundreds of times a day.
Lossless: nothing lost
Lossless compression shrinks data so it can be restored exactly, bit for bit. It is essential for documents, software and spreadsheets, where a single changed character could cause problems. One idea is to replace repetition with references: rather than storing a phrase every time it appears, store it once and point back to it. Another is to give frequent symbols short codes and rare ones longer codes, as Morse code does with the common letter E, a single dot. Methods of this kind, developed from the 1950s to the 1970s, still underpin zip files and the PNG image format. Text often shrinks to half its size or less.
The limit of squeezing
There is a theoretical floor to lossless compression. In 1948 Claude Shannon showed that data has an information content, called entropy, which sets how far it can be compressed without loss. Highly repetitive data, such as a long sequence of identical pixels, compresses enormously; truly random data cannot be compressed at all. That is why zipping an already compressed photo or video saves almost nothing: the redundancy has already gone. It also explains why encrypted files do not compress, since good encryption makes data look random. No method can shrink every possible file, despite occasional claims to the contrary that circulate online.
Lossy: clever forgetting
For images, sound and video, far greater savings come from discarding information. Lossy formats such as JPEG for photos and MP3 and AAC for audio rely on the limits of human perception. Our eyes are more sensitive to brightness than to fine colour detail, so colour can be stored at lower resolution. Our ears miss quiet sounds masked by louder ones at nearby frequencies, so those can be dropped. The encoder transforms the data into a form where these less important components can be identified, then rounds or removes them. A music file can thus shrink to about a tenth of its original size with little audible difference.
Video: predicting the next frame
Video compression adds a powerful trick. Consecutive frames are usually very similar, so instead of storing each in full, an encoder stores occasional complete key frames and, in between, only the changes, described as blocks of image that have moved. A news presenter against a still background compresses extremely well; confetti, rain or fast sport compresses poorly, which is why such scenes sometimes break into blocky artefacts on a weak connection. Each new generation of video standard achieves similar quality at a lower bit rate, at the cost of more computing power to encode and decode, often handled by dedicated circuits in phones.
Trade-offs to remember
Lossy compression cannot be reversed. Once detail is discarded it is gone, and repeatedly editing and re-saving a JPEG gradually degrades it, rather like photocopying a photocopy. Professionals therefore keep original or lossless masters and create compressed copies for sharing. Messaging apps often compress photos and videos heavily to save data, which is why images forwarded many times look soft and blotchy; sending as a document usually preserves the original. Choosing quality settings is a balance between file size and fidelity. The next time a video adjusts its sharpness as your signal changes, compression is quietly making that compromise on your behalf.
Sources & further reading
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



