How Audio Files Work: Codecs and Containers

Topics · Published 2020-03-15 · Revised 2026-11-26
Local source and editorial review completed; historical assessments and documented evidence limits retained · Joomla source

19,657 Total views across this article’s versions; includes the historical baseline where available.

This article explains common audio file extensions, codecs, and containers pertinent to consumer home theater and music projects.

Table of Contents

  1. How to Use This Article
  2. Which Audio File Format Should I Use?
  3. Codecs and Containers
  4. Audio Codecs Chart
  5. Multi-Channel Codecs
  6. Low Bandwidth Codecs
  7. Audio Containers
  8. Honorable Mentions
  9. File Compression
  10. What Is Metadata?
  11. Bibliography
  12. Endnotes

Audio Codecs and Containers are easy to mix up. When deciding which file type to use, look beyond the file extension to the underlying codec and container. Understanding what each does can save you a good deal of frustration with a digital music collection or movie soundtracks.

Consumers have been trained to think of file extensions in absolute terms and indicators of a file’s content. Yet, the reality is file extensions are arbitrary, and in some cases the same file extension may represent more than one type of data or associated application. Multimedia files can be particularly puzzling.

This article is part of a series that seeks to demystify the most important aspects of digital multimedia files. It delves into the most common audio codecs and containers, file extensions, lossy and lossless audio compression, and operating system compatibility. A cursory discussion of metadata is also included. Several other articles complement this one.

How to Use This Article

Frequently asked questions and how to use this article to find the answers.

In these comparisons, metadata means descriptive information about the content that is useful to an end user: a title, artist, album, author, subject or similar cataloging information. Technical decoding fields and an undefined annotation area do not, by themselves, meet that definition. A format’s ability to hold descriptive tags is separate from whether a particular application displays or preserves them.

Which Audio Codec Is This File Extension?

File extensions indicate a file’s LIKELY content type. You may want to match an audio file extension to a content type, or correlate with Audio Codecs and/or Containers.

Which File Extension Should I Save My Files With?

When someone asks a question such as, “Should I save my music files as MP3’s?” What they are really asking is, “Should I record digital copies of my files using an MP3 codec?”

The answer depends on your needs and goals. Determining which digital audio codec to record source content onto depends on factors such as how many channels need to be recorded to the file (e.g. stereo or 5.1 surround sound). Some codecs support multi-channel surround and some don’t. When examining more advanced codecs, a few will retain audio objects; most will not. A few codecs can record more than eight (8) simultaneous channels; most cannot. If you have specific or complex needs, it pays to be diligent in assessing how to go about recording music and other audio sources prior to adopting a particular approach.

Which Audio Codec Do I Need?

This depends on your goals. The single most important factor is the required number of audio channels. Check out the table correlating audio codecs with their maximum number of channels under Audio Codecs.

Topics Not Covered

Certain codecs and/or containers are not discussed in this article, including:

  • Compact-Disc Audio (.cda)
  • Super Audio CD (SACD)
  • DVD-Audio
  • Direct Stream Digital (DSD)
  • Real Audio (.ra)
  • MPEG-D (see MPEG Audio Standards)

Audio File Extensions

Audio file extensions should indicate the audio codec and/or container format of a given file.

A file extension symbolizes the type of data a file contains. It’s certainly possible for the data type to be something other than what is expected, but standardized file extensions are incredibly useful. They allow both humans and computers to rapidly identify whether or not a particular file is a type they’re familiar with.

Audio file extensions are typically associated with containers. Under some circumstances, a file is a codec-encoded audio file not encased inside a container.

Why Use Containers?

If it’s possible for an audio codec to stand-alone as a file, then why bother placing one inside a container to begin with?

Containers serve several useful purposes.

  • Most containers allow the incorporation of metadata. When the underlying audio format lacks the descriptive tags you need, storing its encoded audio in a suitable container can improve flexibility in managing the content.
  • Some containers allow more than one audio file inside of them. For example, a combination of a mono-channel track, stereo-channel track, and multi-channel track can all be stored inside a single container type that supports multi-channel segmentation of audio.
  • Many containers allow combining video and audio content in the same file.

Which Audio File Format Should I Use?

Which digital file format should I record or save my music to? This is a common question from consumers. Unfortunately, there is no simple answer. Certain file types are the most frequently encountered, but just because other people use them doesn’t mean they are the ideal solution for you. It is worthwhile to examine your particular situation and make an informed choice.

The Popularity and Support ratings in the brief codec summaries below are my observations from the original 2020 article, not formal scores or measured market shares. General adoption comments reflect that same context.

MP3 is by far the most ubiquitous digital music file format. However, that’s the case not because it is the best, but due to how the use of digital music has evolved over time. What makes MP3 so popular?

  • Nearly universal decoder support
  • Small file sizes
  • Exceptionally common file format for downloads
  • Good quality audio on most devices
  • Average person does not perceive defects in audio quality from compression
  • Longevity; MP3 has been around for over 20 years

A primary historical reason for MP3’s popularity was its small file size, which facilitated storing digital music libraries on a single storage volume. When MP3 was released, its only viable competitor at the time was WAVe. Uncompressed PCM in WAVE preserves the source samples, while MP3 discards information and usually produces much smaller files. That difference in data preservation does not guarantee an audible difference: the result depends on the encoder, bitrate, source material and listener. Brandenburg’s 1999 paper explains perceptual masking and the effects of encoder design and test conditions. MP3 and AAC Explained, sections 3.3.2 and 5.

FLAC is modern, popular lossless digital file format for music. Its popularity stems largely from the fact it is lossless (MP3 is a lossy audio codec/format), and the FLAC format can be used without licensing fees or royalties. Xiph’s FLAC licensing terms. FLAC is widely supported, but is not universal like MP3. If you use Apple products exclusively for recording and playing back music, you may find Apple’s lossless audio format to be a better fit.

FLAC’s reference libraries use a BSD license, while its other reference tools use the GPL. MP3 also has open-source implementations, such as the LGPL-licensed LAME encoder. A format’s licensing terms and a particular program’s software license are separate questions. FLAC software licenses; LAME project.

The table below is a comprehensive overview of the most common audio codecs and containers, sorted by the dated milestone shown. The dates include specification publications and technology announcements; these can precede finished products.

Compatibility source notes (November 2026): A supported container does not imply support for every codec it can hold. The ‡ entries identify documented support in the following components, not every application on that operating system.

Apple’s archived Core Audio file table describes OS X 10.5 and lists AU and WAVE; its separate codec table describes OS X 10.4. The 2017 date in the bibliography does not make those tables a 2017 platform inventory. Apple’s retired iOS guide also documents AIFF/WAVE playback with supported PCM or IMA4 audio. Apple Core Audio tables; iOS audio guide.

Microsoft lists AU for Windows Media Player 12 and HE-AAC decoding for Media Foundation on Windows 7 and later. Android’s framework lists Vorbis decoding and MP4 with supported codecs such as AAC; it explicitly excludes ADIF from its AAC file support. Windows Media Player 12 formats; Microsoft AAC decoder; Android formats.

Revised comparison — historical support observations

The format and descriptive-metadata entries were reconciled with the reviewed prose in November 2026. Selected compatibility corrections are marked ‡ and explained in the source notes; other support and popularity labels retain the original 2020 observations. System codecs, applications and add-ons have different capabilities, and remaining channel maxima have not all been retested. These tables are not a current compatibility certification. See the original version for the unchanged tables.

