Fact-checked by Grok 2 weeks ago

Apple Lossless Audio Codec

The Apple Lossless Audio Codec (ALAC) is a lossless digital audio compression format developed by Apple Inc., designed to reduce the size of audio files while preserving every bit of the original uncompressed data for exact reconstruction upon decoding. Introduced on April 28, 2004, alongside iTunes 4.5 and QuickTime 6.5.1, ALAC was created as an efficient alternative to uncompressed formats like WAV and AIFF, enabling high-fidelity audio storage and playback within Apple's ecosystem without any loss in quality. ALAC files are stored within an MP4 container (with the .m4a extension) and support a wide range of bit depths and sample rates, from standard CD quality at 16-bit/44.1 kHz to high-resolution audio up to 24-bit/192 kHz, making it suitable for professional and consumer applications alike. It is natively integrated into Apple's hardware and software, including the Music app (formerly iTunes), iOS, macOS, iPadOS, and Apple Music, where the entire streaming catalog—over 100 million songs as of 2025—is encoded using ALAC to deliver lossless playback when enabled by users. In October 2011, Apple released the ALAC specification and source code as an open-source project under the Apache License 2.0, broadening its adoption beyond proprietary use and allowing integration into third-party software and devices.

Introduction

Definition and Purpose

The Apple Lossless Audio Codec (ALAC) is an audio compression format developed by Apple Inc. for encoding digital audio files without any loss of data, ensuring that the decompressed output is identical to the original uncompressed audio. Unlike lossy formats such as Apple's Advanced Audio Coding (AAC), which discard certain audio data to achieve smaller file sizes and thereby introduce irreversible quality degradation, ALAC retains 100% of the original audio information, making it ideal for audiophiles and professionals seeking bit-perfect reproduction. The primary purpose of ALAC is to enable efficient storage and playback of high-fidelity audio while maintaining compact file sizes, particularly for managing extensive music libraries on devices with limited storage. This allows users to preserve the full and detail of source material, such as CD-quality recordings, without compromising sonic integrity during or . Initially designed to support seamless integration within Apple's digital music , ALAC facilitates high-quality archiving and sharing of audio content. Developed as part of Apple's multimedia framework in the early 2000s, ALAC was created to address the need for a lossless alternative to uncompressed formats like PCM, which require significantly more storage space. ALAC files typically achieve compression ratios of 40-60% compared to uncompressed PCM audio, depending on the complexity of the source material, thereby reducing file sizes by approximately half on average while preserving every bit of the original data.

Key Features and Benefits

ALAC distinguishes itself through its support for multi-channel audio configurations up to 8 channels, accommodating formats like , 5.1 surround, and 7.1 immersive audio for enhanced listening experiences. It also enables embedding, including tags for artist, , , and , within its structure to maintain organized libraries without additional files. Furthermore, ALAC integrates seamlessly with MPEG-4 containers under the .m4a file extension, promoting compatibility across media players and streaming services while preserving file portability. The codec's primary benefits stem from its , which reduces file sizes by roughly 40-60% compared to uncompressed PCM formats like , without any degradation in audio fidelity, making it particularly suitable for archiving high-resolution music collections and enabling efficient portable playback on storage-constrained devices. This preservation of bit-perfect quality aligns with ALAC's purpose as a lossless preservation tool. Additionally, its native optimization for Apple ensures energy-efficient decoding, minimizing battery drain during extended playback on and macOS devices. Compared to FLAC, another prominent lossless codec, ALAC shares similar compression efficiency but offers distinct advantages in the Apple ecosystem:
AspectALACFLAC
LicensingProprietary originally; open-source since 2011 under Apache LicenseOpen-source from inception (BSD-like)
Native IntegrationOptimized for Apple devices and siliconBroad cross-platform support
Compression PerformanceComparable ratios; slightly larger files in some casesMarginally more efficient in benchmarks
These attributes position ALAC as a robust choice for users prioritizing seamless Apple compatibility alongside lossless fidelity.

Technical Specifications

Compression Mechanism

