Skip to content
Aback Audio

FLAC compression levels explained: what 0 to 8 really change

FLAC compression levels 0 to 8 change encode time and file size by a few percent, never quality. What each level does and how to really make a FLAC smaller.

By Devvrat Hans13 min read

FLAC compression levels run from 0 to 8, and they never change the sound. Every level decodes to exactly the same samples; the level only decides how hard the encoder searches for a compact way to store them. Going from the default level 5 to level 8 typically saves around 1 percent more space and takes noticeably longer to encode, while level 0 is quick and a few percent bigger. If you need a FLAC file to be much smaller, the compression level is the wrong knob: bit depth, sample rate, channels or a lossy format are what move the size. This article explains what each level does, how big FLAC files usually are, and what a FLAC compressor can and cannot do for you.

0

quality difference

Between any two FLAC levels

5

default level

libFLAC and most rippers

about 1-2%

extra saving

Level 8 vs level 5, typical

about 70%

smaller

24-bit/96 kHz to 16-bit/44.1 kHz

How FLAC compression works

FLAC (Free Lossless Audio Codec) shrinks audio in three steps. It cuts the signal into blocks of a few thousand samples. For each block it builds a predictor, a small formula that guesses each sample from the ones just before it. Then it stores only the residual, the difference between the guess and the real sample, using Rice coding, which spends few bits on small numbers. Because music is smooth from one sample to the next, the residuals are much smaller than the samples, and that is where the saving comes from.

For stereo files FLAC can also store mid and side channels instead of left and right. When the two channels are similar, the side channel (left minus right) is close to zero and costs almost nothing. Every step is exactly reversible, which is why FLAC is lossless: the decoder repeats the prediction, adds back the residual and gets the original integer samples. The encoder even stores an MD5 checksum of the original audio in the file header, so a decoder can prove the result is identical.

The compression level controls how many options the encoder tries at each step: how large the blocks are, how complex the predictor may be, whether it tests mid-side stereo, and how finely it tunes the Rice coding. More options mean a slightly better fit, at the cost of time.

FLAC compression levels 0 to 8, level by level

The reference encoder, libFLAC from Xiph.org, defines nine presets. The exact parameters have been tuned over the years, but the shape has stayed the same: levels 0 to 2 use simple fixed predictors and short blocks, and levels 3 to 8 use linear prediction (LPC) with longer blocks and an increasing amount of searching.

libFLAC presets, simplified (FLAC 1.4)
LevelBlock sizeStereo handlingPredictorEncode speed
01152Left/right onlyFixed predictorsFastest
11152Adaptive mid-sideFixed predictorsVery fast
21152Mid-side, tested every blockFixed predictorsVery fast
34096Left/right onlyLPC up to order 6Fast
44096Adaptive mid-sideLPC up to order 8Fast
5 (default)4096Mid-side, tested every blockLPC up to order 8Moderate
64096Mid-side, tested every blockLPC order 8, more windowsSlower
74096Mid-side, tested every blockLPC up to order 12Slow
84096Mid-side, tested every blockLPC order 12, most windowsSlowest preset

Beyond level 8, the command-line encoder has extra switches such as -e (exhaustive model search) and -p (exhaustive precision search). They can make encoding many times slower for savings that are usually a fraction of a percent. They are interesting for experiments, not for everyday libraries.

FLAC level 0 vs 8: size, encode time and decode time

The practical question is how much the levels differ in the three things you can measure. Exact numbers depend on the music, the CPU and the encoder version, so treat these as typical patterns rather than benchmarks.

  • File size: level 5 is commonly a few percent smaller than level 0, and level 8 is commonly around 1 to 2 percent smaller than level 5. On a 30 MB track, that is a few hundred kilobytes between 5 and 8.
  • Encode time: level 0 is extremely fast. Level 8 can take several times as long as level 5. On a modern computer even level 8 encodes much faster than real time, so this mostly matters when you convert a whole library or encode on a slow device.
  • Decode time: nearly identical across levels. Decoding only replays the chosen predictor; it does not repeat the search. Higher LPC orders add a little arithmetic, but on any phone, computer or streamer from the last decade the difference is negligible, including for battery life.

That asymmetry is why many people simply encode at level 8 once and never think about it again: you pay the cost once, at encode time, and every playback afterwards is just as cheap. Others stay with the default level 5 because it captures almost all of the benefit. Both are reasonable. Level 0 makes sense for live recording, real-time streaming or very weak hardware, where encoding speed matters more than a few percent of space.

Does FLAC compression affect quality?