Common Audio File Extensions, Codecs, and Containers (by Year)
File Extension Full Name Type Lossy/
Lossless
Descriptive
metadata
Year / milestone Operating System Support
Win Lin Mac iOS And
.aif Audio Interchange File Format (AIFF) Container Yes 1988 Yes No Yes Yes‡ No
.aifc AIFF - Compressed (AIFF-C) Container Yes 1991 Yes No Yes No No
.riff Resource Interchange File Format (RIFF) Container Yes 1991 Yes Yes Yes No No
.snd | .au Sun Microsystems Audio File (Au) Container Lossless No† 1991 Yes‡ Yes Yes‡ No No
.wav Wave Container Yes 1991 Yes Yes Yes‡ Yes‡ Yes
.ac3 Dolby Digital (AC-3) Codec Lossy No 1991 Yes Yes1 Yes Yes Yes
.dts Digital Theater Systems (DTS) Codec Lossy No 1993 No Yes1 No No No
.mp1 MPEG-1 Audio Layer I (MP1) Codec Lossy No 1993 Yes Yes No No No
.mp2 | .mpa MPEG-1 Audio Layer II (MP2) Codec Lossy No 1993 Yes Yes No No No
.mp3 MPEG-1 Audio Layer III (MP3 gen1) Codec Lossy Yes 1993 Yes Yes Yes Yes Yes2
.ogg Ogg Container Yes 1993 Yes Yes No No Yes
.shn Shorten Codec Lossless No 1993 No No No No No
.wav Exchangeable Image File Format (EXIF) Container Yes 1995 Yes Yes Yes No No
.mp3 MPEG-2 Audio Layer III (MP3 gen2) Codec Lossy Yes 1995 Yes Yes Yes Yes Yes2
.ra Real Networks RealAudio Codec Lossy No3 1995 No No No No No
.asf Advanced Systems Format (ASF) Container Yes 1996
(ASF launch)
Yes No No No No
.aac Advanced Audio Coding (AAC) Codec Lossy No 1997 Yes Yes Yes Yes Yes
.adts Audio Data Transport Stream Container No 1997 Yes No Yes No Yes
.mpc Musepack Codec Lossy Yes 1997 Yes Yes Yes No No
.wv WAVPack Codec Either4 Yes 1998 No Yes No No No
.amr Adaptive Multi-Rate (AMR) Codec Lossy No 1999 No No Yes No Yes5
.tta True Audio (TTA) Codec Lossless Yes 1999 Yes No No No No
.wma Windows Media Audio (Lossy) Codec Lossy Yes 1999 Yes Yes No No No
.ape Monkey's Audio (APE) Codec Lossless Yes 2000 Yes No No No No
Vorbis Codec Lossy Yes 2000 Yes Yes No No Yes‡
.flac Free Lossless Audio Codec (FLAC) Codec Lossless Yes 2001 Yes Yes Yes Yes Yes
.mka Matroska Container Yes 2002 Yes Yes No No Yes
Advanced Audio Coding Plus (AAC+) Codec Lossy No 2003
(HE-AAC standard)
Yes Yes Yes Yes Yes
.m4a MPEG-4 Part 14 (MP4) Container Yes; application-dependent 2003 Yes Yes Yes Yes Yes‡
.wma Windows Media Audio (Lossless) Codec Lossless Yes 2003 Yes No No No No
.wma Windows Media Audio Pro Codec Lossy Yes 2003 Yes No No No No
.3gp 3GPP Container Yes 2004
(TS 26.244)
Yes No No Yes Yes
.alac Apple Lossless Audio Codec (ALAC) Codec Lossless Yes 2004 Yes No Yes Yes No
.mxf Material eXchange Format (MXF) Container Yes 2004 Yes Yes Yes Yes Yes2
.ac3 Dolby Digital Plus (DD+) Codec Lossy No 2004 Yes Yes1 Yes Yes Yes
.caf Core Audio Format (CAF) Container Yes 2005 No No Yes Yes No
.dts DTS-HD Master Audio (DTS-HD MA) Codec Either No 2005 No Yes1 No No No
.ac3 | .thd Dolby Digital TrueHD Codec Lossless No 2005
(announcement)
No No No No No
.als Audio Lossless Coding (ALS) Codec Lossless No 2006 No No No No No
.sls Scalable Lossless Coding (SLS) Codec Lossless No 2006 No No No No No
.webm WebM Container Lossy Yes 2010 Yes8 No No No Yes
.opus Opus (Ogg Opus) Codec Lossy Yes 2012 No Yes Yes9 Yes9 Yes10
.ac3 | .thd Dolby Digital TrueHD + Atmos Codec Lossless No 2014 No No No No No
.dts DTS:X Codec Either No 2015 No No No No No
.dts DTS:X Pro Codec Either No 2019 No No No No No

Codecs and Containers

A coding format specifies how audio is represented; a codec implements encoding or decoding. A container organizes encoded audio and associated information. Reading a container and decoding its audio are separate operations. Lossy compression does not universally use “fuzzy logic,” and Opus is not defined as an AI codec: its standard specifies SILK and CELT coding tools. RFC 6716.

PCM in the Playback Chain

Many audio decoders produce PCM samples for mixing, processing or playback. This does not mean every digital recording or every disc soundtrack is stored as uncompressed PCM. A container may carry compressed audio that is decoded later; other signal representations also exist.

PCM, LPCM, and ADPCM

PCM represents sampled amplitudes as numerical codes. LPCM uses a linear quantization scale. ADPCM predicts samples and codes differences with adaptive quantization; it is lossy compression, not merely PCM inside another wrapper. Microsoft ADPCM overview.

PCM

A PCM recording samples an analog signal in time and quantizes the measured amplitude. Finite sampling and quantization are distinct from lossless compression of those resulting digital samples. “Lossless” file compression means exact recovery of the input samples, not an exact copy of every property of the original analog waveform. Sampling tutorial; Quantization tutorial.

LPCM

LPCM is linear pulse-code modulation. The term PCM is often used for LPCM in file and playback specifications, but the exact format still needs its sample rate, channel count and sample representation. LPCM is one possible disc audio format; a DVD or Blu-ray soundtrack is not necessarily LPCM.

ADPCM

ADPCM (Adaptive Differential Pulse Code Modulation) compresses predicted sample differences with adaptive quantization. Microsoft ADPCM and IMA ADPCM are distinct implementations. WAVEFORMATEX is a structure describing an audio format, not another codec. Microsoft ADPCM overview; WAVEFORMATEX.

Multi-Channel: Codec or [Codec] Extension?

It’s easy for the average person to feel overwhelmed trying to figure out multi-channel audio terminology as it pertains to audio files, file extensions, and how these correlate to multi-channel sound. Which technologies are audio codecs? Which are features of a codec? Which are features of a device? This confusion is frequently pertinent to complex surround sound/multi-channel codecs. Their nomenclature often doesn’t help. For example, while several Dolby Digital and DTS formats are codecs, most anecdotal technologies associated with them are not (e.g. Dolby Atmos).

Why is this important relative to audio file extensions? If you’re aspiring toward a particular type of surround sound recording in an audio file, it’s important to understand which file types may or may not be capable of supporting the type of audio you’re interested in. While that subject gets complicated pretty easily. For example, true 6.1 discrete channel output vs. matrixed (pseudo) 6.1 output are both “6.1” but there is a difference between the actual sound recordings, file size, and the PCM audio sent to your audio output device, such as a home theater A/V receiver.

Dolby Laboratories and DTS Codecs

Channel count, coded objects and rendered speaker outputs measure different things. Limits depend on the codec profile, delivery format and playback equipment. There is no universal 32-channel ceiling shared by all audio codecs.

Dolby Atmos and DTS:X

Dolby Atmos and DTS:X support rendering spatial audio to a playback layout. Channel beds and objects can coexist; object audio does not mean channels disappear from every stage. Decoder compatibility and fallback depend on the particular delivery format. DTS Neural:X is an upmixer, a different role from decoding a DTS:X object soundtrack. See the reviewed audio-object comparison for the detailed distinctions.

Dolby AC-4

Dolby AC-4 supports channel-based and immersive presentations with associated metadata. Frames are coded time units, not another name for audio objects. Its standardization predates 2018; the separately reviewed AC-4 article distinguishes specification dates from regional broadcast deployment. ETSI AC-4 specification.

Auro: Auro-3D

Classic Auro-3D uses channel-based height layers. AuroMax adds a hybrid channel/object cinema system. Neither description supports calling every Auro format exclusively object-based. Auro-3D engine documentation; AuroMax system requirements.

Audio Codecs

An audio codec is a format or structure that provides storage and transmission capabilities of audio content.13 Sometimes described as an audio coding format or audio compression format. Audio codecs are not just algorithms. They are also schemas: systems or plans describing how information shall be recorded (encoded) and presented (decoded). Modern encoder and decoder codecs are almost always completely different algorithms. It is a strategy very similar to cybersecurity encryption key handling.

Audio codecs process, store, retrieve, and (in some cases) transmit audio based content including music, speech, and other sounds within the range of human hearing (~20hz - 20Khz). The chart below describes the most frequently encountered audio codecs. While not exhaustive, it is comprehensive.

Revised comparison — historical support observations

The format and descriptive-metadata entries were reconciled with the reviewed prose in November 2026. Selected compatibility corrections are marked ‡ and explained in the source notes; other support and popularity labels retain the original 2020 observations. System codecs, applications and add-ons have different capabilities, and remaining channel maxima have not all been retested. These tables are not a current compatibility certification. See the original version for the unchanged tables.

Audio Codecs
Codec Notation Channels / output scope Decoder Native Operating System Support
Win-10 Linux macOS iOS Android
Advanced Audio Coding (AAC)16 AAC 4817 Yes Yes Yes Yes Yes
Advanced Audio Coding Plus (HE-AAC)18 AAC+ 4817 Yes‡ No No Yes Yes
Dolby Digital AC-3 (Audio Coding 3) AC-3 5.1 Yes Yes1 Yes Yes Yes
Adaptive Differential PCM (ADPCM) ADPCM 2+19 Yes Yes Yes Yes No
Apple Lossless Audio Codec (ALAC) ALAC 8 Yes No Yes Yes No
Audio Lossless Standard (ALS) ALS 65,536 No No No No No
Adaptive Multi-Rate Audio Codec (AMR)5 AMR 1 No No Yes No Yes21
Monkey's Audio (APE) APE 8 Yes No Yes22 Yes22 No
Digital Theater Systems (DTS) DTS 5.1 No Yes1 No No No
DTS-HD Master Audio (DTS-HD MA) DTS 11.1 No No No No No
DTS:X23 DTS 11.1 No No No No No
DTS:X Pro24 DTS Up to 30.2 rendering outputs No No No No No
Dolby Digital Plus (DD+/Enhanced AC-3) E-AC-3 15.1 Yes Yes1 Yes Yes Yes
Free Lossless Audio Codec (FLAC) FLAC 8 Yes Yes Yes25 Yes26 Yes
MPEG-1 Audio Layer I (MP1) MP1 2 Yes Yes No No No
MPEG-1 Audio Layer II (MP2) MP2 2 Yes Yes No No No
MPEG-1 Audio Layer III (MP3 gen1) MP3 2 Yes Yes Yes20 Yes Yes27
MPEG-2 Audio Layer III (MP3 gen2) MP3 1–2 (ordinary MP3; see multichannel distinction) Yes Yes Yes20 Yes Yes27
Musepack MPC 8 Yes Yes Yes No No
Opus Interactive Audio (Opus) OPUS 1–2 per coded stream;
up to 255 mapped outputs
No Yes Yes9 Yes9 Yes28
Pulse Code Modulation (PCM)29 PCM Format- and implementation-dependent Yes Yes Yes Yes Yes
Scablable Lossless Standard (SLS) SLS 65,536 No No No No No
Dolby Digital TrueHD31 THD 832 Yes No Yes Yes No
True Audio TTA n/a Yes33 No No No No
Vorbis Vorbis 255 Yes Yes No No Yes‡
WavPack WavPack 16 No Yes No No No
Windows Media Audio (WMA) [Lossy] WMA 6 Yes Yes No No No
Windows Media Audio (WMA) [Lossless] WMA 6 Yes No No No No
Windows Media Audio Pro (WMA Pro) WMA Pro 7.1 Yes No No No No

