Glossary termData compression method

Lossless Audio Compression

Also known as: Lossless audio

Compression of digital audio that reduces file size while allowing exact, bit-for-bit reconstruction of the original samples on decoding.

Lossless audio compression shrinks audio files without discarding any information: decoding produces samples identical to the original. Music typically compresses to roughly half to two-thirds of its original size, depending on the material, with quiet and sparse recordings compressing better than dense, noisy ones. Common formats include FLAC, Apple Lossless (ALAC), WavPack and Monkey's Audio. Because the output is exact, lossless files can be converted to any other format without accumulated quality loss.

Most lossless audio codecs work in two stages. First, a predictor, such as a linear prediction model, estimates each sample from previous samples, and only the difference between prediction and reality, called the residual, is kept. Because residuals are usually small numbers, they can then be stored efficiently with entropy coding such as the Rice coding used by FLAC. Redundancy between stereo channels is reduced by coding their sum and difference when they are similar. General-purpose compressors such as ZIP perform poorly on audio because they do not model its structure.

Lossless formats are used for archiving, professional exchange, CD ripping and high-resolution distribution, and several streaming services offer lossless tiers. FLAC, created by Josh Coalson and later maintained under the Xiph.Org Foundation, became the most widely supported open format. Whether listeners can distinguish lossless files from high-bit-rate lossy encodes is debated, and blind tests often find the difference hard to hear, but lossless storage removes the question entirely. Tools such as FFmpeg and Audacity read and write lossless formats.

Key points

  • Lossless compression reduces audio file size while allowing exact reconstruction of the original.
  • Codecs such as FLAC predict each sample and store the small residual efficiently.
  • Typical music files shrink to roughly half to two-thirds of their original size.
  • Lossless formats suit archiving and professional exchange because they never accumulate quality loss.

Related entries

Technology

FLAC

AudioFOSS

Open, royalty-free audio format that compresses digital audio without losing any information, widely used for music archiving.

Glossary term

Lossy Compression

AudioProgramming

Data compression that permanently discards some information to achieve much smaller files, aiming to remove what human perception is least likely to notice.

Glossary term

Audio Codec

AudioProgramming

Algorithm or software that encodes audio into a compressed or structured digital format and decodes it back for playback, such as MP3, AAC or FLAC.

Organization

Nonprofit organization that develops free, open and royalty-free multimedia formats and software, including Ogg, Vorbis, FLAC and Opus.

Glossary term

Number of samples per second used to represent an audio signal digitally, which sets the highest frequency a recording can capture.

Glossary term

Number of bits used to store each audio sample, which sets the precision of amplitude values and the theoretical dynamic range of a recording.

Technology

FFmpeg

AudioFOSSProgramming

Free and open-source suite of libraries and command-line tools for recording, converting, streaming and processing audio and video.

Featured in guides

Referenced by

Other entries that discuss or point to Lossless Audio Compression.