No. This is the most common misunderstanding, often carried over from MP3, where a lower bitrate really does sound worse. A FLAC file at level 0 and the same audio at level 8 decode to the same numbers, bit for bit. You can verify this yourself: decode both to WAV with the FLAC to WAV converter and compare, or run flac -t on each file, which checks the stored MD5 checksum against the decoded audio. Claims that higher levels sound "warmer" or "tighter" are not supported by the data in the file.

How small does FLAC get? Typical compression ratios

The material has a far bigger effect on FLAC size than the level does. Predictable, quiet, sparse audio compresses well; loud, dense, noisy audio does not. The ranges below are rough and vary from recording to recording; use them as expectations, not targets.

Typical FLAC size as a share of the equivalent WAV (rough ranges)
MaterialFLAC size vs WAVWhy
Solo piano, classical, acousticabout 35-55%Wide dynamics, quiet passages, smooth waveforms
Jazz, folk, gently mastered popabout 45-60%Moderate density and loudness
Loud modern pop, rock, EDMabout 60-75%Heavy compression and limiting leave little to predict
Distorted metal, noise, field ambienceabout 65-85%Noise-like signals are close to unpredictable
Speech with pausesabout 30-50%Long gaps and a narrow frequency range
24-bit hi-res musicabout 55-75%The lowest bits are mostly noise and resist compression

Put in megabytes, CD-quality stereo WAV is 10.6 MB per minute, so CD-quality FLAC usually lands somewhere between about 4 and 8 MB per minute. A 24-bit, 96 kHz stereo WAV is 34.6 MB per minute, so a hi-res FLAC is often around 20 to 26 MB per minute. Our WAV vs FLAC comparison covers the arithmetic in more detail.

Before you try to shrink a file, check what it actually contains with the Audio Inspector: sample rate, bit depth, channels, duration and the real bitrate. A FLAC at 600 kbps is already compact; one at 3,000 kbps is almost certainly hi-res and has much more room to come down.

How to reduce FLAC file size (the methods that work)

If re-encoding at a higher level only saves a percent or two, what actually works? These methods are listed from the most to the least conservative.

1. Reduce 24-bit to 16-bit, with dither

Finished music needs no more than the roughly 96 dB of dynamic range that 16-bit provides. The bottom eight bits of a 24-bit recording are mostly noise from the recording chain, and noise is exactly what FLAC cannot compress, so dropping to 16-bit often saves more than the one third you might expect from the arithmetic. Dither, a tiny amount of shaped noise, should be added during the reduction so quiet fades do not pick up distortion. See bit depth explained for why 16-bit is enough for listening.

2. Lower the sample rate from 96 or 192 kHz

A 96 kHz file can hold frequencies up to 48 kHz, more than twice what human hearing covers. Converting to 48 kHz roughly halves the data; converting to 44.1 kHz matches CD. Combined with 16-bit, a 24-bit, 96 kHz track goes from 4,608 kbps of raw audio to 1,411 kbps, about 70 percent less before FLAC even starts. Sample rate explained covers when high rates are useful (editing, pitch shifting) and when they are not. It is also worth looking at a hi-res file in the Spectrogram Viewer first: a hard cutoff around 20 to 22 kHz means it was upsampled from CD quality and the extra rate holds nothing.

3. Convert to mono, but only when it is really mono

A stereo file with two identical channels (dual mono, common with old recordings and some voice exports) seems like an obvious target. In practice FLAC already handles it well: with mid-side stereo, which levels 1, 2 and 4 to 8 use, an identical pair produces a side channel of zeros that costs almost nothing. Mono conversion saves more when the channels are nearly but not exactly the same, such as two microphones on one speaker. Do not fold true stereo music to mono for space; it changes the mix.

4. Remove oversized artwork and padding

Some FLACs carry a multi-megabyte PNG cover and a reserved padding block. Removing or replacing the artwork with Remove Audio Metadata leaves the audio untouched. This helps most for short tracks and large libraries of singles.

5. Go lossy when lossless is not needed

For a phone, a car or sharing, a lossy copy is the biggest saving: 320 kbps MP3 is 2.4 MB per minute, 256 kbps AAC is 1.9 MB per minute. Keep the FLAC as your archive and make lossy copies from it. Our FLAC to MP3 and WAV guide and the FLAC to MP3 converter cover that route, and lossless vs lossy audio explains the trade-off.

What the Aback FLAC Compressor does

The FLAC Compressor runs in your browser. It decodes the FLAC to floating-point audio inside a background worker, applies any resolution change you pick, and encodes the result with libFLAC compiled to WebAssembly. The file is processed locally in your browser and is not uploaded.