Multi-Channel Codecs

Uncompressed PCM can contain multiple channels. A limit imposed by a transport or device is not a universal eight-channel limit on PCM, and buffering does not change a format’s channel map. For example, WAVEFORMATEX uses a 16-bit channel-count field, while practical configurations are constrained by the rest of the format and implementation. Field capacity alone is not a tested playback capability. Microsoft WAVEFORMATEX.

AAC (Advanced Audio Coding)

AAC is a family of lossy audio coding tools standardized in MPEG-2 Part 7 and MPEG-4 Part 3. AAC-LC, HE-AAC and HE-AAC v2 are profiles, not successive names for MPEG-2 and MPEG-4. HE-AAC adds spectral band replication (SBR) to AAC-LC; HE-AAC v2 also adds parametric stereo (PS). Fraunhofer HE-AAC overview.

AAC was standardized in MPEG-2 Part 7 in 1997. The table dates HE-AAC to the 2003 MPEG-4 bandwidth-extension amendment. The existing 2003 paper by Wolters and colleagues describes earlier commercial use under the aacPlus name, so this is the standardization milestone rather than the first use of that brand. ISO/IEC 14496-3:2001/Amd 1:2003; Wolters et al., A closer look into MPEG-4 High Efficiency AAC.

ADIF/ADTS framing, the MP4 container, and AAC coding profiles answer different questions. ALS and SLS are separate MPEG-4 tools; an AAC-LC decoder is not a universal MPEG-4 audio decoder.

ALAC (Apple Lossless Audio Codec)

ALAC is the Apple Lossless Audio Codec. It has no lossy mode; AAC is a separate lossy codec. Apple released the codec source under the Apache 2.0 license. Its documented capabilities include 16-, 20-, 24- and 32-bit samples and one to eight channels. Common files carry ALAC in MP4 (.m4a) or CAF, so .alac is not a universal standalone-file requirement. Metadata belongs to the chosen storage format. Apple ALAC source documentation; ALAC license.

APE (Monkey’s Audio)

Monkey’s Audio, often better known by its file extension, APE is a compressed, lossless audio codec. Monkey’s Audio is not a very popular audio codec largely due to its very limited operating system support. It is widely supported on Windows, but requires third-party applications on every other operating system. It is virtually unheard of Mac operating system and mobile platforms.

When I wrote the original article in 2020, I considered Monkey’s Audio’s proprietary licensing a factor in its limited adoption.

The older Monkey’s Audio license allowed free and commercial products to add APE playback, encoding or tagging. Its written-consent requirement applied to proprietary uses of the code that did not support the official APE format; it was not a blanket requirement to ask permission before using the codec. Earlier license reproduced in Philips’ player manual, page 5.

Version 10.18 switched to the three-clause BSD license on August 10, 2023. That license permits source and binary redistribution, with or without changes, subject to its stated conditions. Its prior-permission clause concerns endorsement using the copyright holder’s or contributors’ names. Monkey’s Audio version history; current license.

It’s primary functional use-case appears to be compressing raw PCM files (such as lossless WAVe), resulting in lossless but compressed APE files. Monkey’s Audio scores higher in data compression tests on the encoding portion and receives relatively negative views with regard to its decompression/decoding aptitude when compared with other lossless audio codecs.38.

The decoding drawback here concerns processing cost, not loss of audio samples. Van Beurden’s 2015 comparison documents the trade-off between compression and decoding speed for Monkey’s Audio 4.12; its results depend on the tested versions, settings and material. Lossless Audio Codec Comparison, revision 4, pages 5–6 and 11.

Popularity: Common
Support: Good
Type: Lossy
Stand-alone: .ac3
Genre: Home Theater

Dolby Digital (AC-3)

AC-3 (Dolby Digital) is lossy perceptual audio coding supporting up to five full-bandwidth channels plus an LFE channel. The AC-3 and E-AC-3 specifications are distinct portions of ATSC A/52:2018: Annex E specifies the enhanced E-AC-3 syntax, not the base AC-3 format. ATSC A/52:2018. A .ac3 elementary stream and a container carrying AC-3 are different packaging choices; confirm both decoder and container support.

Dolby Digital Plus (Enhanced AC-3)

Enhanced AC-3 (E-AC-3, Dolby Digital Plus) extends the Dolby Digital family. Bitrate is not sampling frequency, and the higher encoded bitrate limit must not be described as a sample-rate increase. Container support and decoder support both matter. Renaming .eac3 to .ac3 does not convert an E-AC-3 bitstream into AC-3 or make an AC-3-only decoder compatible. Dolby Digital Plus technical paper.

Dolby records the first public introduction of Dolby Digital Plus as October 2004. The July 2006 date in the references belongs to RFC 4598, its RTP payload specification. Dolby 2004 registration statement; RFC 4598.

Dolby TrueHD (THD/MLP)

Dolby TrueHD is lossless audio coding. Blu-ray delivery supports up to eight channels at 96 kHz/24-bit or six at 192 kHz/24-bit; profile and device limits matter. Atmos can be delivered with TrueHD, but the cinema figure of 128 objects is not a claim that a home receiver renders 128 speakers. Dolby TrueHD overview.

Dolby announced TrueHD on September 8, 2005. That announcement predates the 2008 overview cited below; the table uses the announcement year. Dolby TrueHD announcement.

Commercial use is documented by August 2006. Peter M. Bracke’s August 29, 2006 review describes listening to TrueHD tracks on four released Warner HD DVDs, including The Phantom of the Opera, using Toshiba’s HD-A1/HD-XA1 players after their version 2.0 firmware update enabled multichannel playback. This establishes retail playback before 2008 without treating the 2005 announcement as proof of product availability. Bracke’s contemporary TrueHD listening review.

DTS (Digital Theater Systems)

DTS supports seven (7) simultaneous full-bandwidth channels and one (1) low frequency channel. No operating system natively supports it, though numerous third-party applications exist that incorporate the DTS codec. DTS and its variants are proprietary technologies offered through commercial licensing. Independent open-source decoders also exist: dcadec’s LGPL-licensed software decodes core DTS and DTS-HD Master Audio. The software license of an independent decoder is distinct from DTS’s commercial technology licensing. DTS professional SDK licensing; dcadec documentation and license.

Standard: Implementation of DTS Audio in Media Files Based on ISO IEC 14496 (2014).

Popularity: Uncommon
Support: Poor
Type: Lossless
Stand-alone: .dts
Genre: Home Theater

DTS-HD Master Audio

Digital Theater Systems High Definition Master Audio (DTS-HD MA) - now that’s a mouthful for a codec name - is DTS’ equivalent of Dolby’s TrueHD. DTS-HD Master is a lossless, proprietary audio codec. It supports seven (7) simultaneous full-bandwidth channels and one (1) low frequency channel. No operating system is natively compatible with it, although some third-party applications incorporate the DTS-HD MA codec. DTS-HD MA is a proprietary format, but independent open-source decoding is available. The dcadec project documents lossless Master Audio decoding under the LGPL and its subsequent integration into FFmpeg. Its first public release was in November 2015, before this article was written. dcadec documentation; release history.

DTS-HD Master Audio requires substantial bandwidth, in part because it transmits two (2) streams simultaneously: a lossy stream (referred to by DTS as the “core” stream) and an accompanying layer DTS refers to as the “residual” stream, which contains the difference between the original signal and lossy core stream.

Standard: DTS-HD and DTS-HD Master Audio Enabling HD Audio Across an Evolving Media Delivery Landscape (2012).

Popularity: Very Rare
Support: Poor
Type: Lossless
Stand-alone: .dts
Genre: Home Theater

DTS:X

DTS:X is Digital Theater Systems’ response to Dolby’s Atmos. Like Atmos, DTS:X is a 3-Dimensional audio format that introduces the concept of audio objects, while maintaining backward compatability with traditional channel-based audio encoding methods. DTS:X is not actually a codec; rather it is an extension to the DTS-HD Master Audio codec (it sits on top of that codec). DTS:X streams are backwards-compatible with DTS-HD MA decoders. The latter will ignore the 3D/height object encoding present in DTS:X streams.

Popularity: Very Rare
Support: Poor
Type: Lossless
Stand-alone: .dts
Genre: Home Theater

DTS:X Pro

DTS:X Pro expands the rendering capacity of compatible processors, with configurations up to 30.2 outputs. It is not a new .dts file type or proof that an encoded soundtrack contains 32 discrete channel tracks. Trinnov’s DTS:X Pro explanation.