The Apple Lossless Audio Codec (ALAC) achieves lossless compression through a frame-based encoding process that leverages linear prediction to model audio signals and reduce redundancy, followed by entropy coding of the resulting residuals. Audio data is divided into independent frames, with a typical structure supporting up to 4096 samples per frame, allowing for efficient processing in short segments similar to other lossless formats like FLAC. Within each frame, an adaptive linear predictor estimates future samples based on previous ones, using prediction orders that can range from 0 (no prediction) to a maximum of 15, selected dynamically to optimize for the signal's characteristics. This prediction step generates residual errors representing the difference between actual and predicted samples, which capture the unpredictable components of the audio waveform. The residuals are then compressed using Golomb-Rice codes, a form of variable-length particularly effective for encoding non-negative integers with exponentially decaying probabilities, common in audio residuals after prediction. Golomb-Rice coding employs a parameter k to divide the residual value x into a quotient and remainder, encoding the quotient with unary codes and the remainder with k-bit binary codes; the parameter k is adaptively estimated per subframe to minimize bit usage. This combination of and Golomb-Rice coding ensures bit-identical reconstruction upon decoding, preserving all original audio information without perceptual or . Unlike lossy codecs, ALAC avoids transform-based methods like the (MDCT), focusing instead on time-domain prediction for exact reversibility. In practice, this mechanism yields compression ratios of approximately 0.5 to 0.7 times the original uncompressed size, depending on the audio content's . For example, a standard 16-bit/44.1 kHz audio file, which has an uncompressed bitrate of about 1411 kbps, is typically reduced to around 700 kbps in ALAC, achieving roughly 50% size savings on average across music tracks. These ratios highlight the codec's efficiency in exploiting audio redundancies while maintaining full fidelity, making it suitable for storage and transmission in high-quality applications.

Supported Audio Parameters

The Apple Lossless Audio Codec (ALAC) supports bit depths ranging from 16-bit to 32-bit, enabling compatibility with standard CD-quality audio as well as high-resolution formats. This includes 16-bit for typical playback, 24-bit for enhanced in professional recordings, and 32-bit for ultra-high applications, though 20-bit is also accommodated for intermediate resolutions. ALAC accommodates sample rates from as low as 1 Hz up to 384 kHz, providing flexibility for both low-frequency specialized audio and high-resolution content that captures ultrasonic frequencies beyond human hearing. Commonly used rates include 44.1 kHz for CD-equivalent quality and up to 192 kHz for hi-res audio in streaming and mastering contexts. The codec handles up to 8 audio channels, supporting configurations from mono (1 channel) to full surround sound setups such as 5.1 (6 channels) or 7.1 (8 channels), including layouts like MPEG 5.1 D with dedicated low-frequency effects channels. Downmixing options allow multi-channel content to be adapted to fewer speakers during playback, ensuring versatility across devices. While ALAC natively encodes integer samples, floating-point audio is supported through conversion to integer formats prior to encoding, preserving accuracy without native float handling. The resulting bitrates vary due to lossless compression but can approach uncompressed levels; for instance, 24-bit/192 kHz 8-channel audio has an uncompressed bitrate of approximately 36.9 Mbps, though compression typically reduces file sizes by 40-60% depending on content complexity. To maintain backward compatibility with older hardware limited to lower resolutions, ALAC files can be downsampled during playback—for example, converting 192 kHz hi-res to 44.1 kHz—without altering the original encoded data.

History and Development

Initial Creation and Release

The Apple Lossless Audio Codec (ALAC) was developed by Apple Inc. in 2003 and 2004 as a proprietary component of the QuickTime 6.5 multimedia framework, designed to deliver lossless audio compression optimized for integration with iTunes and iPod devices. This effort addressed the need for high-fidelity audio storage and playback in portable formats, allowing users to preserve the full quality of CD audio while significantly reducing file sizes compared to uncompressed formats like WAV or AIFF. The codec's creation responded to the surging popularity of standards such as during the early 2000s, which prioritized smaller files for digital music distribution but sacrificed audio fidelity; ALAC emerged as Apple's solution for audiophiles seeking CD-quality archiving without quality loss, compressing files to roughly 50-60% of their original size through efficient, reversible algorithms. It was first publicly released on April 28, 2004, bundled with 4.5 and 6.5.1, enabling users to import CDs directly into lossless .m4a files via a new encoding option in iTunes preferences. iPod playback support followed soon after, introduced in mid-2004 via software update 3.0.1 (released July 15, 2004, through ), which extended ALAC compatibility to full-size click-wheel models and the , enhancing on-device performance for high-quality audio. Concurrently, the Windows version of incorporated ALAC encoding, facilitating cross-platform ripping and broadening access to lossless workflows beyond macOS users.

