How does music streaming and MP3 compression work?
At these rates almost everything dropped was hidden by louder sounds. In blind tests most people can’t tell 256–320 kbps from CD.
Overview
Short answer
Encoders split sound into pitches and drop what your ears can’t hear behind louder sounds, shrinking songs to a tenth of their CD size.
A song on a CD takes about 37 MB. A streaming app sends the same song in 3 to 8 MB, and most people can't hear the difference. The trick is not clever packing but knowing which sounds your ears would miss anyway, and simply not sending them.
Play with the figure, then press Next (or the → key) to go step by step.
Sound as numbers
Digital audio measures the sound wave 44,100 times a second, with each measurement stored as a 16-bit number, for two channels. That is 1,411 kilobits every second (1,411 kbps). Storing every one of those numbers is lossless but bulky.
Splitting sound into pitches
An encoder (MP3, AAC, Ogg Vorbis or Opus) cuts the music into short frames, a few hundredths of a second long, and splits each into many frequency bands, from deep bass to high treble, like the bars in the picture. It then decides how much detail each band really needs.
Masking: what your ears ignore
A psychoacoustic model predicts what you can hear. Very quiet sounds, and very high pitches, fall below your hearing threshold. A loud sound also masks quieter sounds at nearby pitches, especially just above it, and for a moment after it. Those hidden parts are thrown away or stored roughly, and the saved bits go to the parts you notice. At lower bitrates the encoder has to cut harder, removing highs and fine detail you can hear.
Streaming it to you
Apps send the music in small chunks over the internet, keeping a buffer of the next few seconds so a brief drop doesn't stop playback. On a weak mobile signal they switch to a lower bitrate automatically. Songs you download for offline listening are stored encrypted on your phone. Lossless and "hi-res" tiers use formats like FLAC and ALAC that shrink files about 40% without throwing anything away.
Common myths
- "Higher numbers always sound better." Above about 256 kbps for AAC or Opus, blind listening tests rarely find a difference.
- "Bluetooth headphones play lossless." Most Bluetooth links re-compress the audio again on the way to your ears.
- "MP3 just deletes high notes." It removes whatever is masked at every pitch; cutting the highest notes is only one part.
Questions people ask
How much data does music streaming use?
About 45–70 MB an hour at normal quality (96–160 kbps) and about 145 MB an hour at 320 kbps. Lossless uses roughly 400–600 MB an hour.
What is the difference between MP3 and AAC?
AAC is a newer, more efficient design: at the same bitrate it usually sounds better than MP3. Most streaming services use AAC, Ogg Vorbis or Opus.
Is lossless audio worth it?
With good wired headphones in a quiet room some people notice a small difference. On phone speakers, in a car or over Bluetooth, it is very hard to hear.
Why does music sound “swirly” on a bad connection?
The app has switched to a very low bitrate, so the encoder throws away audible detail and leaves artefacts, especially on cymbals and voices.
What does “hi-res audio” mean?
More samples per second and more bits per sample than CD (for example 24-bit, 96 kHz). It mainly helps in studios; for listening, CD quality already covers human hearing.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01What is CD-quality audio’s bitrate?
02What is masking?
03What does a lossless format like FLAC throw away?
04Why do apps lower quality on a weak signal?
Sources & more
Sources
- MP3 (Wikipedia)(opens in a new tab)
- Psychoacoustics (Wikipedia)(opens in a new tab)
- Auditory masking (Wikipedia)(opens in a new tab)
- Advanced Audio Coding (Wikipedia)(opens in a new tab)
Last updated 2026-11-27
Keep exploring
- Screens & MediaExplore it
How does a TV screen make colours?
- Home AppliancesExplore it
How does a refrigerator work?
- Home AppliancesExplore it
How does a microwave oven work?
- Phones & GadgetsExplore it
How does noise cancelling work?
- Home AppliancesExplore it
How does an air conditioner work?
- Home AppliancesExplore it
How does a heat pump work?