r/askscience • • Jun 17 '12

Computing How does file compression work?

(like with WinRAR)

I don't really understand how a 4GB file can be compressed down into less than a gigabyte. If it could be compressed that small, why do we bother with large file sizes in the first place? Why isn't compression pushed more often?

414 Upvotes

146 comments sorted by

View all comments

Show parent comments

2

u/Nate1492 Jun 18 '12

That fails to meet the criteria of not already being compressed... Which I briefly covered.

1

u/arienh4 Jun 18 '12

Yeah, I know. What I was trying to say is that in real world situations, most files are already compressed. There are hardly any documents that are not.