FLAC (Free Lossless Audio Codec)

FLAC is lossless compression of PCM samples. RFC 9639 specifies one to eight channels and sample precision from 4 to 32 bits; actual encoder/player support may be narrower. Decoding preserves the original samples. Native FLAC has metadata blocks, including Vorbis comments and picture blocks. RFC 9639.

MP3 (MPEG-1/2 Audio Layer III)

MP3 refers to MPEG Audio Layer III, not “Music Player 3.” MPEG-1 and MPEG-2 Layer III use mono/stereo coding; the separate MPEG-2 multichannel extension should not be presented as a universal 5.1 MP3 capability. Supporting MP3 does not automatically promise support for Layers I and II. RFC 3003; MPEG Audio FAQ.

The original 70% popularity figure came from a 2015–2020 Google Trends comparison. Search interest is not a census of audio files or listeners; the query terms and calculation would be needed to reproduce that estimate. Google describes Trends as sampled, normalized search interest. Google’s explanation of Trends data.

Musepack (MPC)

Musepack (MPC) is a lossy perceptual audio codec, not a lossless codec. Its compression and listening quality should be evaluated within that category. Musepack project.

Opus

Opus combines SILK and CELT tools and supports speech and general audio. An individual Opus coded stream is mono or stereo; multistream mappings can combine streams for more channels. Ogg Opus permits mappings with up to 255 output channels, which is not 255 independent channels in every Opus stream. Opus can also be transported without an Ogg file, such as over RTP. RFC 6716; RFC 7845.

Opus Standards

Opus is huge and complex. Illustrating this point, the Opus specifications span four (4) RFC documents:

Popularity: Low
Support: Poor
Type: Lossless
Stand-alone: .tta
Genre: Music

True Audio (TTA)

True Audio (TTA) is lossless audio coding with implementations beyond a Windows codec pack; FFmpeg documents both TTA encoding and decoding. FFmpeg’s format and codec support.

The comparison cited in the original article does support an approximate 60% figure: the unweighted mean of its six album results is 59.9% of the original WAVE file size, or about a 40% reduction. This was a result for LibTTA 2.3 on that test material, not a fixed compression ratio. Individual albums ranged from 46.6% to 69.2% of their original size. Tau Software’s comparison tables.

Compression ratios and encoding speed depend on the material, settings and implementation. WAVE is a container that may hold PCM or compressed audio; it is not synonymous with uncompressed audio.

Vorbis

Vorbis is a lossy perceptual audio codec. Vorbis comments are its textual metadata convention, not a separate audio codec. Lossless coding instead preserves every input sample; the two categories should not be ranked as if they offered the same guarantee. Vorbis comment specification; FLAC lossless definition.

WavPack

WavPack is an open-source, lossless audio codec designed to compress WAV files (making them smaller) while retaining lossless audio quality. WavPack’s BSD license.

WavPack is also capable of operating in a “hybrid” mode, where a secondary file is created. In this mode, the primary file is a lossy, compressed copy of the original source. The secondary file acts as a correction file. During playback, the WavPack decoder uses the data in this correction file to restore the details sacrificed during the lossy file’s creation. DTS-HD Master Audio and SLS are also capable of similar hybrid operations, though they incorporate both lossy and lossless versions of the original art into a single file.

Popularity: Uncommon
Support: Poor
Type: Lossy
Stand-alone: .wma
Genre: Music

Windows Media Audio (WMA)

Windows Media Audio (WMA) is a blanket term referring to a family of proprietary audio codecs developed by Microsoft Corporation.

This section describes WMA, a compressed, lossy audio format, and the most common of the WMA codecs. Like many things created by Microsoft, WMA files are a bit of an oddball. First, there are four (4) WMA audio codecs: WMA, WMA Pro, WMA Lossless, and WMA Voice. These codecs must reside inside a container.

The WMA Voice codec is not discussed in this document.

Microsoft documents native WMA support through Windows Media Foundation. Playback elsewhere depends on the application and installed decoder; this article does not establish a current operating-system compatibility matrix. Microsoft’s format list. A WMA file is nearly always incorporated into an Advanced Systems Format (ASF) container, a proprietary Microsoft container format for digital audio and/or digital video. The file’s extension will be .wma, .wm, or .asf.

Popularity: Uncommon
Support: Poor
Type: Lossless
Stand-alone: .wma
Genre: Music

Windows Media Audio - Lossless (WMA Lossless)

Windows Media Audio (WMA) is a blanket term referring to a family of proprietary audio codecs developed by Microsoft Corporation.

This section describes WMA Lossless, a compressed, lossless audio format. It must reside inside a container.

WMA Lossless decoder availability must be checked for the specific operating system and application; the format itself does not establish a Windows-only restriction. A WMA file is nearly always incorporated into an Advanced Systems Format (ASF) container, a proprietary Microsoft container format for digital audio and/or digital video. The file’s extension will be .wma, .wm, or .asf.

Popularity: Very Rare
Support: Very Poor
Type: Lossy
Stand-alone: .wma
Genre: Music

Windows Media Audio Professional (WMA Pro)

Windows Media Audio Professional is a codec in the Windows Media family. It is distinct from WMA Lossless, and ASF is a common storage container for WMA content. PIFF is an ISO base media format, not WMA Pro’s universal native container. Codec, file format and implementation support should be checked separately. Microsoft ASF overview.

Other Audio Codecs and Profiles

The following formats address different goals. Low-delay or low-bitrate coding and lossless preservation are separate design choices; ALS and SLS do not belong in a universal “low bandwidth” class.

AAC+ (Advanced Audio Coding Plus/HE-AAC)

AAC is a family of lossy audio coding tools standardized in MPEG-2 Part 7 and MPEG-4 Part 3. AAC-LC, HE-AAC and HE-AAC v2 are profiles, not successive names for MPEG-2 and MPEG-4. HE-AAC adds spectral band replication (SBR) to AAC-LC; HE-AAC v2 also adds parametric stereo (PS). Fraunhofer HE-AAC overview.

ALS (Audio Lossless Coding)

ALS means Audio Lossless Coding. It is a distinct MPEG-4 audio coding tool, not an AAC-LC profile or a transport wrapper. The reference design supports integer and floating-point PCM up to 32 bits and up to 65,536 channels. Those syntax capabilities are not a promise that a particular player implements them. An AAC-only decoder does not thereby decode ALS. TU Berlin ALS documentation.

AMR (Adaptive Multi-Rate)

AMR and AMR-WB are speech codecs used in telecommunications. They are not AAC profiles. Codec support, 3GP storage and application availability are separate questions. 3GPP TS 26.244.

MP1 (MPEG-1 Audio Layer I)

MPEG-1 Layer I is one of three layers in the MPEG-1 Audio standard, not an earlier MPEG generation. Its indexed bitrates range from 32 to 448 kbit/s, with 32, 44.1 and 48 kHz sampling. MPEG Audio FAQ.

MP2 (MPEG-1 Audio Layer II)

MPEG-1 Layer II is another layer of the same audio standard. Its indexed bitrates range from 32 to 384 kbit/s. It has broadcast applications and is not simply an obsolete version that every MP3 decoder must support. MPEG Audio FAQ.

SLS (Scalable to Lossless)

MPEG-4 Scalable to Lossless (SLS) can add enhancement information to a lossy core to reconstruct the original PCM samples. Fraunhofer’s HD-AAC implementation combines AAC and SLS; decoding only its compatible AAC core yields lossy audio, not the lossless result. This does not make SLS and ALS interchangeable decoder formats. Fraunhofer 2008 annual report, HD-AAC.

Audio Containers

A multimedia container is a digital object that stores one or more audio and/or video streams encoded via one or more codecs. Audio containers are containers composed of one or more codec data streams. Although it is not required, most audio containers also encompass one or more distinct sets of metadata. Aside from metadata, containers do require fields that describe their contents.

Revised comparison — historical support observations

The format and descriptive-metadata entries were reconciled with the reviewed prose in November 2026. Selected compatibility corrections are marked ‡ and explained in the source notes; other support and popularity labels retain the original 2020 observations. System codecs, applications and add-ons have different capabilities, and remaining channel maxima have not all been retested. These tables are not a current compatibility certification. See the original version for the unchanged tables.

