Sample M4A Audio Files

M4A is audio in an MP4 container. It is what iTunes and Apple Music, the iPhone Voice Memos app and many Android phones save. Inside is usually AAC, less often lossless ALAC. Below are test files with the same music as our MP3 and WAV samples, plus the edge cases players stumble on. No license restrictions

Music and speech

3 seconds of test music composition AAC 128 kbps
52 Kb
↓
6 seconds of test music composition AAC 128 kbps
102 Kb
↓
9 seconds of synth melody using drums AAC 128 kbps
135 Kb
↓
12 seconds of test music using drums AAC 128 kbps
202 Kb
↓
19 seconds of beautiful synth melody for tests AAC 128 kbps
303 Kb
↓
1 minute of English speech AAC 128 kbps
972 Kb
↓

Edge cases

AAC 64 kbps, noticeably worse to the ear 64 kbps
154 Kb
↓
AAC 256 kbps, as in Apple Music 256 kbps
553 Kb
↓
Mono, one channel mono
53 Kb
↓
Chrome and Firefox do not play ALAC, Safari does. Download the file and test your own app
Lossless ALAC under the same .m4a extension ALAC
919 Kb
↓
With artist and album tags and cover art tags + cover
304 Kb
↓
moov index at the end of the file: the player has to read the end before it can play moov at end
303 Kb
↓

🧠 How M4A Works

M4A is an ordinary MP4 with no video. The file is made of boxes (atom): ftyp says what kind of file it is, moov holds the index, that is the codec, the duration and where each chunk of audio sits, and mdat holds the compressed data itself. When moov comes first (faststart), audio starts playing right away. When it is at the end, the player first requests the end of the file, and without byte-range support playback will not start until the whole file has loaded

🏷️ ftyp file type M4A / isom 🗂️ moov index: codec, duration 📀 mdat compressed audio AAC or ALAC 📝 udta / ilst tags, cover art (optional) 💾 .m4a ready file