What is FLAC?

Learn what FLAC is, how lossless audio compression works, and why audiophiles prefer it. Understand FLAC quality, file size, and how it compares to MP3.

The FLAC lossless audio format explained: how it works, its specs, and when to use it.

FLAC

What is FLAC?

2001 Year CreatedLossless CompressionAudiophile Audio Primary Use

FLAC (Free Lossless Audio Codec) is an open-source audio format that compresses audio without any quality loss, preserving the exact original audio data while reducing file size by 40-60% compared to uncompressed WAV.

Understanding FLAC helps you choose the right format for your specific needs and workflow.

How FLAC Works

FLAC stands for Free Lossless Audio Codec, and the word that matters most is lossless: it shrinks an audio file without throwing away a single sample. Where MP3 and AAC achieve small sizes by discarding sound the ear is unlikely to notice, FLAC keeps everything and instead compresses the data the way a ZIP archive compresses a document, by finding and removing mathematical redundancy. Decode a FLAC file and you get back the original PCM audio bit for bit, identical to the WAV it came from.

It does this in two stages. First, linear prediction: the encoder looks at each short block of audio and fits a simple mathematical model that predicts where the waveform is heading based on the samples just before it. Audio is highly predictable over short spans, so the model is usually close. Rather than store the actual samples, FLAC stores only the small residual, the difference between the prediction and the real sample, which is a much smaller number and therefore takes far fewer bits.

Second, those residuals are packed using Rice coding, an entropy-coding method that is extremely efficient for exactly the kind of small, clustered-around-zero numbers that prediction residuals tend to be. The combination typically compresses music to between 50% and 70% of the original WAV size, not as small as a lossy MP3, but with zero quality cost. A FLAC stream is laid out as a section of metadata blocks (tags, seek points, cover art) followed by the audio frames, and it carries per-frame and stream-level checksums so a player can detect if a file has been corrupted in storage or transfer.

FLAC exposes a compression-level setting from 0 to 8. Higher levels make the encoder work harder to find redundancy, producing a slightly smaller file at the cost of longer encoding time; decoding speed is essentially the same regardless of level. Because the output is lossless either way, the level only trades encode time against a few percent of file size, there is no quality decision to make.

History and Standardization

FLAC was created by Josh Coalson starting in 2000, at a time when the only ways to store lossless audio were bulky WAV files or proprietary formats. It quickly became the open alternative and was adopted by the Xiph.Org Foundation, the same non-profit that stewards Ogg, Vorbis, and Opus, which gave it a stable institutional home and a commitment to keeping it free.

For most of its life FLAC was defined not by a formal standards document but by its reference implementation and detailed format specification, which in practice worked well because the reference encoder and decoder were open and widely used. That changed in 2024, when the IETF published RFC 9639, giving FLAC a formal, vendor-neutral specification more than two decades after its first release, a notable milestone that cements its status as a long-term archival format.

Its openness is the main reason FLAC became the default for serious music archiving and high-resolution downloads. Because it is free of patents and licensing fees, hardware makers, software developers, and online stores could adopt it without cost, and it spread to network music players, phones, and dedicated hi-fi gear. Today it is the de facto standard for lossless music distribution outside Apple's ecosystem.

FLAC Compared to Other Lossless Formats

FLAC's main rivals are ALAC (Apple Lossless) and WMA Lossless (Microsoft). All three are lossless and produce similar file sizes, so the difference is not sound quality, it is openness and support. ALAC is now open-source but is most at home in the Apple ecosystem; WMA Lossless is tied to Windows and effectively legacy. FLAC, being free, open, and patent-unencumbered, has the widest cross-platform support of the three and is the safest choice for a library you want to keep for decades and play on any device.

Against a lossy format like MP3 or AAC, the trade-off is simple: FLAC files are several times larger, but they are an exact copy of the master, so they can be edited, re-encoded to any other format, and archived indefinitely without ever degrading. The usual workflow is to rip or record to FLAC as the master library, then generate lossy MP3 or AAC copies on demand for phones or streaming where size matters more than perfection.

