How to Tell Whether an M4A File Is AAC or Apple Lossless on a Mac
Two files called recording.m4a can contain different kinds of audio. Imagine choosing which copy of a family recording to keep before clearing an old Mac. The extension tells you the kind of file you have. To identify the encoding, inspect the audio track inside it.
Check a track already in Music
- In Music, select a single local track under Songs. If the sample is in Finder, open it with Music first and select its track row.
- Choose Song > Get Info, or press Command-I. Click File at the right of the information window.
- Read kind. Music called the AAC sample AAC audio file and the ALAC sample Apple Lossless audio file. The location at the bottom identifies the copy in your library. Apple’s guide to song information
Select either screenshot to open the full File tab.
For the same ALAC download, Music showed 705 kbps, while QuickTime Inspector showed 222.11 kbit/s. Both identified Apple Lossless. Use the named codec to identify a file. If you only have a streaming catalog entry, start with a local file you can locate in Finder.
Read the codec on a Mac
- In Finder, locate the actual audio file. If it is in iCloud Drive and shows a cloud icon, download it first.
- Open Terminal with Spotlight. Type
afinfofollowed by a space. - Drag the file from Finder into Terminal to insert its path. Press Return. The command reads the file in place.
- Find Data format near the top. Read the codec immediately after the channel count and sample rate. Our AAC sample says
1 ch, 44100 Hz, aac. The Apple Lossless sample says1 ch, 44100 Hz, alac.
If you prefer to type the path yourself, put it in quotes when it contains spaces. For example, if you saved the sample to Downloads, run:
afinfo "$HOME/Downloads/aac-sample.m4a"
File type ID says m4af for both examples. Estimated duration and sample rate also match. If the codec field shows a different value, record the value you see before deciding how to handle the file.

The two Data format lines in Terminal identify the codecs. Both files show the same type ID and four-second duration.
Try two files made from the same recording
Both samples came from the same four-second, mono, 44.1 kHz, 16-bit test signal. We encoded them with FFmpeg and inspected the downloadable files with Apple’s built-in afinfo on macOS 15.8.2. Open each download in Terminal to repeat the comparison.
| Sample | Codec in Data format | File size | Estimated duration |
|---|---|---|---|
| Download the AAC sample | aac | 64,763 bytes | 4.000 seconds |
| Download the Apple Lossless sample | alac | 111,963 bytes | 4.000 seconds |
If your browser opens the audio player, use its download control or choose Download Linked File from the link’s shortcut menu. The samples contain tones, so no listening test is necessary.
Check the same files in QuickTime Player
- In Finder, Control-click the M4A file and choose Open With > QuickTime Player.
- Press Command-I to open the Inspector. Expand General if the fields are collapsed.
- Read Audio Format. QuickTime displayed MPEG-4 AAC, 44100 Hz for the first download and Apple Lossless, 44100 Hz for the second. You can close the window after reading the field.
What the result tells you about quality
AAC uses lossy compression. Apple Lossless (ALAC) can reconstruct the PCM audio it received at encoding time. When we decoded each example and compared the first four seconds with the source WAV sample by sample, the ALAC result matched exactly. The AAC result differed. This comparison measures changes in the samples. It does not tell you whether you would hear them.
The distinction matters when sorting an archive. If someone converted an old AAC download into ALAC, afinfo will correctly identify the file as ALAC. That conversion cannot recover audio discarded by the earlier AAC encoder. To establish the recording’s history, look for the original export, CD rip settings or an earlier copy. Keep a known original while comparing candidates. File size alone can mislead when duration, channels or encoding settings differ.
If you are still deciding how to record or export the audio, the Mac recording guide covers the output formats of Voice Memos and QuickTime Player.

An original recording or a session log can help trace an export back to its source. The gear scenes here and on the cover are AI-generated illustrations. The software screenshots show our two downloadable test files.
Written by
MAC-DVD is written and edited in-house. Articles cite the vendor documentation, release notes, and published testing they draw on; where we have used or tested something ourselves, the article says so and shows what we saw.