* Descriptive content information useful to an end user; technical headers and an undefined annotation area do not count. Codec lists are examples, not an application-compatibility guarantee.
Audio File Containers
Container File
Extensions
Supported
Codecs
Descriptive
metadata*
Native Support by Operating System
Win Lin Mac iOS And
3rd Generation Partnership Project (3GPP) .3gp | .3gpp AAC | AAC+ | AMR Yes Yes No No Yes Yes
Audio Data Interchange Format (ADIF) .adts AAC No Yes No Yes No No‡
Audio Data Transport Stream (ADTS) .adts AAC No Yes No Yes No Yes
Audio Interchange File Format (AIFF) .aif | .aiff
.aifc
PCM29 Yes Yes No Yes Yes‡ No
Advanced Systems Format (ASF) .asf
.wma
.wm
WMA | DTS | FLAC
AMR | MP1 | MP2
MP3 | AC3 | AAC
Opus | FLAC | ALAC
LPCM | ADPCM | μ-law
Yes Yes No No No No
Audio (Au) .au | .snd ADPCM
LPCM | μ-law51
No† Yes No Yes No No
Apple Core Audio Format (CAF) .caf AAC | ALAC
FLAC25,26 | LPCM
MP3 | Opus9
ADPCM
Yes No No Yes Yes No
Exchangeable Image File Format (EXIF) .wav PCM | ADPCM
LPCM | μ-Law51
Yes Yes No Yes No No
Material eXchange Format (MXF) .mxf AC-3 | MP1 | MP2
MP3 | AAC | PCM
LPCM
Yes No No No No No
Matroska .mka MP3 | AAC | AC3
THD | DTS
MPC | PCM | WavPack
FLAC52 | Vorbis
TTA | Opus53 | MP2
Yes Yes Yes No No Yes2
MPEG-4 Audio (MP4) .m4a
.alac
AAC | AAC+ | ALS
MP3 | ALAC | MP2
SLS | E-AC-3 | DTS
Opus
Yes; application-dependent Yes No Yes Yes Yes‡
Ogg .ogg | .oga | .opus FLAC54 | Opus
Vorbis
Yes Yes Yes No No Yes2
Resource Interchange File Format (RIFF) .riff PCM (for example, in WAVE) Yes Yes Yes Yes No No
WAVe (WAV)55 .wav | .wave56 PCM29 | ADPCM | LPCM Yes Yes Yes Yes‡ Yes‡ Yes
WebM .webm Opus | Vorbis Yes Yes8 No No No Yes

3GP (3GPP File Format)

3GPP is the 3rd Generation Partnership Project. Its 3GP file format can carry defined audio/video encodings and metadata; it is not itself a codec or simply another name for AAC. 3GPP TS 26.244.

The table’s 2004 date marks the March 2004 approval of the standalone TS 26.244 specification, recorded in its change history. The 3GP format was already specified in TS 26.234 by June 2003. TS 26.244, Annex B; TS 26.234 v5.5.0, section 9.2 and Annex D.

Audio Data Interchange Format (ADIF)

ADIF (Audio Data Interchange Format) describes an AAC stream with configuration information at its beginning. ADIF and ADTS belong to MPEG-2 AAC, ISO/IEC 13818-7; neither is an MP3 format. They carry technical configuration rather than a general album-tagging system. Brandenburg, MP3 and AAC Explained.

Audio Data Transport Stream (ADTS)

ADTS (Audio Data Transport Stream) frames AAC audio with repeated headers containing synchronization and frame-length information. It is an audio framing format, not an audio/video container such as MP4. A filename extension or a header alone does not establish every supported AAC profile. Brandenburg, MP3 and AAC Explained.

AIFF (and AIFC)

AIFF descends from IFF and was specified by Apple in 1988, before RIFF’s 1991 introduction. AIFF-C adds a compression-type mechanism and can also carry uncompressed audio. An Exif audio specification is not the AIFF specification. Apple AIFF specification.

Advanced Systems Format (ASF)

ASF (Advanced Systems Format) uses GUID-identified objects, including a Header object, Data object and optional indexes. It is not a RIFF chunk format. Windows Media audio/video are common payloads, and descriptive metadata can be stored in defined objects. Microsoft ASF overview.

Microsoft dates the launch of ASF technology to 1996, when it was called Advanced Streaming Format. A revised draft specification followed in 1997. The table uses that launch milestone; the December 2004 specification in the bibliography is a later revision. Microsoft’s ASF history; Microsoft’s September 1997 draft announcement.

Au (Audio)

Sun/NeXT AU is a container with a 24-byte header, an optional annotation area and audio data. Its header specifies the encoding, sample rate and a 32-bit channel count; it is not inherently a two-channel codec. It can describe linear PCM and other encodings. Sun audio file format specification. AU remains No in the descriptive-metadata comparison.1

Broadcast WAVE Format (BWF)

BWF extends WAVE with broadcast metadata, notably the bext chunk. It is not Ogg Skeleton metadata and is not inherently restricted to two channels. The chna extension can connect tracks to ADM identifiers. WAVE-family files can carry different audio encodings, subject to the chosen specification. EBU BWF channel-assignment supplement.

Broadcast WAVE Format 64 (BW64)

BW64 is the ITU-R BS.2088 WAVE-family format using 64-bit sizes through a ds64 chunk. ADM metadata uses axml and channel references use chna; increasing the size field does not itself add objects or speaker channels. The 2019 and 2025 editions differ: BS.2088-2 permits bext and ubxt. See the reviewed format history for the edition comparison. BS.2088-2.

Apple Core Audio Format (CAF)

Apple’s Core Audio Format (CAF) is an audio container with typed chunks, an audio-description chunk and an audio-data chunk. Its chunk size field is a signed 64-bit integer; an audio-data chunk can use a special unknown-size value during recording. This avoids ordinary RIFF’s 32-bit size constraint, but is not mathematically unlimited storage. CAF can identify PCM and compressed formats. Apple CAF specification. Its optional info chunk includes content fields such as artist, album and title, so CAF meets this article’s descriptive-metadata definition.

Exchangeable Image File Format (EXIF)

The Exchangeable Image File Format (EXIF) specification was originally designed for adding metadata to photographs. Over time it expanded to include the ability to record audio data. Its primary purpose with regards to audio is to associate audio data with photographs. EXIF may also be used exclusively to record certain types of PCM-based audio data. EXIF is capable of reading WAVE container files and programs capable of understanding WAVE containers are capable of decoding EXIF audio files. EXIF follows the RIFF (Resource Interchange File Format) standard as a foundation for audio files (also known as RIFF/WAVE). A potential advantage for some audio recording circumstances of EXIF is its structured metadata.

EXIF audio files use the .wav file extension and must follow the RIFF/WAVE container format (WAVE) standard. The following audio codecs are supported:

EXIF-based metadata is optional. When present, it is incorporated into RIFF “INFO” chunks, as defined in the EXIF specification (currently version 2.32; May 2019).

Standard: Camera and Imaging Products Association (CIPA). “Exchangeable image file format for digital still cameras: Exif Version 2.32.” (May 2019). CIPA DC-008-2019. Section 5: Exif Audio File Specification.

File extensions:
Contextual metadata (structured): Yes
Contextual metadata (unstructured): Yes

Material eXchange Format (MXF)

Material Exchange Format (MXF) is a multimedia container format for video and audio media defined by a set of SMPTE standards. MXF is very rarely found in use by consumers. It was designed to be and is most often found in corporate environments, where it is popular as an archival file type. In fact, MXF was developed specifically to work with the Advanced Authoring Format file format; a professional, cross-platform information exchange protocol designed for post-production video sharing and editing. How are they related? AAF is designed to be a working standard, where a work-of-art is not yet finalized. MXF is intended as an archival format, for the long-term storage of completed work.

MXF is mentioned here for completeness, and because consumers and digital audio enthusiasts may occassionally encounter a MXF file.

Standard: ST 377-1:2011 - SMPTE Standard - Material Exchange Format (MXF) — File Format Specification. (7 June 2011).

File extensions: .mxf
Contextual metadata (structured): Yes
Contextual metadata (unstructured): Yes

Matroska

Matroska is a very popular, open source, multimedia container. Matroska’s component licenses. It is the basis for WebM. In fact, Matroska is the closest thing to a universal container type you will find. By design, it currently supports virtually all known audio and video compression formats.

Standard: Matroska Specifications

File extensions: .mka
Contextual metadata (structured): Yes
Contextual metadata (unstructured): Yes

MPEG-4 Audio

MPEG-4 Audio is Part 3 of MPEG-4; MP4 is the Part 14 file format, based on the ISO base media file format. An audio-only MP4 file commonly uses .m4a and may contain AAC or ALAC. .mpa is not a synonym for .m4a. File extensions do not replace inspection of the codec and sample-entry signaling. Apple file/data format documentation.

MP4 tagging has developed through additional conventions as well as the base format. Apple’s December 2013 note describes the clip metadata defined specifically for MP4 as limited to copyright, while documenting title and author fields through 3GPP user-data conventions. That distinction matters when comparing early MP4 support with later application behavior. The table’s Yes means descriptive tags can be carried; it does not promise uniform tagging across editions and players. Apple TN2174 (2013).

Practical metadata limitations: MP4 can carry descriptive tags, but an application’s ability to read an existing tag does not establish its ability to create, edit, preserve or use that tag. A player may show a title or artist while offering no way to change it, and a library may retain a field without using it for sorting or search. File contents, tagging conventions and application support all matter. The table’s qualified Yes means the file can carry descriptive information. See MP4’s reading, writing, preservation and library-use limitations.

Ogg

Ogg is a container. The codec mapping defines how its packets are interpreted and how comments or artwork are stored. Standard extensions include .oga for audio, .ogv for video, .ogx for multiplexed application content and the established .ogg for Vorbis audio; Ogg Opus commonly uses .opus. These are not separate macOS-only formats. RFC 5334; RFC 7845.

Resource Interchange File Format (RIFF)

RIFF is a chunk-based file structure with 32-bit chunk-size fields. WAVE and AVI are RIFF forms. AIFF also descends from IFF, but is not a RIFF derivative: Apple’s AIFF specification predates RIFF. A filename change does not turn a 32-bit RIFF file into a 64-bit format. Microsoft RIFF overview; Apple AIFF specification.

RIFF File 64 (RF64)

