Audio Tech

MP3, AAC, Opus or FLAC: Which Codec Is Best for Internet Radio?

A handful of formats carry almost every radio stream online. Each makes a different trade between sound, data and the devices that can play it.

Browse 30,000+ stations
Written by Oleg Antonov, founder of Sentri Radio
7 min read

Which codec is best for internet radio?

There is no single winner, because each format solves a different problem. AAC is the best balance for most stations: good sound at 96 to 128 kbps and playback on almost every phone, browser and smart speaker. HE-AAC is the choice when data is tight. MP3 is the safest for compatibility. Opus is the most modern and very efficient, but fewer radio devices support it. FLAC is the only lossless option, and it costs several times the bandwidth.

What is a codec, and what does lossy mean?

A codec (coder-decoder) is the method used to shrink audio for sending and expand it again for playback. Lossy codecs, which include MP3, AAC, Opus and Vorbis, use a model of human hearing to decide which parts of the sound you are least likely to notice and leave them out. A loud sound masks quieter sounds close to it in frequency, for example, so detail hidden that way can be dropped (Painter and Spanias, 2000). Whatever is removed is gone for good. Lossless codecs such as FLAC pack the audio more tightly without removing anything, so the player rebuilds the original exactly, which is why lossless streams need so much more data.

MP3: the format everything plays

MP3 (MPEG-1 Audio Layer III) was standardised in 1993, developed mainly at Germany's Fraunhofer Institute for Integrated Circuits (Brandenburg, 1999), and almost every device made since the late 1990s can decode it. Its patents have expired and Fraunhofer ended its licensing programme in 2017, so it costs nothing to use. The price is efficiency. MP3 needs around 192 kbps to sound clean on difficult material, where newer codecs manage with less, and it tops out at 320 kbps.

AAC and HE-AAC: the broadcast standard

AAC (Advanced Audio Coding) was standardised in 1997 as part of MPEG-2 and later extended in MPEG-4. It was designed as MP3's successor and generally sounds better at the same bitrate, especially below about 160 kbps. It is built into virtually every phone, browser and streaming device, and it is the usual audio format for HTTP Live Streaming.

HE-AAC adds two techniques for low bitrates. Spectral band replication sends only a compact description of the high frequencies and rebuilds them in the player, and version 2 adds parametric stereo, which sends one channel plus a few numbers describing the stereo image (Meltzer and Moser, 2006). Together they keep music listenable at 32 to 64 kbps. That is why HE-AAC v2 is the codec of DAB+ digital radio in Europe and Australia, and why many stations offer a 48 or 64 kbps AAC stream for mobile listeners. Above roughly 80 to 96 kbps the extra techniques stop helping, and plain AAC (AAC-LC) sounds better.

Opus: the efficient newcomer

Opus was published by the Internet Engineering Task Force in 2012 as RFC 6716. It combines two earlier designs, SILK, built for speech, and CELT, built for music with very low delay, and switches between them as the audio demands. It runs from 6 to 510 kbps, carries no royalties, and is the mandatory audio codec for WebRTC, the technology behind video calls in the browser. For music at 96 to 128 kbps it is among the best-sounding lossy options.

Its weakness for radio is reach. Browsers and Android phones play Opus well, but car head units, older smart speakers and many dedicated internet radio receivers were built for MP3 and AAC, so a station that offers only Opus loses some listeners. Opus radio streams usually travel in an Ogg container on Icecast servers.

Ogg Vorbis

Vorbis, released by the Xiph.Org Foundation in 2002, was the open alternative to MP3 before Opus existed. It still turns up on community and hobbyist stations, often at high bitrates, and a few stations in our HiFi catalogue use it. For a new station, Opus has taken its place.

FLAC: lossless radio

FLAC is the only common lossless format for radio, published as an Internet standard, RFC 9639, in 2024. A FLAC stream at CD resolution typically runs between about 600 and 1,100 kbps, depending on how dense the music is, so it costs roughly five to nine times the data of a 128 kbps stream and needs a server that supports it. Our guide to FLAC covers how it works and what you need to hear the difference.

CodecLossless?Typical radio bitratesStrengthWeakness
MP3No128 to 320 kbpsPlays on everything, royalty-freeLeast efficient
AAC-LCNo96 to 256 kbpsBetter than MP3 at the same rate, near universalSome very old receivers lack it
HE-AAC v1 and v2No32 to 64 kbpsListenable music at very low dataWorse than AAC-LC at higher rates
OpusNo64 to 160 kbpsVery efficient, royalty-freePatchy support in car and hardware radios
Ogg VorbisNo128 to 320 kbpsOpen and royalty-freeReplaced by Opus for new stations
FLACYesabout 600 to 1,100 kbpsNothing removedHigh data use, fewer players

Which should a listener choose?

When a station offers several versions, choose by connection first and codec second. On mobile data, a 64 kbps HE-AAC or 96 kbps Opus stream gives the best sound per megabyte. On Wi-Fi, 256 to 320 kbps AAC or MP3 is hard to tell from the original on most equipment. Lossless is worth it on Wi-Fi with wired headphones or a good speaker, but most Bluetooth links re-compress the audio before you hear it. Our data usage guide lists what each bitrate costs per hour.

Which should a broadcaster choose?

Offer two streams if your server and budget allow: AAC at 128 kbps or more as the main stream, and HE-AAC at 48 to 64 kbps for mobile listeners. Add MP3 only if you know part of your audience uses old receivers. For a lossless feed, check that your streaming server carries FLAC (Icecast does) and budget for the bandwidth, which grows with every listener connected. Our comparison of station software covers the setup side.

How can you tell which codec a station uses?

Directories show the codec and bitrate a station reports about itself, and Sentri shows them on every station page. The report is not always right: some streams labelled FLAC turn out to be MP3 when you connect. Every station in the Sentri HiFi catalogue was connected to and checked for the codec and bitrate it actually sends.

References

  1. Brandenburg, K. (1999). MP3 and AAC explained. Audio Engineering Society 17th International Conference on High-Quality Audio Coding, Florence.
  2. Painter, T., & Spanias, A. (2000). Perceptual coding of digital audio. Proceedings of the IEEE, 88(4), 451-513.
  3. International Organization for Standardization (1993). ISO/IEC 11172-3: Coding of moving pictures and associated audio for digital storage media at up to about 1.5 Mbit/s, Part 3: Audio.
  4. International Organization for Standardization (1997). ISO/IEC 13818-7: Generic coding of moving pictures and associated audio information, Part 7: Advanced Audio Coding (AAC).
  5. Meltzer, S., & Moser, G. (2006). MPEG-4 HE-AAC v2: audio coding for today's digital media world. EBU Technical Review.
  6. European Telecommunications Standards Institute. ETSI TS 102 563: Digital Audio Broadcasting (DAB); Transport of Advanced Audio Coding (AAC) audio.
  7. Valin, J.-M., Vos, K., & Terriberry, T. (2012). Definition of the Opus Audio Codec. RFC 6716, Internet Engineering Task Force.
  8. Valin, J.-M., & Bran, C. (2016). WebRTC Audio Codec and Processing Requirements. RFC 7874, Internet Engineering Task Force.
  9. Xiph.Org Foundation. Vorbis I Specification. xiph.org.
  10. van Beurden, M. Q. C., & Weaver, A. (2024). Free Lossless Audio Codec (FLAC). RFC 9639, Internet Engineering Task Force.

Keep reading