The difference between WAV and FLAC

digital-audiofile formatflaclosslesswav

My understanding is that the WAV and FLAC formats are containers for lossless audio. I have seen the FLAC format as being perhaps better because it is able to losslessly compress audio from say a WAV file.

However today I noticed that bleep is offering both WAV and FLAC files to download. Is their practice redundant or am I missing something?

After reading allquixotic and
slhck answers I was curious as to the
audio codec for the wav files in question. This is what I found

Input #0, wav, from 'Exai-001-Autechre-Fleure.wav':
  Duration: 00:04:51.39, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
                 stereo, s16, 1411 kb/s

Best Answer

You might be confused about different concepts:

  • FLAC is a lossless audio codec (its container also happens to be called FLAC, but the main idea here is the actual codec).
  • WAV, on the other hand, as a container can hold numerous kinds of audio codecs, but mostly, you'll find PCM-encoded audio.1

Since FLAC is all about mathematically lossless compression, FLAC files will be smaller than corresponding PCM-encoded WAV files, since PCM doesn't allow for lossless compression and just represents the data as-is.2

So, simply put: Take a WAV file with PCM-encoded audio, and the corresponding (mathematically equal) FLAC file will be a tad smaller. The downside is that FLAC is not as widely supported as WAV. For example, most (all?) operating systems won't play or convert FLAC files without extra software.

Bottom line, I'd say their practice is redundant but a nice gesture for folks who don't want to download massive amounts of data and prefer the compressed version.

1 – For example, variants of MP3 can also be stored in a .wav file.
2 – The analogy for images would be that BMP files contain the raw image data in an uncompressed form, whereas a (lossless) PNG is much smaller, but showing the exact same contents.