We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Lossless Compression?

By R. Kayne
Updated: May 16, 2024
Views: 34,247
Share

Lossless compression "packs data" into a smaller file size by using a kind of internal shorthand to signify redundant data. If an original file is 1.5MB (megabytes), lossless compression can reduce it to about half that size, depending on the type of file being compressed. This makes it convenient for transferring files across the Internet, as smaller files transfer faster. This process is also handy for storing files as they take up less room.

The zip convention, used in programs like WinZip, uses lossless compression. For this reason zip software is popular for compressing program and data files. That's because when these files are decompressed, all bytes must be present to ensure their integrity. If bytes are missing from a program, it won't run. If bytes are missing from a data file, it will be incomplete and garbled. GIF image files also use lossless compression.

Lossless compression has advantages and disadvantages. The advantage is that the compressed file will decompress to an exact duplicate of the original file, mirroring its quality. The disadvantage is that the compression ratio is not all that high, precisely because no data is lost.

To get a higher compression ratio -- to reduce a file significantly beyond 50% -- you must use lossy compression. Lossy compression will strip a file of some of its redundant data. Because of this data loss, only certain applications are fit for lossy compression, like graphics, audio, and video. Lossy compression necessarily reduces the quality of the file to arrive at the resulting highly compressed size, but depending on the need, the loss may acceptable and even unnoticeable in some cases.

JPEG uses lossy compression, which is why converting a GIF file to JPEG will reduce it in size. It will also reduce the quality to some extent.

Lossless and lossy compression have become part of our every day vocabulary largely due to the popularity of MP3 music files. A standard sound file in WAV format, converted to a MP3 file will lose much data as MP3 employs a lossy, high-compression algorithm that tosses much of the data out. This makes the resulting file much smaller so that several dozen MP3 files can fit, for example, on a single compact disk, verses a handful of WAV files. However the sound quality of the MP3 file will be slightly lower than the original WAV, noticeably so to some.

As always, whether compressing video, graphics or audio, the ideal is to balance the high quality of lossless compression against the convenience of lossy compression. Choosing the right lossy convention is a matter of personal choice and good results depend heavily on the quality of the original file.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By anon257436 — On Mar 26, 2012

Actually the term lossy is used and is an acceptable term, at least, in the computer science field.

By Catapult — On Feb 24, 2011

Some programs for lossless compression, like WinZip, can be confusing to use. I at least usually need to ask a friend to help me when using them for the first time, though maybe that has more to do with my computer literacy than anything else.

By behaviourism — On Feb 22, 2011

While I know the difference here, I have never heard of "lossy compression"- only lossless compression. I am not sure people actually do use that term, though maybe some do.

Share
https://www.easytechjunkie.com/what-is-lossless-compression.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.