M4A (MPEG-4 Audio) — Complete Format Guide
What Is M4A?
M4A is a file extension used by Apple to identify MPEG-4 audio files stored in the MPEG-4 container (ISO Base Media File Format, ISOBMFF). The .m4a extension is Apple's convention for distinguishing audio-only MPEG-4 files from video-containing .mp4 files — both use the identical container format internally.
M4A files can contain one of two fundamentally different audio codecs:
- AAC (Advanced Audio Coding) — lossy compression; smaller files; iTunes Store downloads and Apple Music streaming
- ALAC (Apple Lossless Audio Codec) — lossless compression; larger files; identical quality to WAV/FLAC; used in Apple Music Lossless tier
Despite identical file extensions, M4A-AAC and M4A-ALAC are very different in quality and file size. Most .m4a files encountered in practice are AAC-encoded.
MPEG-4 Container (ISOBMFF) Structure
M4A uses the same ISO Base Media File Format as MP4 video:
ftyp — File type box ('M4A ', 'mp42', 'isom' compatibility)
moov — Movie box (metadata)
├─ mvhd — Movie header (duration, time scale)
├─ trak — Audio track
│ ├─ tkhd — Track header
│ └─ mdia — Media box
│ ├─ mdhd — Media header (language, timescale)
│ ├─ hdlr — Handler ('soun' = sound track)
│ └─ minf — Media information
│ └─ stbl — Sample table (sample locations, sizes, timestamps)
├─ udta — User data (iTunes metadata)
└─ meta — Metadata container (iTunes tags in 'ilst' box)
mdat — Media data (compressed audio samples)
The ftyp box identifies M4A files with brand M4A (including the trailing space). This tells audio players to expect audio-only MPEG-4 content.
M4A-AAC: Apple's Standard Audio Format
iTunes Store History
Apple launched the iTunes Music Store in April 2003 using AAC (128 kbps initially, upgraded to 256 kbps AAC in 2009 with "iTunes Plus" — DRM-free). AAC was chosen because:
- Superior audio quality vs. MP3 at equal bitrates
- MPEG-4 standard (open specification, not Fraunhofer-proprietary like MP3)
- Apple's hardware (iPod, iPhone) included dedicated AAC decoder chips
- Apple was involved in developing the MPEG-4 standard
Apple Music Streaming Bitrates
Apple Music streams at:
- Standard quality: 256 kbps AAC (lossy)
- High-quality: 256 kbps AAC (same; "High Quality" refers to AAC vs. lower-bitrate alternatives)
- Lossless: ALAC at 16-bit/44.1 kHz (~1,000 kbps equivalent) or 24-bit/48 kHz
- Hi-Res Lossless: ALAC at 24-bit/96 kHz or 24-bit/192 kHz (~3,700 kbps)
DRM in M4A (FairPlay)
iTunes Store M4A files purchased before 2009 use FairPlay DRM — Apple's proprietary encryption. FairPlay-protected M4A files:
- Play only in iTunes/Apple Music and authorised devices (up to 5 Macs, unlimited iOS devices)
- Cannot be converted by third-party tools
- Are region-locked to the iTunes Store they were purchased in
- Cannot be played on non-Apple players (Spotify, Amazon Music, etc.)
Since the "iTunes Plus" launch in 2009, all new iTunes Store purchases are DRM-free 256 kbps AAC. Legacy DRM content can be upgraded to DRM-free via Apple's upgrade program.
M4A-ALAC: Apple Lossless Audio Codec
Apple developed ALAC internally and released it open-source under Apache 2.0 licence in October 2011. ALAC provides:
- Lossless compression: identical audio data to WAV/AIFF, bit-for-bit
- Compression ratio: 40–60 % size reduction vs. uncompressed WAV (comparable to FLAC)
- Bit depths: 16-bit, 20-bit, 24-bit, 32-bit
- Sample rates: up to 384,000 Hz
- Channels: up to 8 channels (7.1 surround)
ALAC vs. FLAC
| Feature | ALAC (M4A) | FLAC |
|---|---|---|
| Container | MPEG-4 (M4A) | Native FLAC or Ogg |
| Apple native | Yes — plays in iTunes, iPhone, Apple TV | Requires app on iOS |
| Android native | Limited | Yes (most players) |
| Windows native | Via Apple Music / iTunes | Via codec or VLC |
| Compression | 40–60 % | 40–60 % |
| Metadata | iTunes tags (ilst box) | Vorbis Comments |
| Gapless playback | Full support | Full support |
| Streaming | Apple Music Lossless | Tidal, Qobuz |
ALAC's primary advantage over FLAC is seamless Apple ecosystem integration — every Apple device plays ALAC natively without additional codecs. FLAC requires VLC or third-party apps on iOS.
iTunes Tags: M4A Metadata
iTunes uses a proprietary but well-documented tagging system within the MPEG-4 ilst box:
| Tag Atom | Meaning |
|---|---|
©nam |
Title |
©ART |
Artist |
©alb |
Album |
©day |
Year |
©gen |
Genre |
trkn |
Track number / total tracks |
disk |
Disc number / total discs |
©wrt |
Composer |
©lyr |
Lyrics |
©cmt |
Comment |
cprt |
Copyright |
covr |
Cover art (JPEG or PNG embedded) |
aART |
Album artist |
tmpo |
BPM (tempo) |
©grp |
Grouping |
soal, soar, sosn |
Sort keys for Album, Artist, Song |
M4A metadata is more structured than ID3 (MP3 metadata), supporting full sort-key fields that enable proper alphabetical sorting in large libraries even when display names start with "The" or "A".
File Size Comparison
For a 3-minute stereo song:
- M4A-AAC (128 kbps): ~2.9 MB
- M4A-AAC (256 kbps): ~5.8 MB (Apple Music standard)
- M4A-ALAC (44.1 kHz/16-bit): ~20–30 MB (typical)
- M4A-ALAC (96 kHz/24-bit Hi-Res): ~60–90 MB
- WAV (44.1 kHz/16-bit): ~30.5 MB
- MP3 (320 kbps): ~7.2 MB
- FLAC: ~18–22 MB
Converting M4A Files
M4A-AAC → MP3
Common for compatibility with non-Apple players:
- Always involves re-encoding (both are lossy); generation loss applies
- Use highest available quality settings (MP3 320 kbps CBR)
- Source from the highest-bitrate M4A available to minimise transcoding degradation
- If you have the original lossless source, encode MP3 from that instead
M4A-AAC → FLAC
Technical lossless conversion of a lossy source:
- FLAC preserves the AAC-decoded PCM exactly (no further loss)
- File is larger than AAC but still contains the AAC compression artefacts
- Useful for library standardisation where all files must be FLAC regardless of source quality
M4A-ALAC → FLAC
True lossless-to-lossless conversion:
- Audio data is mathematically identical in both formats
- Useful for cross-platform sharing where FLAC has better support than ALAC
- No quality change whatsoever
M4A-ALAC → WAV
Decompression of lossless data:
- Produces bit-for-bit identical PCM to the original recording
- Useful for DAW import, CD burning, hardware device compatibility
- File sizes increase to full WAV dimensions
DRM-Protected M4A
Cannot be converted by any tool. Options:
- Upgrade via Apple (DRM-free purchase or Apple Music subscription)
- Use Apple's authorised playback ecosystem
Platform Support for M4A
| Platform | AAC Support | ALAC Support |
|---|---|---|
| iOS / iPadOS | Native | Native |
| macOS / Apple TV | Native | Native |
| Windows | Via iTunes / Apple Music app | Via iTunes / Apple Music app |
| Android | AAC native; ALAC via VLC | VLC required |
| Linux | Via ffmpeg, VLC, gstreamer | Via ffmpeg, VLC, gstreamer |
| Web browsers | AAC: Yes; ALAC: No | No native |
| Amazon Echo | AAC: Yes | No |
| Sonos | AAC: Yes | Yes (ALAC supported) |
Related conversions
Audio format pairs that come up most often: