Back

How does MP3 compression work?

Why your music still sounds good (even when it’s squished)

5 March 2026

The science behind streaming-ready sound

Ever wondered how your favourite playlist fits into your phone’s storage without eating up all the space? Or how Spotify streams tunes using less data than sending a single cat meme? The answer lies in MP3 compression—a clever bit of computer science that reduces file sizes while keeping your music sounding crisp.

Here’s how it works

At its core, music is a waveform—a wiggly line that represents vibrating air. Storing that wiggly line in full detail would take up a ridiculous amount of space, which isn’t ideal for phones or streaming services. That’s where the MP3 algorithm steps in.

First, it transforms the waveform using something called a Fourier Transform. Think of it as turning your song into a shopping list of sound frequencies, showing how loud each note is.

Then comes the brutal bit: data gets thrown away. Why? Because human hearing isn’t perfect. We can’t hear super high frequencies, quiet sounds get masked by louder ones, and tiny differences often go unnoticed. MP3 takes advantage of this, binning the parts you wouldn’t notice anyway. It’s a bit like describing a painting using fewer colours—you lose some detail, but the overall vibe remains.

MP3 compression also rounds off numbers. For example, if a note measures 0.762983 loud, it might round that to 0.76. Your ears won’t know the difference, but your storage space will thank you.

So no, MP3 files don’t work like ZIP files looking for repeating patterns. They’re smarter than that—they selectively get rid of the bits your brain skips over, keeping what matters.

Want to know more? Check out our Lesson Hacker YouTube video 

For more Lesson Hacker videos, check out the CraignDave YouTube playlist HERE.

Visit our website to explore more cutting-edge tech-transforming news in the computer science world!

Related posts

How does optical disc burning work?

Discover what really happens when you “burn” a CD or DVD—it’s not fire, it’s a laser precisely encoding your data onto the disc. From pits and lands to rewritable mood-ring discs, here’s how your files get stored.

14 August 2026

What is a VPN?

Ever wondered how a VPN really works? Think of it as a clever middleman that keeps your online activity private and your data safe.

12 August 2026

Should parents be sharing your life on social media?

“Sharenting”—where parents share their children’s lives online—might seem harmless, but it comes with risks like identity theft, cyberbullying, and impacts on self-esteem. Learn how families can share responsibly while keeping kids’ privacy safe.

10 August 2026

What Is Concurrency in Computing?

Concurrency is the clever trick your computer uses to juggle multiple tasks at once—without actually doing them simultaneously.
From web pages to deadlocks, discover how this behind-the-scenes magic keeps your digital world running (mostly) smoothly.

7 August 2026

Why are silicon wafers round when chips are square?

Ever wondered why silicon wafers are round when everything they power is square? It’s all down to the way we grow and slice silicon — a fascinating mix of physics, efficiency, and a touch of irony.

5 August 2026

What Is the Best Material for a Smartphone?

Your smartphone isn’t made from one perfect material — it’s a carefully engineered compromise of plastic, metal, glass, and ceramic. Each choice solves a problem… and creates another.

3 August 2026

AI torrenting may not be so legal after all

AI training is facing a legal reality check as courts draw the line between fair use and copyright infringement. We look at why data provenance and licensing are now critical in modern AI development.

31 July 2026

Why are LEDs so efficient?

Ever wondered why LEDs use so little energy? Discover how semiconductors create light directly, using far less energy and heat than traditional light bulbs.

29 July 2026

Why Pixar still chooses CPUs over GPUs

Pixar still relies on CPUs for their final film renders — not because they’re faster, but because accuracy beats speed when every photon counts. Discover why GPUs, despite their power, aren’t perfect for cinematic-quality frames.