Term: compression

Compression is the process of running data through a mathematical algorithm, which results in data that contains exactly the same information, but ideally uses less data, i.e. results in a smaller file.

The key to any compression algorithm is that when decompressed, the original data is recovered, exactly.

Most often we compress data contained in files on our computers. A compression program, such as WinZip, 7-zip, gzip, WinRAR, and many others, reads the file to be compressed, runs the data it contains through the compression algorithm, and writes the result to a new, typically smaller, file.

A compression algorithm is that mathematical function, of which there are many; zip, rar, and gzip are three common examples. Any program that understands a specific algorithm can typically compress or decompress files interchangeably with other programs that understand the same algorithm. Many programs, 7-Zip being one good example, have the ability to understand several different compression algorithms.

Many compression programs, WinZip and similar being examples, double as file *archiving* programs. In addition to compressing files, these programs bundle multiple compressed files into a single output file, referred to as a compressed archive.

It’s worth noting that all compression algorithms have worst-case scenarios, where running data through the compression algorithm produces a result that is larger than the original. While possible, with most common algorithms it’s actually relatively rare.

« Back to Glossary Index
Free Newsletter!

Free Newsletter!

Subscribe to The Ask Leo! Newsletter and get a copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. This ebook will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.

Then each week in The Ask Leo! Newsletter you’ll get even more tips, tricks, answers and ideas to help you use your technology more effectively and stay safe doing so.

Check your email to confirm!