FLAC
FLAC (Free Lossless Audio Codec) is a format for compressing digital audio losslessly: it reduces the storage needed without losing any information. It is free in the sense that its specification is open and its reference implementation open source; it has low complexity compared with other lossless formats, and both encoding and decoding can be done without floating-point arithmetic.[1:1] FLAC was invented by Josh Coalson in 2000, who remained its lead developer through 2013,[2:1] and was standardized by the IETF as RFC 9639 in December 2024.[1:1][2:1]
How it works
FLAC can compress because samples in audio signals are highly correlated with their close neighbours. Unlike general-purpose compressors, it removes redundancy only in the very short term, looking back at most 32 samples. The input is split into contiguous blocks; a stereo signal can be transformed into a mid-side signal or a similar form to remove redundancy between channels; a predictor estimates each sample from the samples that preceded it; and the difference between the original and predicted signals, the residual, is coded losslessly with Rice coding, a subset of Golomb coding.[1:2]
The decoded audio is bit-for-bit identical to what went into the encoder. Each frame carries a 16-bit CRC for detecting transmission errors, and the file header can store an MD5 signature of the original audio for checking integrity. Decoding needs only integer arithmetic and is much less compute-intensive than for most perceptual codecs such as MP3.[2:2]
FLAC handles pulse-code modulated audio with 1 to 8 channels, sampling rates from 1 to 1,048,575 Hz and bit depths from 4 to 32 bits, though most tools have been optimized for CD audio.[1:1]
Licensing and use
FLAC's documentation and tools are distributed under Xiph's variant of the BSD licence, and no patents are known to cover it.[2:2] A 2012 Xiph.Org essay argues that a properly encoded lossy file is indistinguishable from the original at a moderate bitrate, but that lossless formats such as FLAC avoid the damage of poor lossy encoders and the generational loss of repeated re-encoding, which matters for remixing, sampling and codec research.[3:1]
In archives the format is gaining ground: the US National Archives lists FLAC among its preferred formats for digital audio and the Smithsonian Institution Archives as acceptable, while the Digital Preservation Coalition notes that it is less widely used than WAV, being newer and less explicitly supported by tools, though an acceptable preservation format.[2:1]
- ^a ^b ^c ↗ rf-abstract ^ ↗ rf-method Beurden, M.Q.C. van; Weaver, A. (2024-12). Free Lossless Audio Codec (FLAC). Internet Engineering Task Force. https://doi.org/10.17487/RFC9639 https://www.rfc-editor.org/rfc/rfc9639.
- ^a ^b ^c ↗ lf-history ^a ^b ↗ lf-features Library of Congress (2026-07-20). FLAC (Free Lossless Audio Codec) Family. Sustainability of Digital Formats: Planning for Library of Congress Collections. https://www.loc.gov/preservation/digital/formats/fdd/fdd000657.shtml.
- ^ ↗ xi-lossless Montgomery, Christopher (2012-03-01). 24/192 Music Downloads ...and why they make no sense. Xiph.Org. https://people.xiph.org/~xiphmont/demo/neil-young.html.
Wikidata: Q219848