Open-Sourcing and Evolution

On October 27, 2011, Apple released the source code for the Apple Lossless Audio Codec (ALAC) under the Apache License 2.0 through the Mac OS Forge project, making available the reference encoder and decoder implementations. This open-sourcing effort provided developers with a complete, bit-perfect reference for the , which had previously been since its introduction in 2004 as part of 4.5. The core ALAC specification has remained at version 1.0 since its inception, supporting formats up to 24-bit depth and sample rates of 192 kHz from early iterations, with the open-source preserving this capability in its . Following the open-sourcing, Apple integrated enhancements to ALAC efficiency within its . These evolutions focused on seamless adaptation to advancing storage and playback technologies, maintaining while expanding support for multi-channel and higher-bit-depth audio in Apple's software. A significant milestone occurred in 2021 when Apple announced the integration of ALAC into for lossless streaming, beginning in June, which extended the codec's role from local file storage to cloud-based delivery across its catalog of over 75 million songs. This shift preserved the original audio fidelity using ALAC encodings ranging from 16-bit/44.1 kHz (CD quality) to 24-bit/192 kHz (Hi-Res Lossless), marking a transition from device-centric usage to widespread service-oriented distribution. Post-open-sourcing, the developer community has leveraged the reference code to enhance cross-platform decoding, incorporating it into libraries like FFmpeg for broader compatibility in non-Apple environments, though Apple continues to maintain its proprietary reference implementation within the Core Audio framework for optimal integration in its devices and software.

Adoption and Support

Integration in Apple Ecosystem

Apple Lossless Audio Codec (ALAC) has been deeply integrated into Apple's software ecosystem since its introduction, providing seamless encoding and decoding capabilities across core applications and operating systems. The codec was first built into iTunes version 4.5 in 2004, enabling users to rip CDs and encode audio files in the lossless ALAC format without quality degradation. This functionality transitioned to the Music app in macOS, where it remains the default option for lossless imports and playback, supporting resolutions up to 24-bit/192 kHz. Full ALAC support extends to iOS, iPadOS, tvOS, and watchOS, allowing native encoding, decoding, and playback within system audio frameworks like Core Audio, ensuring compatibility for music management, streaming, and device synchronization. On the hardware side, ALAC decoding is natively handled by Apple's devices, starting with iPods from the codec's 2004 debut and extending to iPhones from the original model in 2007. HomePods support ALAC decoding for streamed content via , though limited to standard resolutions due to wireless constraints, while do not support lossless audio over , which is limited to the codec. As of April 2025, with support lossless ALAC playback via wired connection. chips, such as those in M-series processors, further optimize ALAC playback through integrated media engines that accelerate decoding, reducing latency and power consumption during rendering on devices like recent iPhones, iPads, and Macs. In the Music app, users can configure lossless output settings to deliver ALAC audio up to 24-bit/48 kHz via wired connections to or external devices, balancing quality with device limitations like built-in DAC capabilities. Hi-Res Lossless playback (beyond 48 kHz up to 24-bit/192 kHz) is supported on current versions (as of November 2025) when paired with compatible external DACs via or adapters. This wired approach bypasses bottlenecks, ensuring bit-perfect ALAC transmission. A key aspect of ALAC's ecosystem integration is its role in iCloud Music Library, where the service automatically transcodes uploaded tracks to ALAC format during across devices, preserving lossless quality while optimizing for Apple's proprietary storage and delivery pipeline. This process ensures that libraries remain consistent in fidelity, regardless of the original , facilitating effortless multi-device access without manual intervention.