To be precise about levels: the encoder runs at compression level 5, libFLAC's default, and the tool does not offer a level selector. That is a deliberate trade-off for a browser tool, where encoding time on a phone matters, but it has a consequence worth knowing. Recompressing a file that was made at level 0, 1 or 2 can save a few percent. Recompressing a file that was already made at level 8 will come out about the same size or very slightly larger. If squeezing the last percent at level 8 is your goal, the desktop flac encoder from Xiph.org does that: flac -8 -V -o output.flac input.flac re-encodes a FLAC directly and verifies the result.

Where the tool helps is the bigger savings. It has four presets:

  • Lossless recompress writes FLAC at the source sample rate. A 24-bit source stays 24-bit; a 16-bit source stays 16-bit rather than being padded.
  • CD quality writes 16-bit FLAC at 44.1 kHz, with TPDF dither during the bit-depth reduction. This is the preset that turns hi-res files into much smaller CD-resolution FLACs.
  • MP3 320 writes a 320 kbps MP3 for players that do not support FLAC.
  • AAC 256 writes a 256 kbps M4A, a good fit for Apple devices.

The output panel lets you choose 16-bit or 24-bit FLAC, and Advanced settings add the sample rate (FLAC accepts 8 kHz up to 192 kHz), channels (keep, mono mix-down or stereo) and a dither switch. Opus is available as an output where your browser supports Opus encoding. FLAC output keeps up to eight channels; MP3, AAC and Opus are stereo, and the tool says so when it downmixes. Tags and cover art are carried over to FLAC, MP3, M4A and Opus.

  1. 1

    Open the FLAC

    Drop the file on the tool. The file card shows its sample rate, bit depth, channels, duration and bitrate.

  2. 2

    Pick a preset

    Lossless recompress for a bit-identical copy, CD quality for hi-res files, MP3 320 or AAC 256 for a small listening copy.

  3. 3

    Compress and compare

    Press Compress. You see the original and new sizes side by side, with the percentage saved.

  4. 4

    Listen and download

    Play the result, download it, and keep the original if you changed bit depth, sample rate or format.

Open the FLAC CompressorRecompress a FLAC, turn hi-res into 16-bit/44.1 kHz FLAC, or make an MP3 or AAC copy, processed locally in your browser.

Starting from WAV instead? The WAV to FLAC converter uses the same encoder and typically halves the size of music without losing a sample.

Which FLAC compression level should you use?

SituationLevelReason
Ripping CDs or building an archive5 to 8Encode once, play many times; 8 saves a little more
Converting a large library on a laptop5Nearly all the benefit in much less time
Recording live or streaming in real time0 to 2Lowest CPU load while encoding
Old, very slow encoding hardware0 to 3Encoding cost matters more than size
Re-encoding files that are already level 5+Leave themGains are too small to be worth the effort

Whatever you choose, keep one rule: never pick a level to change sound quality, because it cannot. Pick it for time and space, and pick bit depth, sample rate and format for real size reductions.

Tools used in this article

Frequently asked questions

Is FLAC level 8 better quality than level 5?

No. Both decode to exactly the same samples. Level 8 only makes the file slightly smaller, typically around 1 to 2 percent, in exchange for a longer encode.

What is the default FLAC compression level?

Level 5 in libFLAC, the reference encoder, and in many rippers and editors that use it. Some programs default to 8 instead; check the settings of your software.

Does a higher FLAC level drain more battery during playback?

Not in any meaningful way. Decoding effort barely changes between levels, because the decoder does not repeat the encoder's search. Bit depth and sample rate affect decoding work more than the level does.

Why did my FLAC get bigger after recompressing it?

It was probably encoded at a higher level than the one used for recompression, or the new file carries more metadata. Our FLAC Compressor encodes at level 5, so a level 8 source can come out slightly larger. Use CD quality or a lossy preset for a real reduction.

How do I reduce FLAC file size the most without going lossy?

Convert hi-res files to 16-bit, 44.1 or 48 kHz with dither. That can cut a 24-bit, 96 kHz FLAC by around two thirds or more. It is a permanent change in resolution, so keep the original as an archive.

Can I tell which compression level a FLAC was made with?

Not reliably. The level is not stored in the file. Some encoders write their name and version in the tags, and the block size gives a hint (1152 suggests levels 0 to 2), but two levels can produce identical-looking files.

Is FLAC better than ALAC or WAV for storage?

For size, FLAC and ALAC are similar and both much smaller than WAV, with identical audio. FLAC has wider support outside Apple software and stores tags and artwork reliably, which makes it a common choice for libraries.

Related articles