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.
| Format | Full name | Compression | Plays without extra software on | Typically used for |
|---|---|---|---|---|
| .mp3 | MPEG-1 Audio Layer III | Lossy | Every operating system, browser and portable player | Music files, podcasts, anything that must play everywhere |
| .aac | Advanced Audio Coding | Lossy | iOS, macOS, Windows, Android, all major browsers | Apple Music, YouTube and most streaming; the .m4a files phones record |
| .ogg | Ogg Vorbis | Lossy | Android, Chrome, Firefox, VLC | Game audio and open-source software, where MP3 licensing was avoided |
| .opus | Opus | Lossy | Chrome, Firefox, Edge, Android, VLC | Voice notes, calls and low-bitrate streaming; the best quality per kilobyte |
| .wma | Windows Media Audio | Lossy (a lossless variant exists) | Windows; VLC on other systems | Music ripped on older Windows PCs |
| .amr | Adaptive Multi-Rate | Lossy, tuned for speech | Android, VLC | Voice recordings and voicemail from phones |
| .ac3 | Dolby Digital | Lossy, multichannel | VLC, AV receivers, DVD and Blu-ray players | Surround soundtracks on DVD, Blu-ray and broadcast TV |
| .dts | DTS Coherent Acoustics | Lossy, multichannel | VLC, AV receivers, Blu-ray players | Surround soundtracks, often as an alternative to Dolby Digital |
| .flac | Free Lossless Audio Codec | Lossless | Windows 10 and later, Android, VLC, Chrome, Firefox, Safari | Hi-fi libraries and archiving CDs without losing anything |
| .ape | Monkey's Audio | Lossless | foobar2000, VLC | Enthusiast archives; compresses harder than FLAC but is slower |
| .wv | WavPack | Lossless (hybrid mode available) | foobar2000, VLC | Archiving where a small lossy version plus a correction file is useful |
| .tta | True Audio | Lossless | foobar2000, VLC | Real-time lossless encoding on modest hardware |
| .dsf | DSD Stream File | 1-bit DSD, uncompressed | foobar2000 and JRiver with DSD support, high-end DACs | SACD rips and high-resolution audio collections |
| .wav | Waveform Audio File Format | Uncompressed PCM (usually) | Every operating system and audio editor | Recording, editing, mastering and sound effects |
| .aiff | Audio Interchange File Format | Uncompressed PCM | macOS, VLC, all professional audio software | Recording and editing on Apple systems |
| .au | Sun/NeXT Audio | Uncompressed PCM or mu-law | VLC, Audacity | Old Unix system sounds and Java program audio |
| .caf | Core Audio Format | Container: any codec, commonly PCM or AAC | macOS, iOS, VLC | Long Apple recordings that would overflow the WAV size limit |
| .mka | Matroska Audio | Container: any codec | VLC and most desktop players | Whole albums or audiobooks with chapters in a single file |
| .m4b | MPEG-4 Audiobook | Lossy AAC, with chapters and bookmarks | Apple Books, VLC, most audiobook apps | Audiobooks that remember where you stopped |
| .m4r | iPhone Ringtone | Lossy AAC | iOS and the Apple Music app | Custom iPhone ringtones, an AAC clip with a different extension |
| .mid | MIDI | Not audio at all: note instructions | Windows, VLC, every music production app | Sheet-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
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.