Practical niceties round out the format: FLAC supports fast seeking (jumping to any point in a long file without scanning from the start), rich embedded metadata and cover art, and embedded cue sheets, which together make it convenient for storing an entire album as a single tagged file. Those qualities are why it became the archivist's and audiophile's format of choice rather than just a smaller WAV.

FLAC vs Other Audio Formats

FeatureFLACMP3WAVALAC
CompressionLossless[1]LossyUncompressedLossless
QualityPerfect[1]ReducedPerfectPerfect
File size40-60% of WAV[1]SmallestLargestSimilar to FLAC
LicenseOpen-source[4]Patented (expired)OpenApple
Best forLossless archivingPortable musicEditingApple ecosystem

FLAC preserves full audio quality with smaller files than WAV, while MP3 sacrifices fidelity for the smallest size.

FLAC Technical Specifications

Developer
Josh Coalson / Xiph.Org[1]
File Extension
.flac[1]
Compression
Lossless[1]
Bit Depth
Up to 32-bit[1]
Sample Rate
Up to 655,350 Hz[1]
Channels
Up to 8 (7.1 surround)[1]
Metadata
Vorbis comments[1]
MIME Type
audio/flac[1]

Advantages & Disadvantages

Advantages

Perfect Quality | FileFormer, Decoding a FLAC file produces bit-for-bit identical audio to the original - no quality loss whatsoever.

Smaller than WAV | FileFormer, FLAC compresses audio by 40-60% without any quality loss, saving significant storage compared to WAV or AIFF.

Open Source | FileFormer, FLAC is completely free and open-source with no licensing fees or patent restrictions.

Excellent Metadata | FileFormer, Supports comprehensive tags for artist, album, artwork, lyrics, and ReplayGain data.

Disadvantages

Larger than MP3 | FileFormer, FLAC files are typically 3-5x larger than equivalent MP3 files, using significantly more storage.

Limited Streaming | FileFormer, Most music streaming services use lossy formats. Only Tidal and Qobuz offer FLAC streaming.

No iTunes Native Support | FileFormer, Apple iTunes and iOS do not support FLAC natively; you need to convert to ALAC for Apple devices.

CPU Intensive | FileFormer, Decoding high-resolution FLAC files requires more processing power than MP3 on older hardware.

Common Use Cases

Here are the most common scenarios where FLAC is the right choice:

Music Archiving | FileFormer

Audiophiles and music collectors use FLAC to rip CDs with perfect quality preservation.

Hi-Res Music | FileFormer

High-resolution audio (24-bit/96kHz or higher) is distributed in FLAC for audiophile listening.

Recording Masters | FileFormer

Musicians and producers store master recordings in FLAC before converting to lossy formats for distribution.

Home Theater | FileFormer

FLAC is used for lossless surround sound audio in home theater setups.

Frequently Asked Questions

Can you hear the difference between FLAC and MP3?

For most people in normal listening conditions, no. The difference is audible only on high-end audio equipment with trained ears.

Is FLAC worth the larger file size?

If storage is not a concern and you have quality audio equipment, yes. For casual listening on earbuds, high-quality MP3 is sufficient.

Can iPhone play FLAC?

Not natively. iOS does not support FLAC. Use VLC app, or convert to ALAC (Apple Lossless) for native iPhone playback.

How do I convert CD to FLAC?

Use EAC (Exact Audio Copy) or dBpoweramp for accurate CD ripping to FLAC. These tools verify data integrity during ripping.

What is the difference between FLAC and ALAC?

Both are lossless. FLAC is open-source and widely compatible; ALAC (Apple Lossless) is Apple's equivalent used in iTunes and iOS.

References

  1. FLAC (Free Lossless Audio Codec) - Library of Congress
  2. FLAC (Free Lossless Audio Codec), Version 1.1.2 - Library of Congress
  3. RFC 9639: Free Lossless Audio Codec (FLAC) - IETF
  4. FLAC Format Specification - Xiph.Org