Audio file formats

24 formats in this category.

The audio formats in everyday use are MP3, AAC, WAV, FLAC, OGG and Opus: MP3 and AAC for compressed music, WAV and AIFF for uncompressed recording, FLAC for lossless archiving, and Opus for voice and streaming. The table below lists every audio format documented here with how it compresses, what it is used for and where it plays.

Every audio file format compared

Lossy formats throw away sound you are unlikely to hear in order to shrink the file. Lossless formats keep every sample but still compress. Uncompressed formats store raw samples and are the largest of all.

FormatFull nameCompressionPlays without extra software onTypically used for
.mp3MPEG-1 Audio Layer IIILossyEvery operating system, browser and portable playerMusic files, podcasts, anything that must play everywhere
.aacAdvanced Audio CodingLossyiOS, macOS, Windows, Android, all major browsersApple Music, YouTube and most streaming; the .m4a files phones record
.oggOgg VorbisLossyAndroid, Chrome, Firefox, VLCGame audio and open-source software, where MP3 licensing was avoided
.opusOpusLossyChrome, Firefox, Edge, Android, VLCVoice notes, calls and low-bitrate streaming; the best quality per kilobyte
.wmaWindows Media AudioLossy (a lossless variant exists)Windows; VLC on other systemsMusic ripped on older Windows PCs
.amrAdaptive Multi-RateLossy, tuned for speechAndroid, VLCVoice recordings and voicemail from phones
.ac3Dolby DigitalLossy, multichannelVLC, AV receivers, DVD and Blu-ray playersSurround soundtracks on DVD, Blu-ray and broadcast TV
.dtsDTS Coherent AcousticsLossy, multichannelVLC, AV receivers, Blu-ray playersSurround soundtracks, often as an alternative to Dolby Digital
.flacFree Lossless Audio CodecLosslessWindows 10 and later, Android, VLC, Chrome, Firefox, SafariHi-fi libraries and archiving CDs without losing anything
.apeMonkey's AudioLosslessfoobar2000, VLCEnthusiast archives; compresses harder than FLAC but is slower
.wvWavPackLossless (hybrid mode available)foobar2000, VLCArchiving where a small lossy version plus a correction file is useful
.ttaTrue AudioLosslessfoobar2000, VLCReal-time lossless encoding on modest hardware
.dsfDSD Stream File1-bit DSD, uncompressedfoobar2000 and JRiver with DSD support, high-end DACsSACD rips and high-resolution audio collections
.wavWaveform Audio File FormatUncompressed PCM (usually)Every operating system and audio editorRecording, editing, mastering and sound effects
.aiffAudio Interchange File FormatUncompressed PCMmacOS, VLC, all professional audio softwareRecording and editing on Apple systems
.auSun/NeXT AudioUncompressed PCM or mu-lawVLC, AudacityOld Unix system sounds and Java program audio
.cafCore Audio FormatContainer: any codec, commonly PCM or AACmacOS, iOS, VLCLong Apple recordings that would overflow the WAV size limit
.mkaMatroska AudioContainer: any codecVLC and most desktop playersWhole albums or audiobooks with chapters in a single file
.m4bMPEG-4 AudiobookLossy AAC, with chapters and bookmarksApple Books, VLC, most audiobook appsAudiobooks that remember where you stopped
.m4riPhone RingtoneLossy AACiOS and the Apple Music appCustom iPhone ringtones, an AAC clip with a different extension
.midMIDINot audio at all: note instructionsWindows, VLC, every music production appSheet-music style data, keyboards and old game or phone tunes

M3U, PLS and XSPF are not audio. They are playlists: short text files listing the paths of the tracks to play in order.

All audio formats A to Z

.aacAACAdvanced Audio Coding.ac3AC-3Dolby Digital Audio.aiffAIFFAudio Interchange File Format.amrAMRAdaptive Multi-Rate Audio.auAUSun Audio.cafCAFCore Audio Format.dsfDSFDSD Stream File.dtsDTSDTS Surround Audio.flacFLACFree Lossless Audio Codec.m3uM3UM3U Playlist.m4bM4BMPEG-4 Audiobook.m4rM4RiPhone Ringtone File.midMIDIMIDI Sequence.mkaMKAMatroska Audio.apeMonkey's AudioMonkey's Audio Lossless.mp3MP3MPEG-1 Audio Layer III.oggOGGOgg Vorbis / Ogg container.opusOpusOpus Audio.plsPLSPLS Playlist.ttaTTATrue Audio Lossless File.wavWAVWaveform Audio File Format.wvWavPackWavPack Audio.wmaWMAWindows Media Audio.xspfXSPFXML Shareable Playlist Format