Third-Party Compatibility

The Apple Lossless Audio Codec (ALAC) enjoys broad compatibility with third-party software players, enabling playback and sometimes encoding outside Apple's ecosystem. has provided full decoding support for ALAC files since its early versions, allowing seamless playback across multiple platforms without additional configuration. Similarly, offers native playback of ALAC through its built-in components, with encoding capabilities available via plugins or the free encoder pack for converting other formats to ALAC. Audacious, a lightweight open-source audio player, includes ALAC decoding in its default plugin set, supporting import and playback on and other systems. Following Apple's open-sourcing of ALAC in 2011, FFmpeg added official encoding support, building on prior reverse-engineered decoding; this has facilitated widespread use in multimedia processing tools for lossless conversions to and from ALAC. On non-Apple operating systems, ALAC integration often relies on third-party applications or filters. does not offer native system-wide ALAC playback, but apps like Poweramp provide robust decoding and support for high-resolution ALAC files up to 24-bit/192 kHz. In Windows, ALAC playback is enabled through filters, such as those provided by FFmpeg or third-party codec packs, allowing compatibility with media players like on versions 10 and later. Many major digital audio workstations (DAWs) support importing and exporting ALAC files, facilitating professional workflows that span Apple and non-Apple environments; for example, allows direct import of ALAC tracks and rendering projects to ALAC without quality loss. Hardware streamers like and Bluesound also decode ALAC natively, supporting playback of lossless files from local libraries or compatible services up to 24-bit/192 kHz on compatible models. Despite this compatibility, limitations persist in certain contexts. Older devices and legacy hardware may require conversion to formats like or for playback, as they lack built-in ALAC decoders. Additionally, web browsers do not natively support ALAC playback in elements, necessitating extensions, , or specialized players for browser-based streaming.

Usage and Applications

Role in Streaming Services

Apple Music introduced support for the Apple Lossless Audio Codec (ALAC) on May 17, 2021, making its entire catalog of over 100 million songs available in lossless formats at no additional cost to subscribers. This includes standard lossless audio at 16-bit/44.1 kHz, comparable to quality, alongside hi-resolution lossless options supporting up to 24-bit/192 kHz for enhanced and . The service encodes tracks server-side in ALAC to ensure bit-perfect delivery, preserving the original audio fidelity without compression artifacts during streaming. The platform offers two primary lossless tiers: standard lossless, which reaches a maximum of 24-bit/48 kHz, and hi-res lossless for audiophiles seeking resolutions up to 24-bit/192 kHz. To experience the full quality of these tiers, users require a compatible (DAC), as wireless streaming protocols like are limited to 256 kbps encoding, preventing true lossless transmission over air. By 2025, over 57% of users have enabled lossless audio, reflecting growing adoption among subscribers prioritizing high-fidelity playback. ALAC also integrates with Apple Music's Spatial Audio feature, which utilizes for immersive, three-dimensional soundscapes, while the underlying stereo mixes remain encoded in ALAC containers to maintain lossless quality where applicable. For offline access, subscribers can download hi-res lossless files directly through the service, allowing bit-perfect playback on supported devices without relying on real-time streaming. This server-side approach and download capability enable seamless delivery of ALAC-encoded content across the platform, catering to both casual listeners and dedicated audiophiles.

File Format and Playback Considerations

