How FLAC Compression Works
FLAC uses lossless compression — it reduces file size without discarding any audio data. The process works in two stages:
- Linear prediction: the encoder analyzes each block of audio samples and creates a mathematical model that predicts sample values. Only the prediction errors (residuals) need to be stored, which are much smaller than the original values.
- Entropy coding: the residuals are encoded using Rice coding, an efficient method for storing small integer values. This further reduces the data size.
Higher compression levels tell the encoder to try more prediction models and larger block sizes. This takes longer but can find better predictions, resulting in smaller residuals and smaller files. Crucially, the decoded output is always identical regardless of the compression level used.
Critical point: FLAC compression levels affect only encoding speed and file size. They do NOT affect audio quality, decoding speed, or playback compatibility. Every FLAC level produces the same audio output. It is also the same audio as the source WAV, as our WAV vs FLAC comparison explains.
All 9 Levels Compared
Here is how each FLAC compression level performs for a typical CD-quality album (16-bit, 44.1 kHz stereo, ~60 min, 635 MB as WAV):
| Level | Relative Speed | Typical Ratio | Size (60 min album) | Notes |
|---|---|---|---|---|
| 0 | Fastest | ~60% of WAV | ~381 MB | Fastest encode, largest files |
| 1 | Very fast | ~58% of WAV | ~368 MB | |
| 2 | Fast | ~57% of WAV | ~362 MB | |
| 3 | Moderate-fast | ~56% of WAV | ~356 MB | |
| 4 | Moderate | ~55% of WAV | ~349 MB | |
| 5 (default) | Moderate | ~55% of WAV | ~349 MB | Best balance — recommended |
| 6 | Slow | ~54% of WAV | ~343 MB | Marginal improvement |
| 7 | Slower | ~53% of WAV | ~337 MB | Significantly slower |
| 8 | Slowest | ~52% of WAV | ~330 MB | Max compression, 3–5x slower than level 5 |
The key insight: levels 0–5 offer the biggest improvements per step. From level 5 to 8, you save only about 19 MB on an entire album while encoding takes 3–5 times longer. This is why level 5 is the default in virtually every FLAC encoder.
The Speed vs Size Trade-off
The difference between level 0 and level 8 for a typical album is about 51 MB (381 MB vs 330 MB), or 8% of the WAV size. Meanwhile, encoding at level 8 can take 5–10 times longer than level 0.
For a single song, the time difference is negligible (fractions of a second). But for batch-converting a large library of thousands of tracks:
- Level 0: a 1,000-track library might encode in 10 minutes
- Level 5: the same library might take 25 minutes
- Level 8: the same library might take 60–90 minutes
The extra encoding time at level 8 saves roughly 19 GB on a 1,000-album collection compared to level 5 (19 MB × 1,000). Whether that trade-off is worth it depends on your storage constraints and patience. If you need bigger savings than any level gives, see how to reduce WAV file size.
What Affects FLAC Compression Ratio?
The compression ratio varies significantly based on the audio content:
- Silence and quiet passages: compress extremely well (near 100% reduction)
- Solo voice or single instrument: excellent compression (60–70% of WAV)
- Classical music: good compression due to dynamic range (50–60%)
- Pop/rock music: typical compression (55–60%)
- Heavy metal / EDM: worst compression due to constant loud, complex signals (60–70%)
- White noise: barely compresses at all (~95% of WAV)
Bit depth matters too. 24-bit audio usually compresses less well in relative terms. The extra low-order bits are mostly noise, which cannot be predicted, so a 24-bit FLAC is often 60–70% of the original WAV size.
Which Level Should You Use?
Level 5 (default) — for 99% of users. It is the standard for a reason: good compression, reasonable speed, universally supported. It is also what the CleverUtils WAV to FLAC converter uses (FFmpeg’s FLAC encoder at its default level 5).
Level 0 — when speed is critical. Use this for real-time recording (some DAWs can record directly to FLAC), live performance capture, or when converting a massive library quickly and storage is not a concern.
Level 8 — for long-term archival of large collections where every gigabyte matters. If you are archiving 10,000+ albums to a NAS and will not re-encode them, the extra few percent adds up to about 190 GB (19 MB × 10,000). Accept the slower encoding time once for permanent storage savings.
Levels 1–4 and 6–7 — rarely needed. They exist for fine-tuning, but in practice, most users choose 0, 5, or 8.
How to Set the FLAC Compression Level in Common Tools
| Tool | Setting | Default |
|---|---|---|
| flac (command line) | -0 to -8; --fast = -0, --best = -8 |
-5 |
| FFmpeg | -compression_level 0 to 12 (9–12 go beyond the reference levels) |
5 |
| Audacity | File → Export Audio, FLAC, Level 0–8 | 5 |
| CleverUtils WAV to FLAC | Fixed | 5 (FFmpeg default) |
Every FLAC decoder plays every level, so you can change the level later by re-encoding FLAC to FLAC with no loss.