Back to Glossary
Video

AAC vs MP3

What Is the Difference Between AAC and MP3?

Each is a lossy audio codec: it makes a recording smaller by throwing away the parts of the sound a listener is least able to hear. MP3 came first, as the Layer III audio of the MPEG-1 standard. AAC followed as its successor, defined in MPEG-2 and again in MPEG-4, and its design didn’t have to stay compatible with MP3.

Which one fits a job usually comes down to two facts: AAC sounds better at the same bitrate, and MP3 opens on more of the devices a file might end up on.

AAC was built as MP3’s successor

AAC is an MPEG standard, and Fraunhofer IIS was among its co-inventors. Apple didn’t invent it, even though its iTunes Store sells music as AAC.

AAC sounds better at the same bitrate

Apple’s podcast spec says so, and the Library of Congress reports that commentators agree. The encoder that made the file matters too, so two AAC files at one bitrate can still differ.

MP3 plays on almost any player

All major browsers play it, as they play AAC in an MP4 file. MDN’s container guide recommends MP3 for compressed files meant for everyday playback.

How Do AAC and MP3 Compare on Bitrate, Channels and Profiles?

MP3 works within fixed lists of bitrates and sample rates. AAC’s ceilings are higher on all three counts below, and it also comes in profiles, so the name AAC alone doesn’t say how a file was coded.

MP3 tops out at 320 kbps

Its MPEG-1 mode sets the upper limits, and its MPEG-2 mode adds lower rates and surround.

  • Sample rates of 32, 44.1 and 48 kHz, or half those in MPEG-2 mode
  • Bitrates from a fixed list, 32 to 320 kbps in MPEG-1 mode
  • Two channels, or 5.1 in MPEG-2 mode

AAC reaches 96 kHz and 48 channels

The base profile, AAC-LC, is the one Apple’s HLS spec and YouTube’s upload spec both name.

  • Sample rates from 8 to 96 kHz
  • Any bitrate up to 512 kbps
  • Up to 48 channels

HE-AAC rebuilds the treble for low bitrates

The AAC-LC core codes the lower frequencies, and the decoder rebuilds the highs from them, guided by a few extra bits the encoder adds.

  • HE-AAC v2 adds Parametric Stereo
  • Apple’s HLS spec advises against HE-AAC above 64 kbps
  • Android decodes xHE-AAC from Android 9

What’s Inside Your .mp3, .m4a or .aac File?

Each extension names a different kind of file. An .mp3 is a run of MP3 frames, often after an ID3 tag with the title and artist. An .m4a is an MP4 file with no video, usually holding AAC, and an .aac file is a bare AAC stream in ADTS frames, each with a small header of its own.

Both codecs also open the stream with silent priming samples, which a player has to skip to keep the sound in time with the picture. Apple’s technical note on AAC gives 2,112 samples, the delay most encoders used when it was written, or about 44 ms at 48 kHz. A file can record its own count: an MP3 in its LAME header, an .m4a in its edit list or in a tag Apple’s encoder adds, while an ADTS stream has no field for it.

Check an audio file

Pick or drop an .mp3, .m4a or .aac file to see its codec, the AAC profile its header declares and the encoder delay it records.

Or drop one on this card. The file stays on your device: the page reads its headers in your browser.

These are the details the headers declare; nothing here decodes the audio. CE.SDK opens MP3 and M4A files, and AAC or MP3 audio inside MP4 and MOV files.

AAC or MP3: Which Should You Use?

Look at where the file goes next. A podcast app might record voice notes as AAC in .m4a files and still publish its episode feed as MP3, because Spotify’s podcast feed spec asks for MP3.

  Use Why
A podcast feed for every app MP3 Spotify's feed spec asks for it, and Apple's RSS feeds take it as well as AAC
A podcast feed for Apple Podcasts AAC in .m4a Apple strongly recommends AAC over MP3 for the audio in its RSS feeds
The soundtrack of a video AAC-LC in MP4 YouTube's upload spec names AAC-LC, and HLS streams for Apple devices must include stereo AAC
Music downloads you encode AAC in .m4a, or MP3 AAC sounds better at a given bitrate, and MP3 opens on nearly any player
A web page with one audio file MP3, or AAC in MP4 All major browsers play both; Firefox needs the AAC inside an MP4
A device you can't check first MP3 The usual choice when a plain audio file has to open wherever it lands
A recording you will edit again Neither: keep FLAC or WAV Every lossy encode drops detail, so encode once, at the end

Does Converting MP3 to AAC Improve Quality?

No. An MP3 encoder drops detail for good, and an AAC encoder working from that MP3 can only drop more, the generation loss that builds with every lossy save. A higher bitrate can’t restore what the first encode dropped.

Apple’s advice for its Music app is to go back to the original source and import it again in the new format, since converting between compressed formats can lower the sound quality.

Before you convert a music library

  • Encode from the CD, WAV or FLAC master if you still have it
  • Keep the MP3 when it is the only copy and your player reads MP3
  • Expect an MP3 saved as WAV or AIFF to grow without sounding any better

How AAC and MP3 Work in CE.SDK

In CE.SDK’s video editing, both codecs come in as music, narration and the soundtracks of phone clips, and AAC is what an MP4 export writes by default wherever the device can encode it.

Opening MP3 and M4A files

Your users can bring .mp3 and .m4a files into a scene as music or a voice-over, and the AAC or MP3 track inside an MP4 or MOV clip comes in with the picture.

AAC is the default soundtrack of MP4 exports

On iOS and Android, and in browsers with an AAC encoder, the MP4’s audio is AAC. If the browser has none, such as Firefox, or Chrome on Linux, the MP4 carries Opus audio instead.

An MP3 music bed is encoded again on export

The export decodes the MP3 and encodes the mix again, so the finished MP4 holds a second lossy copy of that track. When your asset library has the WAV of a track, offer that one.

Server-side MP4 export needs the native package

On Node.js, writing an MP4 with H.264 video and AAC audio takes @cesdk/node-native, the native package; the WebAssembly-based @cesdk/node can’t produce it.

FAQs

For sound at a given bitrate, yes. Apple's podcast requirements say AAC sounds better than MP3 when both use the same bit rate, and the Library of Congress reports that commentators agree. MP3 keeps the edge on reach, since nearly every player and device opens it.

Not quite. M4A is the file, an MP4 with no video, and AAC is the codec it usually holds. An .m4a can also carry Apple Lossless (ALAC), which is a lossless codec and not AAC at all.

Technicolor's licensing program for the MP3 patents it and Fraunhofer held ended in April 2017, when the last core patent expired. Fraunhofer adds that patents on particular implementations may still exist. AAC is licensed through a patent pool run by Via LA, with fees on encoders and decoders rather than on AAC content.

Spotify's specification for podcast RSS feeds asks for MP3. Episodes uploaded through Spotify for Creators can be M4A files as well as MP3 or WAV.

Yes. MP4's registration authority gives MP3 audio an object type of its own, MDN's container guide includes MP3 among the codecs MP4 carries, and Android plays MP3 in MP4 from Android 10. The file then ends in .mp4 or .m4a, so the name stops saying MP3.