Skip to content
A hiking path through a green mountain valley
Back to blog
Explained

Lossy vs lossless compression, in plain words

Some files get smaller by throwing away detail. Others get smaller and come back exactly the same. Here is the difference and when it matters.

Eric Rada · Founder · · 3 min read

In short

Compression makes a file smaller. There are two ways to do it, and the difference is what happens to the data.

Lossless compression keeps everything. When you open the file, you get the original back exactly. Lossy compression throws away some data to get a much smaller file.

What lossless means

According to Wikipedia, lossless compression allows the original data to be perfectly rebuilt from the compressed data, with no loss of information.

A ZIP file is a good example. You can pack files into it and unpack them later, and every file is exactly the same as before.

What lossy means

Lossy compression only lets you rebuild an approximation of the original. Some detail is gone for good, and the file is usually much smaller.

MP3 is a lossy audio format. Wikipedia says it can commonly cut the size of CD quality audio by 75 to 95 percent, depending on the bit rate.

Which formats are which

For images, MDN lists JPEG as lossy and PNG and GIF as lossless. WebP and AVIF can be either one, you choose when you save.

For audio, FLAC is lossless and MP3 is lossy. ZIP is lossless for any kind of file.

When lossy is fine

MDN says lossy suits photos and other images with smooth changes of color, because the lost detail is hard to see.

For viewing, streaming or a quick share, a lossy file is often all you need and it saves a lot of space.

When lossless is better

MDN says lossless suits screenshots, diagrams, logos and line art. In lossy versions, blur and colored fringes around text and sharp edges are very visible.

Lossless is also the safe choice for originals you may edit later, because you do not lose detail each time you save.

Keeping the original when you send

Many apps compress photos and videos again when you send them, and you cannot get the detail back. If the other person needs the original, send it as a file.

A Room never compresses or converts what you upload. The person opens one link in the browser, with no account, and gets the files exactly as you saved them.

Never compressed or converted, one link, no account needed. Free up to 10 GB.

Send the original, not a smaller copy →

Questions

Is ZIP lossy or lossless?

Lossless. Wikipedia lists ZIP as a lossless format, so your files come back exactly the same.

Is JPG lossy?

Yes. MDN describes JPEG as lossy. PNG is lossless.

Can I get the lost detail back?

No. Lossy compression only lets you rebuild an approximation of the original.

One link. Everyone’s photos.
Free up to 10 GB. Guests never need an account.
Create a Room