Compression
Lossless compression reduces a file's size without permanently removing any data. The data is stored more efficiently, and when the file is decompressed the original is rebuilt exactly.
It works by storing repeated patterns only once, with a note of where each copy belongs, instead of storing every copy. For example, if the same sequence of characters appears many times in a document, it can be stored once with references to each place it is used. Nothing is thrown away. Once a file compressed this way is decompressed, you get back an identical copy: every character, pixel and sound sample is restored exactly as it was. Lossless does not mean that no compression has taken place, or that the file stays the same size; it means that no data is lost.
OCR GCSE Computer Science · Compression