Audio Codecs Explained: AAC, MP3, Opus, FLAC
An audio codec is the algorithm that turns sound into bits and back again. The codec you start with and the one you end with determine the quality, size, and compatibility of every audio file. Here is how the four most common ones actually compare.
Quick Answer
Codec versus container, once more
A codec is the compression algorithm. A container is the file format that holds the compressed streams. An MP4 file is a container; the audio inside it is encoded with a codec — usually AAC, but sometimes MP3, ALAC, or Opus. A file extension tells you the container; the codec is a property of the stream inside. This distinction is the single most confused concept in multimedia, and getting it straight answers most of the "why won't this file play" questions you will ever have. See the container formats guide for the container side of the picture.
Lossy versus lossless
Every audio codec falls into one of two camps. Lossy codecs — MP3, AAC, Opus, Vorbis — throw away audio information that humans are unlikely to hear, in exchange for dramatic file size reductions. The discarded data cannot be recovered; re-encoding a lossy file degrades quality each generation. Lossless codecs — FLAC, ALAC, WavPack — compress the audio using reversible mathematical transforms, like zipping a file. The decoded output is byte-for-byte identical to the input. The trade-off is file size: a lossless file is typically five to ten times larger than a transparent lossy encoding of the same audio.
For most consumer use — music on a phone, voice memos, podcasts — lossy is the right answer. Lossless is the right answer when you are editing, archiving, or working with masters that may be re-encoded many times. MP3 is always lossy. There is no lossless MP3.
The four you will meet
MP3
The original lossy codec, released 1993. Universal compatibility is its main strength. At 192 kbps VBR, it is transparent to nearly all listeners. Maximum bitrate 320 kbps. Patents expired 2017.
AAC
Advanced Audio Coding, released 1997. The default audio codec inside MP4 files and the iTunes Store. Roughly 30% more efficient than MP3 — 128 kbps AAC sounds like 160 kbps MP3. The codec your MP4 probably already contains.
Opus
Released 2012 by the Xiph.Org Foundation. The most efficient lossy codec in widespread use — 96 kbps Opus rivals 160 kbps MP3. Used by WebRTC, Discord, YouTube. Variable bitrate by design. Open and royalty-free.
FLAC
Free Lossless Audio Codec, released 2001. Compresses audio by 50–60% with zero loss. A CD-quality FLAC is roughly 35 MB for a three-minute song; the same song as 320 kbps MP3 is 7 MB. The format of choice for archival.
AAC versus MP3: the practical comparison
AAC is technically superior to MP3 at every bitrate. It was designed as MP3's successor by the same MPEG group, with a decade of psychoacoustic research behind it. At 128 kbps, AAC is transparent for most music; MP3 at the same rate shows audible artifacts on difficult material like castanets or applause. At 192 kbps and above, the gap narrows and most listeners cannot tell them apart.
So why does anyone still convert to MP3? Compatibility. MP3 plays on every device ever manufactured with a speaker; AAC plays on most modern devices but not all. Old car stereos, budget MP3 players, and some set-top boxes do not support AAC. If you are unsure where your file will end up, MP3 is the safe choice. If you know your target supports AAC and you want better quality per byte, keep AAC.
For a deeper explanation of MP3 specifically, see the what is MP3 guide.
Opus: the codec you have probably never heard of
Opus is the modern champion of lossy audio. Designed by the Xiph.Org Foundation (the same group behind FLAC) and standardised in 2012, it handles both speech and music in a single codec, and it does both better than the dedicated alternatives. At 64 kbps, Opus speech is clearer than a phone call. At 96 kbps, Opus music is on par with 160 kbps MP3. At 128 kbps, it rivals CD quality for most listeners.
Opus is the codec behind Discord voice, WhatsApp voice messages, YouTube's default audio, and every WebRTC video call. The reason most consumers have not heard of it is that it lives almost entirely inside containers — WebM, Ogg, MP4 — rather than as standalone files. If you have ever made a video call, you have used Opus.
Bitrate and quality, in plain numbers
| Bitrate | MP3 | AAC | Opus | FLAC |
|---|---|---|---|---|
| 64 kbps | Noticeable artifacts | Acceptable for speech | Good for music | N/A |
| 96 kbps | Speech only | OK for music | Transparent for most | N/A |
| 128 kbps | Passable | Transparent to most | Excellent | N/A |
| 192 kbps | Transparent to most | Excellent | Excellent | N/A |
| ~800 kbps | N/A | N/A | N/A | Lossless CD quality |
"Transparent" here means listeners cannot reliably distinguish the encoded file from the original in blind tests. The numbers move with the listener and the equipment, but the ranking is stable: Opus is most efficient, AAC second, MP3 third, and FLAC sits in its own category.
What this means for MP4 to MP3 conversion
When MP4toMP3.online converts an MP4 to an MP3, it is taking AAC audio (the codec inside almost every MP4) and re-encoding it as MP3. Because both are lossy, this introduces one generation of additional compression. At reasonable bitrates — 192 kbps VBR for music, 128 kbps for speech — the added loss is inaudible to nearly everyone. The output is a universally playable file at a fraction of the original size.
If your goal is to keep AAC rather than convert to MP3, you do not actually need a converter — you need a demuxer. The without-quality-loss guide explains when extraction without re-encoding is possible and when it is not. For the broader question of which converter to use, the best converter overview lays out the trade-offs.
Sources & References
- 1Audio codecs — MDN — Mozilla MDNBrowser support, bitrate ranges and codec characteristics for MP3, AAC, Opus and Vorbis.
- 2Advanced Audio Coding — Wikipedia — WikipediaAAC codec spec, the default audio codec inside MP4 containers.
- 3Opus audio format — Wikipedia — WikipediaModern open royalty-free audio codec for comparison.
- 4Vorbis — Wikipedia — WikipediaOpen lossy audio codec used in OGG containers, for comparison with MP3/AAC.
- 5LAME MP3 encoder — Wikipedia — WikipediaThe reference open-source MP3 encoder used by FFmpeg.
Convert your MP4 audio to MP3 now
MP4toMP3.online uses libmp3lame to re-encode your video's audio stream to MP3 — locally, no upload.
Convert MP4 to MP3