What is ALAC?
ALAC (Apple Lossless Audio Codec) is a lossless codec developed by Apple. It reduces PCM file size without changing the decoded sample values.
ALAC technical data
| Property | Codec capability |
|---|---|
| Bit depths | 16, 20, 24 and 32-bit integer PCM |
| Sample rate | Arbitrary integer rates through 384 kHz are explicitly supported by Apple's published codec code/documentation |
| Channels | 1–8 |
| Compression | Lossless |
| Typical container | MP4/M4A or CAF |
ALAC is not the same thing as M4A
ALAC is the codec. .m4a normally identifies an MP4-family audio file and can contain ALAC or AAC. Two M4A files can therefore use completely different compression.
ALAC vs FLAC
Both are lossless codecs: decoded audio can be bit-for-bit identical to the input PCM. The practical difference is ecosystem and container support rather than sound quality. See FLAC vs ALAC.
ALAC and AAC in M4A files
ALAC can preserve original PCM for a music archive, including stereo matrix surround. AAC is a lossy alternative commonly used for portable copies. Both may use the .m4a extension.
AAC vs ALAC: lossy and lossless Apple audio · How to preserve matrix-encoded audio CDs
Apple devices and the playback chain
ALAC is commonly stored in an M4A/MP4 container, although the extension alone cannot distinguish it from AAC. Apple's lossless audio guidance identifies ALAC as its lossless distribution codec and explains device and connection restrictions. A phone can decode ALAC and deliver PCM to a wired or USB DAC; a Bluetooth headphone may instead receive a separately encoded wireless stream. Lossless source storage does not establish lossless wireless transport.
A standalone network streamer or car player may support AAC in M4A but not ALAC, or may support stereo ALAC without multichannel playback. Check the codec inside the file as well as the hardware specification. When compatibility is more important than keeping a particular container, convert between FLAC and ALAC using a lossless encoder and verify the decoded PCM. Tags, artwork and gapless metadata may not transfer identically even when the samples match.
Archival use
ALAC can preserve the two-channel PCM of matrix-encoded or HDCD audio if no signal processing occurs. Converting a lossy AAC or MP3 file to ALAC does not restore the discarded information. Keep the earliest available lossless source and use smaller lossy derivatives only for devices or services that need them. For surround music, preserve channel labels and verify that the playback application and output device do not silently downmix.