What is an audio codec? A jargon-free explainer

Have you ever overheard someone casually talking about their preferred audio codecs, or perhaps questioning the value of one model of wireless earbuds versus another because of the audio codecs they do (or don’t) support? And then, did you kinda want to ask them what they were talking about, but didn’t want to look dumb, or poorly informed? We got you. (But we’re also going to question the sort of people you’re hanging out with.)

Despite their highly technical-sounding names, audio codecs are pretty easy to understand once all the jargon is cleared away. Here’s everything a lay person should know about audio codecs.

What is a codec?

First, let’s address that word: codec. It’s a portmanteau.

It’s two terms smashed together into one word — in this case, encode and decode — thus, “codec.” Codecs can apply to video, too. But for our purposes, we’re talking about audio.

Any kind of sound that can be recorded — from music, to a TV soundtrack, to your favorite podcast, can be affected by a codec.

What does a codec do?

Screenshot of iTunes showing CD import choices.

Codecs let computer hardware or software change information from one format to another (encoding) and also provide a way to work with the new format (decoding). The most common reason for using a codec is to reduce the amount of information needed to store an audio (or video) recording. Here’s an example: If you take the audio on a CD and use a codec to turn those songs into MP3 files, you can reduce the size (in megabytes) of those tracks to as little as 10% of their original size.

That saves a lot of room on a computer hard drive or in a smartphone’s memory, and it also saves on mobile data when you want to stream those songs from a music service.

Codecs versus file formats

Here’s where it can get a tad confusing. There’s a tendency to use “codec” and “file format” interchangeably. It’s pretty common to hear someone refer to “using the MP3 codec,” or “FLAC is a better codec than MP3.”

Technically speaking, a codec is the set of instructions for creating or reading a specific file format (like an MP3). But because those instructions are baked deep into the software and hardware we use every day, like iTunes, a Roku device, or an iPhone, when most people say “codec,” what they really mean is “file format,” because that’s the part that’s visible to us when we look at the name of an audio file e.g. beatles-penny-lane.mp3. Now that you know the difference between them, you can forget about the instructions part completely — from here on in, when we say the word codec, we’re going to be talking about audio file formats only.

Why do I even need to know about audio codecs?

Astell&Kern AK UW100 earbuds seen next to the company's SR25 portable media player.Astell&Kern AK UW100 earbuds seen next to the company’s SR25 portable media player. Simon Cohen / Digital Trends

The two biggest reasons to be passingly familiar with audio codecs are quality and compatibility.

While virtually all audio codecs make files smaller than the original source, some codecs achieve this space-saving by destroying some of the audible sound. This is known as lossy compression, because of the information that is lost in the process. MP3 and AAC are the two most popular lossy audio codecs.

Despite their lossy nature, these codecs can still deliver very high-quality audio. But for the most discerning listeners, even a tiny amount of lost information is unacceptable. For these folks, only lossless compression will do.

As its name suggests, lossless codecs like FLAC and ALAC, make files smaller without destroying any audible portion of the original. But since there’s no such thing as a free lunch, files that use lossless codecs are almost always bigger than their lossy counterparts. That’s the quality aspect of codecs.

On the compatibility side, you simply need to be mindful that not all playback devices or apps are necessarily compatible with all codecs. These days, it’s rare to run into a widely used audio codec that doesn’t enjoy support among the most popular gadgets, but it can happen. For instance, iTunes, which is still used by many to organize and play digital music on Macs and PCs, doesn’t work with FLAC, which is the most popular of the lossless audio codecs.

There are workarounds for this limitation, but it’s always a good idea to find out if the equipment and software you own or you’re contemplating buying, will work with the audio codecs you want to use. Note: This question of codec compatibility is only important in the context of the device that you want to use to actually play audio. Headphones and speakers — even wireless ones — do not need to be compatible with any specific audio codec in order to work.

But there is a small caveat for wireless headphones and earbuds that we’ll get to in a moment.

The five most popular audio codecs

Lossy audio codecs File extension(s) Lossless audio codecs File extension(s)
MP3 (MPEG Audio Layer-3) .mp3 FLAC (Free Lossless Audio Codec) .flac
AAC (Advanced Audio Coding) .m4a, .mp4, .3gp .m4a, .m4b, .m4p, .m4r, .m4v, .aac ALAC (Apple Lossless Audio Codec) .m4a (or, rarely, .caf)
Vorbis .ogg

Beyond lossless: hi-res audio

