What is an M4A File?
An M4A file is an audio-only MPEG-4 file. It uses the same container as MP4 (MPEG-4 Part 14), and Apple introduced the .m4a extension for iTunes so that audio files could be told apart from videos. Most M4A files contain AAC audio, which sounds better than MP3 at the same bitrate; some contain lossless ALAC (Apple Lossless) audio instead.
M4A files play in Apple Music, on iPhones and Android phones, in VLC, Windows Media Player and every modern browser. iPhone ringtones use the same format with the .m4r extension.
Download M4A Sample Files
Below are three M4A files of about two minutes each. They contain the same audio as our WAV and MP3 samples.
M4A Sample File Details
| Sample | Length | File size |
|---|---|---|
| Sample1.M4A | 2:02 | 1.89 MB |
| Sample2.M4A | 1:51 | 1.72 MB |
| Sample3.M4A | 1:59 | 1.85 MB |
All three contain AAC-LC audio at about 129 kbps, 44.1 kHz stereo, encoded with FFmpeg. The index (the moov box) is at the end of each file, so a player streaming them has to fetch the end first. The same audio is also available as uncompressed WAV, 256 kbps MP3 and 24-bit FLAC in OGA, so you can compare formats directly.
What You Can Test With These M4A Files
- Audio players: HTML5
<audio>, iOS, Android and desktop players. - Streaming: how your player handles files with the index at the end.
- Tag editors: adding title, artist and cover art to MPEG-4 audio.
- Conversion: M4A to MP3, WAV or OGG.
- Uploads: forms that accept
audio/mp4oraudio/x-m4a.
How to Play or Convert an M4A File
<!-- Play a sample on a web page -->
<audio controls src="sample-1.m4a"></audio>
# Move the index to the start for faster streaming
ffmpeg -i sample-1.m4a -c copy -movflags +faststart sample-1-fast.m4a
# Convert to a 192 kbps MP3
ffmpeg -i sample-1.m4a -b:a 192k sample-1.mp3