Which audio format should I use?

For music you want to play anywhere, MP3 at 192 kbps or higher still has no equal in compatibility. For the same size at slightly better quality, AAC is the modern choice and is what Apple Music, YouTube and most phones use by default.

For a collection you intend to keep, rip to FLAC. It is lossless, so it can be converted to any lossy format later without a second generation of quality loss, and it typically stores a CD at roughly half the size of the raw WAV.

For recording and editing, work in WAV or AIFF and only compress on export: repeatedly editing and re-saving a lossy file degrades it each time. For speech, calls and anything at a very low bitrate, Opus outperforms everything else.

Does converting between audio formats lose quality?

Converting from lossless to lossless (WAV to FLAC and back) loses nothing at all, which is the point of a lossless codec. Converting lossless to lossy (FLAC to MP3) discards detail once, which is normal and usually inaudible at a good bitrate.

The case to avoid is lossy to lossy, such as MP3 to AAC or a re-encoded MP3. Each pass throws away more, and the second encoder is working on damage the first one already did. Always convert from the highest-quality copy you still have.

How to tell what an audio file really is

Audio formats identify themselves in their first bytes. An MP3 with tags starts with the ASCII text ID3, a FLAC file starts with fLaC, a WAV starts with RIFF and has WAVE at offset 8, and an Ogg or Opus file starts with OggS. A file named .mp3 that starts with fLaC is a FLAC in disguise.

That matters because a wrong extension is the usual reason a player rejects an otherwise fine file. Drop it into the identifier on the home page to read the real signature in your browser, or open it in VLC and check Tools then Codec Information.

Compressed, lossless and uncompressed

Audio formats fall into three groups. Lossy compressed formats (MP3, AAC, OGG, Opus) discard sound information to shrink the file, which is inaudible at good bitrates and perfect for streaming and portable use. Lossless compressed formats (FLAC, ALAC) keep every bit of the original but still save space, so they suit archiving and high-fidelity listening. Uncompressed formats (WAV, AIFF) store raw samples, giving the largest files and the simplest data, favoured in recording and editing.

MP3 remains the most compatible format and plays on anything. AAC, used by Apple and YouTube, sounds better at the same bitrate. Opus is the modern champion for low-bitrate speech and streaming.

Codec or container?

As with video, some audio extensions are codecs and others are containers. An .m4a file, for example, is an MP4 container that usually holds AAC audio, while .ogg is a container that most often holds Vorbis or Opus. This is why the same extension can hold different underlying audio.

Frequently asked questions

What is the most common audio file format?

MP3 is still the most universally supported, and AAC is the most used in modern streaming and on phones. Between them they cover almost all everyday audio.

Which audio format has the best sound quality?

Uncompressed WAV and AIFF and the lossless codecs FLAC, ALAC, APE, WavPack and TTA all preserve the original recording exactly, so none of them sounds better than another. Among lossy formats, Opus and AAC beat MP3 at the same bitrate, especially below 128 kbps.

Is FLAC better than MP3?

FLAC is lossless, so it keeps every sample of the source and MP3 does not. The trade is size: a FLAC album is roughly three to five times larger than the same album as a 320 kbps MP3, and some phones and car stereos will not play FLAC at all.

What audio format does an iPhone record?

Voice Memos saves .m4a files, which are MP4 containers holding AAC audio, and custom ringtones use the same audio with the .m4r extension. Both are covered on the AAC page.

What is the difference between a codec and a container in audio?

The codec is the compression method (MP3, AAC, Vorbis, FLAC) and the container is the file that holds it (.mp3, .m4a, .ogg, .mka). Some extensions name a codec and some name a container, which is why an .ogg file can hold Vorbis or Opus and an .m4a can hold AAC or ALAC.

How many audio file formats are there?

Dozens are in active use and hundreds have existed. This page documents the ones you are realistically likely to meet, from MP3 and WAV to broadcast surround formats such as Dolby Digital and DTS.

Step-by-step opening guides

Stuck on one file rather than choosing a format? These walk through opening it on each system.

Other categories