SoDeep IconSoDeep
·
How digital files are compressed to save storage space

How digital files are compressed to save storage space

@Nan_Binary · June 15, 2026

Your phone isn't a magic trick; it’s just incredibly efficient at avoiding repetitive 'faff.' When you save a photo of a clear blue sky, the computer doesn't bother memorizing every single identical pixel.

Instead, it acts like a smart housekeeper. It writes a tiny note saying, 'the next ten thousand dots are this exact shade of blue,' and ignores the rest.

It’s like a knitting pattern. You don't write 'knit one, purl one' a hundred times when you can just say 'repeat.' Compression is just the clever art of shorthand.

But if we skip details, won't the final photo look like rubbish?

Not necessarily, dear. It depends on whether you're just tidying or actually throwing things out. If it's 'lossless' compression, it's like folding a laundry pile—the clothes take up less space, but they're all still there when you unfold them.

Then there's 'lossy' compression, which is a bit more ruthless. That’s like deciding you don’t need to see every individual grain of sand in a holiday snap. The computer just paints a general 'sandy' blur and hopes you won't notice the missing bits.

Wait, how does it decide what's 'important' and what's just clutter?

It’s all based on the cheeky realization that our human eyes and ears are actually quite lazy. The clever clogs who build these systems figured out that if there’s a bright flash of light, you won’t notice a tiny speck of dust right next to it.

The computer simply stops recording the bits it knows you’re too 'slow' to catch. It’s like a baker using slightly cheaper sugar in a massive wedding cake—as long as the icing is thick and the sponge is fluffy, your tongue won't notice the faff.

Does my music also get the 'cheap sugar' treatment?

Oh, absolutely. It’s called 'masking,' and it’s a brilliant way to cut the faff. Imagine you’re at a rowdy seaside pier with a brass band blaring right next to you. You wouldn't hear a seagull chirping three piers down, would you?

The computer realizes this and simply deletes the seagull. It keeps the loud trumpet because that's all your poor ears can process anyway. It’s like only packing the heavy coats for a winter holiday and leaving the silk scarves at home—you won't miss what you can't feel through the chill.

Can fancy headphones actually bring those deleted sounds back?

Bless your heart, but no. Once that poor seagull has been chucked off the pier, no amount of fancy gear will bring it back.

It’s like those heavy coats we packed—if you left the silk scarves at home, you can't just wish them into your suitcase once you've reached the hotel.

The data is simply gone. You're left with a very tidy, very efficient ghost of the original performance, and no 'high-end' cable can fetch what isn't there.

Explore in card mode →

Related topics

How a computer uses 'queues' to handle information in orderThe logic of 'database indexing' for finding information quicklyThe way a computer screen uses pixels to display imagesThe way 'responsive design' makes a website fit any screen sizeThe logic of 'pathfinding algorithms' for navigating digital mapsThe way a computer uses 'encryption' to keep messages private