MAC·DVD
Mac

How to Tell Whether an M4A File Is AAC or Apple Lossless on a Mac

Studio headphones beside a laptop and a portable audio recorder
The TL;DR: Open Terminal, type afinfo followed by a space, drag the M4A file into the window, and press Return. Read Data format. An aac label means AAC, while alac means Apple Lossless. Both can have the same .m4a extension and file type ID.

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

  1. 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.
  2. Choose Song > Get Info, or press Command-I. Click File at the right of the information window.
  3. 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.

Music File tab showing AAC audio file in the kind field
AAC sample. The kind field reads “AAC audio file”.
Music File tab showing Apple Lossless audio file in the kind field
ALAC sample. The same field reads “Apple Lossless audio file”.

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

  1. In Finder, locate the actual audio file. If it is in iCloud Drive and shows a cloud icon, download it first.
  2. Open Terminal with Spotlight. Type afinfo followed by a space.
  3. Drag the file from Finder into Terminal to insert its path. Press Return. The command reads the file in place.
  4. 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 says 1 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.

Terminal on macOS reading aac and alac in two files with the same m4af type ID

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.

SampleCodec in Data formatFile sizeEstimated duration
Download the AAC sampleaac64,763 bytes4.000 seconds
Download the Apple Lossless samplealac111,963 bytes4.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

  1. In Finder, Control-click the M4A file and choose Open With > QuickTime Player.
  2. Press Command-I to open the Inspector. Expand General if the fields are collapsed.
  3. 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.
QuickTime Inspector showing MPEG-4 AAC for aac-sample.m4a
AAC sample. Look for “MPEG-4 AAC” in Audio Format.
QuickTime Inspector showing Apple Lossless for alac-sample.m4a
ALAC sample. Both files show 44100 Hz, but this one reads “Apple Lossless”.

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.

A portable recorder and its memory card beside handwritten recording notes

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.