Apple Lossless Audio Codec (ALAC) files are typically encapsulated within MPEG-4 containers, most commonly using the .m4a file extension, though they can also be stored in (.mov) or other MPEG-4 formats. Less frequently, ALAC data may appear in containers or as raw streams, but these are not standard for distribution. , including details such as , , and information, is embedded using tags or iTunes-style metadata standards compatible with MP4 structures. Playback of ALAC files requires a compatible , natively supported on Apple devices running the latest , , macOS, or via the app on Windows and . Third-party software and hardware that implement ALAC decoding, such as certain players, also enable playback. For high-resolution ALAC (beyond 24-bit/48 kHz, up to 24-bit/192 kHz), devices often necessitate a wired connection to an external (DAC), as built-in device outputs may downsample the audio. connections do not support lossless ALAC transmission, defaulting to compressed at 256 kbps instead. As of 2025, Apple CarPlay fully supports ALAC playback, including high-resolution variants when connected via wired interfaces to compatible in-vehicle systems. Android Auto provides ALAC support through apps like Apple Music, though native hardware decoding may vary by device and often requires wired connections for optimal quality. Some AV receivers require firmware updates to handle 192 kHz ALAC playback without dropouts, as addressed in updates from manufacturers like Denon and Marantz. Practical considerations include larger file sizes for high-resolution content; for instance, a 1-hour hi-res ALAC album at 24-bit/192 kHz may occupy around 2.9 GB of storage due to the codec's lossless nature. For devices lacking native ALAC support, conversion tools such as Apple's Music app or dedicated software like XLD can transcode files to compatible formats without quality loss.

