In the context of data transmission, it is called source coding encoding done at the source of the data before it is stored or transmitted. The process of reducing the size of a data file is often referred to as data compression. Typically, a device that performs data compression is referred to as an encoder, and one that performs the reversal of the process (decompression) as a decoder. Lossy compression reduces bits by removing unnecessary or less important information.
No information is lost in lossless compression.
Lossless compression reduces bits by identifying and eliminating statistical redundancy. Any particular compression is either lossy or lossless. In signal processing, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation.
For the term in computer programming, see Source code.