RF64 is specified in EBU Tech 3306, not Tech 3360. Its ds64 chunk supplies 64-bit sizes; software must understand the extension to handle it correctly. There is no universal 20-channel limit or guarantee that every older WAVE reader can decode it. EBU’s 2018 decision to stop developing RF64 in favor of BW64 does not invalidate existing RF64 files.

WAVE (WAV)

WAVE is a RIFF form, commonly using .wav, that can carry PCM and other encodings such as ADPCM. Its format descriptor’s 16-bit channel field is not a 65,536-channel promise. File sizes, channel masks, block alignment and application support impose separate constraints. Metadata can have defined schemas in dedicated chunks. Microsoft RIFF/WAVE documentation; WAVEFORMATEX.

WebM

WebM is a Matroska-derived container, not a lossy audio codec. Its audio mappings include Vorbis and Opus. Metadata and playback support must be assessed for the actual streams and reader. WebM container guidelines.

Honorable Mentions

A few codecs, containers, and file types worth mentioning for the sake of completeness. Some of these are not really audio file types at all, but are often mis-understood by consumers as being some sort of audio file type.

Uncommon Audio Codecs and Containers

These file types may be encountered from time to time. If you are not already familiar with them, you are better off avoiding them.

Real Audio (Real Networks)

RealAudio names a family of audio formats associated with RealNetworks. Playback is not inherently restricted to a RealNetworks application: FFmpeg documents decoders for several RealAudio variants. Support must be checked for the actual codec, including any encryption, rather than inferred from the brand name or extension. FFmpeg’s format and codec support. The original popularity and compression-ranking comments were not based on a reproducible current comparison.

Obsolete Codecs

Audio codecs mentioned below are considered obsolete. If you have content created with one of these codecs, it is recommended you determine whether or not you are interested in retaining the content. If so, attempt to locate a conversion program and convert the content into a more widely supported audio codec of your choice.

Shorten (.shn)

Shorten is a lossless audio codec and file type released in 1993 and last updated in 2007. From an audio standpoint, it is obsolete compared with more modern and ubiquitous codecs with equal or better performance, such as FLAC and Monkey’s Audio (APE). Shorten is not supported by most decoders, though several programs permit converting Shorten files to modern alternatives such as FLAC.70 For a dated performance comparison, Van Beurden’s 2015 tests found Shorten 3.6.1 near FLAC’s lowest compression setting but slower; lossless decoding preserves the input samples in either case. 2015 comparison, page 11.

Speex (.spx)

.spx files are created with the Speex audio codec, which is designed explicitly for speech recordings. This codec is now considered obsolete, having been replaced by Opus.51

Obsolete Containers

Audio containers mentioned below are considered obsolete. If you have content created with one of these containers, it is recommended you determine whether or not you are interested in retaining the content. If so, attempt to locate a conversion program and convert the content into a more widely supported audio container of your choosing.

XMF (.xmf)

XMF is an abbreviation for eXtensible Music Format, an audio container specification developed by the MIDI Manufacturers Association and closely related to the MIDI standard. XMF is a chunk-style container format.

Released in 2001, XMF files may contain one or more specific file types. The XMF file serves as a wrapper for certain content and file types defined in the XMF Specification. XMF files are limited to standard MIDI files, DownLoadable Sound (DLS) instrument files, WAV files, and/or combinations of the aforementioned file types. The purpose of XMF files is to create a collection of all resources needed to present a musical piece, from MIDI (metadata/descriptive) files, DLS instrument files, and audio content preserved in a RIFF/WAVE container (embedded inside the XMF container).

Due to the passage of time and waning interest, XMF files should be considered unsupported from an encoding standpoint. Android’s media framework supports XMF and Mobile XMF playback through its MIDI support. Android formats. Third-party applications that support XMF are very rare (if you can find any at all). XMF currently only supports the original MIDI standard (i.e. not MIDI version 2.0).

More information about XMF may be found on the MIDI Association’s website: https://midi.org/extensible-music-format-xmf

Non-File Formats

AES-3

AES3 (also-known-as AES-3 or AES/EBU) is not a file type. Some end users get confused about this when reading about this standard developed by the European Broadcast Union (EBU) and mistakenly believe there is such a thing. AES3 is a protocol for exchanging PCM audio data between audio hardware devices. It is not a file type.52

CD-Audio (.cda)

CD Audio track files (.cda) do not contain audio data. CDA files are designed only for use on physical medium (discs) and not intended for digital distribution such as via files or streaming. They are simply pointers - akin to a table of contents - advising an application where the audio data is found for a particular track on the current CD.

MIDI (.midi)

MIDI stands for Musical Instrument Digital Interface. It is a technical standard; not an audio codec or container. MIDI files are descriptive. That is, they describe characteristics specifically related to musical instruments and computers designed to play, edit, and record music.53 To be clear, MIDI files don’t contain audio data. Think of them as metadata files only.

The original MIDI standard was released in 1983. In January 2019, MIDI version 2.0 was announced.54 Almost exactly a year later in January 2020, the new MIDI 2.0 was officially adopted.55

Compression

Compression reduces the representation size of data. Multichannel audio does not inherently require compression: uncompressed interleaved PCM is also multichannel. Codec choice affects the representation; channel count alone does not determine whether compression is used.

Lossy Audio Compression

Lossy Audio Compression means a smaller file is created in exchange for the loss of some auditory data. It is a file compression technique whereby some audio data is discarded in order to increase the rate of file compression and reduce the overall file size. The discarded audio data is normally limited to sounds perceived to be outside the range of normal human hearing and/or within range but unlikely to be audible to most people.

Lossless Audio Compression

Lossless compression reconstructs the original input samples exactly. Given the same PCM source, a correctly decoded lossless file and the corresponding uncompressed PCM have the same sample values. It does not recover detail already lost through earlier lossy coding or recording. Compression ratio depends on the content and settings; no universal file-size ordering applies. RFC 9639.

Which Codecs Are Best?

When it comes to multimedia playing and recording, this is of course a loaded question. There is no clear winner under every circumstance. However, gleaning over numerous independent comparisons of various metrics does yield trends among some of the codecs described in this article. The reality is what is “best” is dependent on the task at hand.

Which Codecs Have the Best Audio Compression?

Compression comparisons need a fixed source corpus, codec and encoder versions, settings, and measured output sizes. Lossy and lossless modes should be compared separately. ALAC is lossless; Ogg and WAVE are containers rather than single compression algorithms. The original fixed ordering remains in the preserved version.

The existing references support more specific comparisons. In Tau Software’s six-album test, WavPack 4.75.2 at its high setting produced smaller files than FLAC 1.3.1 at level 8 on each album. This is a result for those settings and inputs, not a universal ordering of FLAC and WavPack. Tau Software’s comparison and test setup.

Which Codecs Have the Best Audio Fidelity?

Lossless codecs reproduce the same input samples; they do not form a fidelity ranking when the source and output format are identical. Lossy quality depends on the encoder, bitrate, content and listening conditions. Bitrate alone is not a universal quality score, and a container name does not specify audio fidelity.

The site’s 2003 paper by Wolters and colleagues reports higher mean listening scores for HE-AAC than AAC at the tested 24 kbit/s mono and 48 kbit/s stereo rates, using twelve test items and the MUSHRA listening-test method. HE-AAC paper, section 3.4 and figures 11–12. The cited Opus comparison page likewise links specific listening tests; it describes its overview graph as a mixture of test results and anecdotal evidence and cautions against extracting exact values from it. Opus comparison and listening tests.

Which Codecs Are Faster?

Encoding and decoding speed depend on implementation, settings, hardware and source material. Van Beurden’s 2015 benchmark supplies a concrete example: FLAC 1.3.1 decoded faster than Monkey’s Audio 4.12 in its 43-CD comparison. The test used one active core of an AMD A4-3400 fixed at 2.7 GHz and measured CPU time with files on a RAM disk. This supports a dated comparison, not the original universal speed hierarchy. 2015 comparison, figure 1.2 and appendix B.

What Is Metadata?

Metadata, as used in this article’s comparisons, is descriptive information relevant to an end user, such as a song’s title, artist or album. The following labels also occur in format specifications; they explain broader usage rather than expanding what counts as descriptive metadata in the tables:

  1. Technical information: encoding and playback details, often called “technical metadata” in specifications. Structural information describes organization and relationships. These details are separate from the descriptive content tags measured in the tables.
  2. Contextual Metadata: a set of information that describes, parameterizes or catalogs content, such as episode number, copyright holder, etc. Also known as "Descriptive Metadata."
  3. Dark Metadata: information an application does not understand, such as private tags or unfamiliar extensions. The name is a tongue-in-cheek analogy to dark matter. It describes the reader’s understanding, not a separate format capability; a descriptive tag can be “dark” to one reader and useful to another.

A codec or container can carry technical information without offering descriptive content tags. Descriptive metadata may be carried by the container or by an associated tagging convention, such as ID3 for MP3. The relevant format and the application’s handling of its tags both matter.