References

  1. [1]
    About lossless audio in Apple Music
    Apple has developed its own lossless audio compression technology called Apple Lossless Audio Codec (ALAC). In addition to AAC, most of the Apple Music ...
  2. [2]
    iTunes 4.5: Hits and Misses - Macworld
    Apr 27, 2004 · The good news is that iTunes 4.5 does indeed introduce lossless compression to iTunes and the iPod. ... Apple Lossless Encoder. Is Apple spurning ...
  3. [3]
    After seven years, Apple open sources its Apple Lossless Audio ...
    Oct 28, 2011 · Apple first introduced its own lossless audio compression format, Apple Lossless Audio Codec (ALAC), in 2004 with iTunes 4.5.
  4. [4]
    Apple Music announces Spatial Audio and Lossless Audio
    May 17, 2021 · Apple uses ALAC (Apple Lossless Audio Codec) to preserve every single bit of the original audio file. This means Apple Music subscribers will be ...<|control11|><|separator|>
  5. [5]
    Play lossless audio in Music on iPhone - Apple Support
    Apple has developed its own lossless audio compression technology called Apple Lossless Audio Codec (ALAC). The entire Apple Music catalog is encoded using ALAC ...
  6. [6]
    Apple Lossless Audio Codec
    ### Summary of Apple Lossless Audio Codec (ALAC)
  7. [7]
    macosforge/alac: The Apple Lossless Audio Codec (ALAC ... - GitHub
    The Apple Lossless Audio Codec (ALAC) is a lossless audio codec developed by Apple and deployed on all of its platforms and devices.Missing: metadata CRC
  8. [8]
    Media container formats (file types) - MDN Web Docs
    Jun 10, 2025 · A media container is a file format that encapsulates one or more media streams (such as audio or video) along with metadata, enabling them ...
  9. [9]
    Everything You Need to Know about Lossless Audio and ALAC
    Jul 2, 2021 · It shrinks audio files enough to enable streaming, fast downloads and reasonable file sizes for storage without discarding any audible ...
  10. [10]
  11. [11]
    ALAC vs FLAC - Optimal Lossless Audio Format Selection - Tipard
    May 27, 2024 · Part 1. ALAC vs FLAC ; Compression Ratio, Slightly larger file sizes compared to FLAC. More efficient compression leads to reduced file sizes.
  12. [12]
    Apple Lossless Audio Coding - MultimediaWiki - Multimedia.cx
    Oct 27, 2011 · Apple Lossless Audio Coding using linear prediction with Golomb-Rice coding of the difference. Similar to FLAC, although the bitstreams are not ...Missing: algorithm structure
  13. [13]
    [PDF] Audio Compression using Munich and Cambridge Filters for Audio ...
    Lossless compression formats (such as the most widespread FLAC, WavPack, Monkey's Audio,. ALAC/Apple Lossless) provide a compression ratio of about 2:1 ...
  14. [14]
    Apple releases iTunes 4.5 - CNET
    Lossless Encoder: Although the details aren't yet clear, "using the Apple Lossless Encoder, you can import CDs into iTunes with sound indistinguishable from ...
  15. [15]
    Apple posts iPod Update 2004-07-15 - CNET
    Jul 19, 2004 · Support for the Apple Lossless Encoder, to enable compressed music encoding at high quality. For iPods without Dock connectors. Compatibility ...
  16. [16]
    Apple converts ALAC audio format to open source - The Verge
    Oct 27, 2011 · Apple announced today that it has open sourced its Apple Lossless Audio Codec (ALAC) under the Apache license, opening the door to ...Missing: October | Show results with:October
  17. [17]
    macOS High Sierra now available as a free update - Apple
    Sep 25, 2017 · Apple today announced macOS High Sierra, the latest release of the world's most advanced desktop operating system, is now available as a free update.
  18. [18]
    Why iTunes Doesn't Support FLAC Files - Kirkville
    Oct 21, 2013 · Introduced in 2004, Apple Lossless – sometimes called ALAC – provides the same bit-for-bit quality as FLAC, and is supported by iTunes and iOS ...
  19. [19]
    Play lossless audio in Music on iPad - Apple Support
    Apple has developed its own lossless audio compression technology called Apple Lossless Audio Codec (ALAC). The entire Apple Music catalog is encoded using ALAC ...
  20. [20]
    AirPods and HomePods Don't Support Apple Music Lossless Audio
    Mar 30, 2024 · None of Apple's AirPod headphones or HomePod products will work with Lossless Audio or Hi-Res Lossless Audio since each is limited to the Bluetooth AAC codec.
  21. [21]
    Apple Music lossless: which devices will (and won't ... - What Hi-Fi?
    Feb 3, 2025 · Apple's Lossless streams use ALAC (Apple Lossless Audio Codec) to offer more detail and information in a recording. ... There is also now a ...What is Apple Music Lossless? · Which devices work with Apple...<|control11|><|separator|>
  22. [22]
    AIFF or ALAC (Apple Lossless Audio Codec)…
    May 12, 2020 · ALAC is good for ripping songs if you want to hear the same maximum quality of the song from the album, artist and type of music that the CD can ...
  23. [23]
  24. [24]
    Audio Formats - foobar2000
    Audio file formats supported natively. MP3, MP2, MP1; M4A, including AAC and Apple Lossless; AAC; Ogg Vorbis; Opus; Musepack; Speex ...Missing: ALAC | Show results with:ALAC
  25. [25]
    Poweramp – Music Player for Android
    Key Features · Android Auto support · Google Assistant support · casting to Chromecast-enabled devices · http streaming via imported m3u8 or user created playlists ...Download · Poweramp build-991 · Poweramp build-976 · News
  26. [26]
    Supported Formats in DirectShow - Win32 apps - Microsoft Learn
    Jul 27, 2023 · DirectShow is an open architecture, which means that it can support any format as long as there are filters to parse and decode it.
  27. [27]
    REAPER | Audio Production Without Limits
    REAPER supports a vast range of hardware, digital formats and plugins, and can be comprehensively extended, scripted and modified.Download · Purchase a REAPER License · About · User GuideMissing: ALAC | Show results with:ALAC
  28. [28]
    Supported audio formats for Sonos music library
    FLAC and ALAC are limited to a maximum bit depth of 16-bit when playing through a Sonos product using the Sonos S1 Controller app.<|control11|><|separator|>
  29. [29]
    What Formats are supported by Bluesound?
    Jan 31, 2024 · Bluesound supports MP3, AAC, WMA, OGG, FLAC, ALAC, WMA-L, MQA, WAV, and AIFF. VAULT models also support MP3 encoding (128/320kb/s or lame).
  30. [30]
  31. [31]
    Apple Music
    Over 100 million songs, always ad-free. The highest sound quality with immersive Spatial Audio and lossless audio. Access to exclusive content, ...Apple (CA) · Apple (AU) · Subscribe to Apple Music · Apple (UK)
  32. [32]
    Apple Music Statistics 2025: Subscriber Growth, Revenue, etc.
    Sep 30, 2025 · Lossless and Spatial Audio Adoption Rates. In 2025, over 57% of Apple Music users have enabled Lossless Audio, a jump from 42% in 2024. Spatial ...
  33. [33]
    Apple Developer Documentation
    **Summary of Apple Lossless Audio Codec (ALAC):**