If, upon decoding by a codec, an audio file compression algorithm restores the sound to its original fidelity, it is said to be lossless. To the extent that the exact sound quality of the uncompressed signal cannot be reconstructed, the algorithm is said to be lossy.