Bibliography

  1. AAC audio subtype. (6 April 2018). Internet Assigned Numbers Authority (IANA). https://www.iana.org/assignments/media-types/audio/aac
  2. AAC Decoder. (31 May 2018). Microsoft. https://docs.microsoft.com/en-us/windows/win32/medfound/aac-decoder
  3. "Advanced Systems Format (ASF) Specification; Revision 01.20.03." (December 2004). Microsoft Corporation.
  4. Angela. (18 December 2014). Files supported by Android. Online-Convert.com. https://blog.online-convert.com/files-supported-by-android/
  5. Android supported media formats. https://developer.android.com/guide/topics/media/media-formats
  6. Apple Core Audio Format Specification 1.0. (12 October 2011). https://developer.apple.com/library/archive/documentation/MusicAudio/Reference/CAFSpec/CAF_overview/CAF_overview.html
  7. Ashland, Matt. (12 March 2020). Monkey's Audio Version History. https://www.monkeysaudio.com/versionhistory.html
  8. Au file format. (4 September 2019). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Au_file_format
  9. Audio coding formats support. Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Comparison_of_video_container_formats#Audio_coding_formats_support
  10. Brandenburg, K. (1999). MP3 and AAC Explained. Proceedings of the AES 17th International Conference: High-Quality Audio Coding, Florence, Italy, 1999 September 2-5.
  11. CAF File Overview. (12 October 2011). Apple Core Audio Format Specification 1.0. https://developer.apple.com/library/archive/documentation/MusicAudio/Reference/CAFSpec/CAF_overview/CAF_overview.html
  12. Codecs. (6 August 2008). Ubuntu Wiki. https://wiki.ubuntu.com/Media/Codecs
  13. Codecs list. Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/List_of_codecs
  14. File types supported by Windows Media Player. https://support.microsoft.com/en-us/help/316992/file-types-supported-by-windows-media-player
  15. FLAC format specification. Xiph.Org. https://xiph.org/flac/format.html
  16. Grill, B. and Quackenbush, S. (October 2005). MPEG-1 Audio. MPEG The Moving Picture Experts Group. MPEG-1 Audio (October 2005)
  17. Harris, Mark. (14 January 2020). What Audio File Formats Can iPhone Play? Lifewire. https://www.lifewire.com/what-audio-file-types-can-iphone-play-2438433
  18. "Header file for Audio, .au" (10 November 1992). Sun Microsystems. https://pubs.opengroup.org/external/auformat.html
  19. Intro to Audio Programming, Part 2: Demystifying the WAV Format. (23 June 2009). Microsoft Corporation. https://docs.microsoft.com/en-us/archive/blogs/dawate/intro-to-audio-programming-part-2-demystifying-the-wav-format
  20. Intro to Audio Programming, Part 2: Demystifying the WAV Format. (22 June 2009). Microsoft. https://docs.microsoft.com/en-us/archive/blogs/dawate/intro-to-audio-programming-part-2-demystifying-the-wav-format
  21. Linear Pulse Code Modulated Audio (LPCM). (28 February 2017). Library of Congress. Sustainability of Digital Formats: Planning for Library of Congress Collections. Library of Congress LPCM description (the live page has later updates)
  22. Matroska specifications. https://matroska.org/technical/specs/index.html
  23. Media container formats (file types). (12 December 2019). Mozilla Corporation. https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Containers
  24. Monkey's Audio. (19 November 2019). hyrdogen audio. https://wiki.hydrogenaud.io/index.php?title=Monkey%27s_Audio
  25. Monkey's Audio. (22 December 2019). Wikipedia. https://en.wikipedia.org/wiki/Monkey%27s_Audio
  26. More Android audio format support info. https://developer.android.com/reference/android/media/AudioFormat
  27. MPEG-4 standard (metadata). https://en.wikipedia.org/wiki/MPEG-4_Part_14#Metadata
  28. Opus. http://opus-codec.org/
  29. Overview of the ASF Format. (31 May 2018). Microsoft. https://docs.microsoft.com/en-us/windows/win32/wmformat/overview-of-the-asf-format
  30. Pulse Code Modulation And Demodulation. (n.d.). ElProCus Technologies Pvt Ltd. https://www.elprocus.com/pulse-code-modulation-and-demodulation/
  31. Purnhagen, Heiko. (7 November 2001). MPEG Audio FAQ - MPEG-2: coded transmission/storage of sampled sound waves. https://sound.media.mit.edu/resources/mpeg4/audio/faq/mpeg2.html
  32. Quality vs Bitrate. https://opus-codec.org/comparison/
  33. Resource Interchange File Format (RIFF). 30 May 2018. Microsoft. https://docs.microsoft.com/en-us/windows/win32/xaudio2/resource-interchange-file-format--riff-
  34. Supported Audio File and Data Formats in OS X. (30 October 2017). https://developer.apple.com/library/archive/documentation/MusicAudio/Conceptual/CoreAudioOverview/SupportedAudioFormatsMacOSX/SupportedAudioFormatsMacOSX.html
  35. Supported media formats. (28 January 2020). Android Developer. https://developer.android.com/guide/topics/media/media-formats
  36. Tech Stuff - Audio/Video Files, Codecs and Containers. (21 December 2015). ZYTRAX. https://www.zytrax.com/tech/audio/formats.html
  37. True Audio (.tta) codec. http://tausoft.org/wiki/True_Audio_Codec_Overview
  38. van Rossum, Guido. (1 August 1994). Subject: FAQ: Audio File Formats (part 1 of 2). Internet Newsgroup. http://jedi.ks.uiuc.edu/~johns/links/music/audiofile1.html
  39. Vorbis Comment. (24 January 2020). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Vorbis_comment
  40. WavPack. (12 January 2020). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/WavPack
  41. WebM Container Guidelines (video). https://www.webmproject.org/docs/container/
  42. What is LPCM (PCM). (n.d.). https://www.appgeeker.com/audio/what-is-lpcm.html
  43. What is the difference between M4A and AAC Audio Files? (7 August 2013). Stack Overflow. https://stackoverflow.com/questions/18110399/what-is-the-difference-between-m4a-and-aac-audio-files/18111039
  44. What’s True About Dolby® TrueHD? (2008) Dolby Laboratories. https://www.dolby.com/uploadedFiles/Assets/US/Doc/Professional/truehd-overview.pdf
  45. XMP SPECIFICATION PART 3: STORAGE IN FILES. 2016. Adobe Systems Incorporated. https://wwwimages2.adobe.com/content/dam/acom/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart3.pdf
  46. Zibreg, Christian. (14 September 2017). iPhone X & 8 support FLAC playback, iOS 11 brings it to iPhone 7. iDownloadBlog.com (iDB). https://www.idownloadblog.com/2017/09/14/iphone-x-hardware-flac-codec/
  47. Zytrax. (21 October 2015). https://www.zytrax.com/tech/audio/formats.html

Endnotes

1 Linux playback depends on the installed decoder and audio-output path. PulseAudio can pass supported compressed streams to a receiver or carry PCM decoded by the player; it is not a required Dolby/DTS decoder. Kodi also documents an ALSA output path. Kodi’s PulseAudio and ALSA explanation.

2 Decoding capabilities only.

3 RealNetworks’ RealAudio can use a separate file under some circumstances, with the file extension .ram, however these files appear to function as a combination of metadata and redirect to the actual audio file content. Therefore, in order to utilize metadata contained in the .ram file, it must be called first and the .ra file must not be called directly or there will be no metadata association.

4 Lossless by default with lossy “hybrid” mode. See WAVPack section in this document for more information.

5 For AMR on Android, the framework lists both .3gp and .amr files. Android formats.

6 RIFF file type; follows RIFF metadata format.

7 Renaming an E-AC-3 file does not convert its codec or ensure AC-3-only decoder support.

8 Xiph’s DirectShow filters are one Windows playback option, not a universal WebM requirement. The WebM project separately documents browser playback and Windows Media Player component requirements. Xiph filters; WebM playback guidance.

9 The original observation concerned Opus in CAF on iOS 11 and macOS High Sierra (10.13), circa 2017. It is not a universal restriction on later software: Safari 18.4 added Ogg Opus and Vorbis on macOS 15.4 and iOS/iPadOS 18.4 in March 2025. WebKit release notes.

10 Android documents Opus decoding from version 5.0 and encoding from version 10. Its current container list includes Ogg, MP4 and Matroska for decoding; this does not establish that every listed wrapper was supported in Android 5.0. Android formats.

11 Audio codec. (31 October 2019). Wikipedia. https://en.wikipedia.org/wiki/Audio_codec

12 Joshi, Amrata. (22 October 2018). Opus 1.3, a popular FOSS audio codec with machine learning and VR support, is now generally available. Packt Publishing. https://hub.packtpub.com/opus-1-3-a-popular-foss-audio-codec-with-machine-learning-and-vr-support-is-now-generally-available/

13 Audio coding format. (22 November 2019). Wikipedia. https://en.wikipedia.org/wiki/Audio_coding_format

14 IMA = Interactive Multimedia Association. IMA is a now extinct organization that developed a set of audio algorithms, including a particular ADPCM algorithm.

15 Auro-3D. (20 December 2019). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Auro-3D

16 MPEG-4 Part 3 standard. Successor to MP3 (MPEG-2 Part 3 standard).

17 Plus up to 16 independent low-frequency range limited channels intended as sub-woofer channels.

18 AAC decoder compatibility depends on the profile, signaling and implementation; see the corrected AAC section.

19 The number of channels supported by Adaptive Differential Pulse Code Modulation (ADPCM) codecs varies depending on the operating system and implementation, with a low limit of two (2).

20 Apple’s cited Core Audio table lists MP3 decoding, but no MP3 encoder, for OS X 10.4. Mac applications can supply their own encoders; Apple Music offers MP3 encoding in its import settings. Archived Core Audio table; Music import settings.