Another advantage to lossless audio codecs is that they support hi-res audio, something lossy codecs can’t do. Hi-res audio is loosely defined as anything that’s better than CD quality. Why hi-res matters and what you need to enjoy it is a little outside the scope of what we’re going to cover in this article, but if you’re keen to learn all about it, we have a great hi-res audio explainer.

Bluetooth audio codecs: the exception to the rule

Remember when I said that codecs and file formats were essentially the same thing?

I might have been oversimplifying a bit. You will likely run into terms like SBC, AAC, aptX, LDAC, LC3, or LHDC in the context of Bluetooth headphones, earbuds, and mobile devices. These are all examples of audio codecs, but they are not audio codecs that are used to create audio files.

Instead, they are used to temporarily convert audio into a format that can be streamed wirelessly over Bluetooth connections. With the sole exception of AAC, you will likely never run into an audio file that uses one of these codecs. What’s the difference between these Bluetooth codecs and why would you need to know about them?

Stay tuned, we’ll have an explainer for that shortly!

Editors’ Recommendations

bloom-and-wild listed on couponmatrix.ukcineworld listed on couponmatrix.ukflip-out listed on couponmatrix.ukmorphe listed on couponmatrix.ukstairfurb listed on couponmatrix.ukwhistlefish listed on couponmatrix.uk
bloom-and-wild listed on couponmatrix.ukShow you care with a beautiful bouquet from Bloom & Wild. If you want a quick, simple way to send flowers - be it a colourful collection of peonies and roses or larger blends of white lilies, altitude roses and lisianthus - you'll find the perfect pick with this great selection. Make the most of a Bloom & Wild voucher from us and save on a gorgeous bunch for that special someone.
cineworld listed on couponmatrix.ukA trip to the pictures is the perfect activity for a Friday evening, a midweek celebration or a rainy weekend, and Cineworld’s cinema experience is like no other. As the second-largest cinema company in the world, Cineworld sets the standard for innovation. Experience cinema like never before with IMAX, offering immersive high-resolution visuals and unparalleled sound quality; Superscreen, boasting massive screens and multidimensional Dolby sound; ScreenX, providing a 270° viewing experience; and 4DX, delivering incredible effects such as water, wind and moving seats. Whether you’re drawn to summer blockbusters or remastered classics, gather your friends and seize a Cineworld discount to enjoy more movie magic! Cineworld caters to all tastes, screening the best family-friendly movies, world cinema, rom-com, dramas and even performances from the National Theatre.
flip-out listed on couponmatrix.ukWith a floor of trampolines, stunt zones and even resident DJs, your bundles of energy will love Flip Out?—the nation’s best-loved trampoline park. Packed with activities, your booking will cost less than you think with our Flip Out discount codes. We update our page regularly with the best sales and offers, including NHS discount codes, so if you check Groupon first they’ll get to dance, play and bounce for the best price!
morphe listed on couponmatrix.ukBeauty lovers, listen up - we’ve partnered with ones of the best makeup brands to help you save on all the essentials. Morphe is best known for its gorgeous eyeshadow palettes and makeup brushes, and with good reason—combining incredible quality with an affordable price tag and cruelty-free credentials, these are a must-have in every budding MUA’s kit! Make the most of a Morphe discount code to save on bold, beautiful picks to give you a flawless finish.
stairfurb listed on couponmatrix.ukStairfurb is an online retailer specializing in the sale of glass staircases and banisters. They offer a wide range of products to meet the needs of their customers, and they are committed to providing the best possible prices. In addition, Stairfurb offers a variety of discounts and coupon codes to help their customers save even more money. So if you're looking for a great deal on your next renovation, be sure to check out our Stairfurb discount codes to save money on your next purchase! At Groupon, we understand that everyone loves a great deal. That's why we work hard to find the best discounts and coupon codes for our customers. Good quality services and high quality products can be costly, that’s why when it comes to Stairfurb, we are always on the lookout for ways to help you save money. So be sure to check back often for the latest and greatest from Groupon and Stairfurb! If you're looking for a top-quality staircase or bannister at an unbeatable price, look no further than Stairfurb. They specialise in staircases and bannister and with a wide range from embedded oak to stainless steel, you are guaranteed to find the best style for your home. So what are you waiting for? Start your next project with a Stairfurb coupon code and save on your big project today, happy renovating!
whistlefish listed on couponmatrix.ukFrom handcrafted cards to scented candles and framed canvases, Whistlefish makes giving gifts an absolute pleasure. Featuring an endearing collection of prints that bring warmth and colour to any space, customers need only a Whistlefish discount code to inject some verve into their home for a fraction of the price. Even if you’re on the lookout for some flavoured gin or delicious chocolates to share, Whistlefish has just the ticket for you to make merry with your favourite people.