21 Android AMR support includes .amr as well as .3gp; see note 5.

22 Limited compatibility; decoding only.

23 Wouk, Kris. (8 August 2018). What is DTS:X? Digital Trends. https://www.digitaltrends.com/home-theater/what-is-dts-x/

24 After-market codec support is required. No operating system supports this codec natively.

25 Partial, inconsistent support for FLAC. Decoding supported in QuickTime. Playback not supported at all in iTunes. Spotty support in general with Mac OS and iOS.

26 iOS 11 or later only, but not in iTunes. Spotty support in general. Possibly impacted by hardware dependencies.

27 Decoding capability only.

28 Android Opus support is not Matroska-only; see note 10 for decoder/encoder versions and the current container list.

29 PCM = Pulse Code Modulation. In this context, the term is a broad definition that also refers to its variants such as Linear Pulse Code Modulation (LPCM).

30 WAVEFORMATEX has a 16-bit channel-count field. That field is not a tested maximum playable configuration.

31 TrueHD can carry Atmos for compatible playback; first-release chronology is separate from codec capability.

32 Atmos presentations can combine channel beds and objects. Coded objects and physical speaker outputs are different counts.

33 Requires a free add-on codec pack.

34 HE-AAC adds SBR to AAC-LC; HE-AAC v2 also adds PS. These are specific profiles, not names for MPEG-2 and MPEG-4.

35 Wolters, Martin; Kjorling, Kristofer; Homm, Daniel; Purnhagen, Heiko. (13 October 2003). “A closer look into MPEG-4 High Efficiency AAC.” Presented at the 115th Convention of the Audio Engineering Society, 10–13 October 2003.

36 iTunes Video and Audio Asset Guide 5.2. (2014). Cupertino, CA: Apple, Inc. Retrieved from https://www.apple.com/au/itunes/lp-and-extras/docs/iTunes_VideoandAudio_Asset_Guide5.2.pdf

37 Foresman, Chris. (October 28, 2011). After seven years, Apple open sources its Apple Lossless Audio Codec. Ars Technica. https://arstechnica.com/gadgets/2011/10/after-seven-years-apple-open-sources-its-apple-lossless-audio-codec/

38 Monkey’s Audio. (8 February 2020). Retrieved from https://wiki.hydrogenaud.io/index.php?title=Monkey’s_Audio

39 Dolby Digital Plus (DD+) is mentioned in RFC 4598, which was published in July 2006 by the IETF (Internet Engineering Task Force).

40 Search engine data analyzed from 2015-2020 using Google Trends (https://trends.google.com/trends/?geo=US

41 Don’t allow yourself the become confused between Vorbis and Vorbis Comment. They are two different things. Their differences are explained in this article, under Vorbis Comment.

42 Cue sheets are formatted text files that provide index and other supplemental information for one or more audio files. They are called “cue sheets” partly because they are often used to create playlists (i.e. cueing a group of songs to play, in a particular order).

43 what is FLAC? (2014). Xiph.Org Foundation. https://xiph.org/flac/

44 Information sources: Musepack Source Code/Libs and Musepack.

45 Comparing the TTA codec with three popular lossless audio compressors. (9 November 2015). Tau Software. http://tausoft.org/wiki/True_Audio_Codec_Comparison The developer’s accessible comparison page provides the test setup and album tables.

46 LFE = Low Frequency Effects (i.e. bass frequencies; generally under 120 hz).

47 SLS is MPEG-4 Scalable to Lossless coding, distinct from ALS.

48 MPEG-4 Scalable to Lossless (SLS) can add enhancement information to a lossy core to reconstruct the original PCM samples. Fraunhofer’s HD-AAC implementation combines AAC and SLS; decoding only its compatible AAC core yields lossy audio, not the lossless result. This does not make SLS and ALS interchangeable decoder formats. Fraunhofer 2008 annual report, HD-AAC.

49 MPEG-4 SLS. (2019). Via Licensing Corporation. https://www.via-corp.com/licensing/mpeg-4-sls/

50 MPEG-4 SLS. (2019). Via Licensing Corporation. https://www.via-corp.com/licensing/mpeg-4-sls/

51 μ-law (pronounced “u-law”) is a telecommunications algorithm used to digitize and compress speech audio. It is applied predominantly in North America and Japan.

52 FLAC-in-Matroska playback depends on the player and decoder. Windows 10 is not a universal minimum: VideoLAN documented FLAC in MKV support in VLC 2.0, before Windows 10. This is application support, not a claim about Windows’ built-in decoder. VideoLAN’s VLC 2.0 release notes.

53 The originally cited Xiph wiki proposal labels itself a draft. That does not establish that Opus in Matroska was still generally experimental in February 2020: MKVToolNix 6.4.0 documented final Opus muxing on September 15, 2013, and Matroska’s codec mappings include A_OPUS. MKVToolNix release history; Matroska codec mappings.

54 Ogg FLAC is not Linux-only. Xiph’s Windows DirectShow filters explicitly support FLAC both as a native stream and inside Ogg; the player must use the installed filters. Xiph DirectShow formats.

55 Technically, WAVE (or WAV) is a Resource Interchange File Format (RIFF) container, and is modeled on the RIFF standard.

56 64-bit Resource Interchange File Format (RIFF) required for file sizes 4 GB or greater.

57 “Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; Transparent end-to-end packet switched streaming service (PSS); 3GPP file format (3GP) (3GPP TS 26.244 version 14.1.0 Release 14).” (January 2018). ETSI TS 126 244 V14.1.0 Release 14. Section 5.5: 16-17.

58 Any classification of AAC content qualifies (e.g. AAC-LE and HE-AAC, and HE-AACv2 to name a few).

59 AIFF-C identifies a compression type and can also carry uncompressed audio; the extension alone does not prove lossy coding.

60 Supports XMP (Extensible Metadata Platform), ID3v2 metadata (tags).

61 ASF (Advanced Systems Format). (6 April 2007). Library of Congress. https://www.loc.gov/preservation/digital/formats/fdd/fdd000067.shtml)

62 Au file format. (4 September 2019). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Au_file_format

63 G.711 is a PCM (Pulse Code Modulation) signal processing standard for voice frequencies. The G.711 PCM narrowband codec was created by ITU-T, which stands for the International Telecommunication Union Telecommunication Standardization Sector, an international body of experts that jointly develops interoperable telecommunications standards. The μ-Law portion of the standard relates to a particular variety of the standard which is found mostly in the United States and Japan. It is a very old standard (circa 1972), but is still used today. Source: “PULSE CODE MODULATION (PCM) OF VOICE FREQUENCIES: ITU-T Recommendation G.711.” (1993, 1988, 1972). International Telecommunication Union.

64 MPEG-4 Part 12 and Part 14 have different scopes; one is not simply a renumbered edition of the other.

65 MP4 can carry descriptive content tags through defined conventions. Early format-specific fields, later conventions and application support need to be distinguished; see the MP4 discussion.

66 “TECH 3306: RF64 - AN EXTENDED FILE FORMAT FOR AUDIO DATA.” (June 2018). European Broadcasting Union. Version 2.

67 About the EBU. (2019). European Broadcasting Union (EBU). https://www.ebu.ch/about

68 RF64/BW64 require appropriate reader support; backward compatibility is not guaranteed by changing a filename.

69 The August 1991 IBM/Microsoft RIFF/WAVE specification already registers IBM ADPCM as a WAVE format (tag 0x0103). This entry identifies IBM’s variant; it does not establish the introduction dates of Microsoft ADPCM or IMA ADPCM. Multimedia Programming Interface and Data Specifications 1.0, PDF page 58.

70 Reference: Shorten (file format). (4 January 2020). Wikipedia. Wikimedia Foundation. https://en.wikipedia.org/wiki/Shorten_(file_format)

71 Speex: A Free Codec For Free Speech. (2006). Xiph.Org. https://www.speex.org/

72 AES3 is a container standard applied only to the transmission of PCM audio data between professional audio devices. For an operating standard reference, see IEC 60958, Part 4.

73 Swift, Andrew. (May 1997), “A brief Introduction to MIDI”, SURPRISE, Imperial College of Science Technology and Medicine.

74 Jeffrey, Cal. (29 January 2019). MMA and AMEI announce MIDI 2.0 prototyping has begun. TechSpot. https://www.techspot.com/news/78493-mma-amei-announce-midi-20-prototyping-has-begun.html

75 Details about MIDI 2.0™, MIDI-CI, Profiles and Property Exchange. (n.d.). The MIDI Association. https://www.midi.org/articles-old/details-about-midi-2-0-midi-ci-profiles-and-property-exchange

76 Lossless comparison. (28 September 2019). hydrogenaudio. https://wiki.hydrogenaud.io/index.php?title=Lossless_comparison#Comparison_Table For primary benchmark evidence, see Martijn van Beurden’s 2015 revision 4. This is a lossless compression/speed study, not a lossy listening-quality ranking.

Later Property Exchange Revisions

The local Property Exchange download above is version 1.0, dated February 20, 2020. Later editions are available separately: version 1.1 from AMEI and the current version 1.2 reference from the MIDI Association. These references do not replace the historical download.


  1. The Sun format’s header supplies decoding information. Its optional annotation area has no specified title, artist or album fields. Neither is counted as descriptive content metadata here. An application can adopt its own annotation convention without making it a format-defined content-tagging system. Sun audio file specification. ↩︎