Back to Blog
Technicalaudiomp3wav

Audio File Formats Explained: MP3 vs WAV vs FLAC vs AAC

Understand the differences between audio formats, when to use each, and how to choose the right format for music, podcasts, and professional audio work.

LoopalooPublished December 5, 202510 min read

The World of Digital Audio

Digital audio has come a long way since the early days of pulse-code modulation in the 1960s. Today, anyone with a smartphone carries a music library that would have occupied an entire room full of vinyl records just decades ago. Yet the sheer variety of audio formats (WAV, FLAC, MP3, AAC, Opus, and many others) can leave even experienced creators scratching their heads. Each format strikes a different balance between fidelity, file size, compatibility, and purpose, and knowing those trade-offs is what lets you make smart decisions about how you store, share, and produce sound.

The Fundamentals: How Sound Becomes Data

Before examining individual formats, it helps to understand the three pillars of digital audio quality. The sample rate, measured in kilohertz, determines how many snapshots of the analog waveform a system captures each second. The CD standard of 44.1 kHz was chosen because it satisfies the Nyquist theorem for the roughly 20 kHz upper limit of human hearing, while 48 kHz became the norm in video production for historical synchronization reasons. Higher rates such as 96 kHz or 192 kHz extend the captured frequency range well beyond audibility; whether that translates into perceptible improvement remains a lively debate among audiophiles, though the extra headroom can be useful during production, for example when audio will be pitch-shifted or heavily processed.

Bit depth governs dynamic range: the gap between the quietest and loudest sound a recording can faithfully represent. At 16 bits, CD audio offers roughly 96 dB of dynamic range, more than enough for consumer listening. Professional workflows lean on 24-bit recording, which raises the theoretical ceiling to around 144 dB. The much lower noise floor lets engineers record at conservative levels, leaving plenty of headroom for loud transients without clipping while still capturing soft ambience cleanly. Some modern DAWs even work internally at 32-bit floating point, making it practically impossible to clip a signal during mixing.

For compressed formats, a third metric comes into play: bitrate, expressed in kilobits per second (kbps). A higher bitrate allocates more data to each second of audio, preserving more detail. Variable bitrate encoding (VBR) takes this a step further by adapting on the fly, spending more bits on complex passages and fewer on silence or simple tones, which gives more consistent quality for the same average file size.

Uncompressed Formats: The Raw Originals

WAV, short for Waveform Audio File Format, is the workhorse of professional audio. Co-developed by Microsoft and IBM in 1991, it stores PCM data with no compression at all, meaning every sample is written exactly as captured. A minute of stereo CD-quality WAV consumes roughly 10 MB, and an hour-long recording can easily exceed 600 MB. Those sizes can be daunting, but the format rewards users with absolute fidelity and near-universal compatibility, from professional DAWs to consumer media players. Where WAV falls short is metadata: its support for tags, artwork, and other embedded information is limited and inconsistent across software.

Apple's answer to WAV is AIFF, the Audio Interchange File Format, released in 1988. Technically, AIFF stores the same uncompressed PCM data as WAV, so there is no inherent quality difference between the two. The practical differences are mostly about history and habit: AIFF has historically offered somewhat better metadata support, and it has long been common in Apple's audio software. If you work primarily on macOS, you'll run into AIFF regularly; otherwise, WAV is the safer choice for cross-platform interoperability.

Lossless Compression: Smaller Files, Zero Sacrifice

Lossless codecs sit at the sweet spot for anyone who cares deeply about quality but would prefer not to dedicate a terabyte drive exclusively to music. FLAC, the Free Lossless Audio Codec, is the most widely supported option. Released in 2001, FLAC combines linear prediction, where each sample is estimated from the samples before it, with Rice coding of the small difference between the estimate and the real value. The result is a file that is typically 50 to 70 percent the size of the equivalent WAV, yet decompresses to a bit-for-bit identical copy of the original. A 600 MB WAV album, for instance, becomes roughly 300 to 400 MB in FLAC. The format is open-source and royalty-free, which helped it become the standard for archival music collections, audiophile streaming services like Tidal, and high-resolution download stores. It also supports rich metadata, including embedded cover art and ReplayGain tags.

Apple Lossless (ALAC) serves the same purpose within the Apple ecosystem. It achieves compression ratios comparable to FLAC and was open-sourced in 2011, though hardware and software support outside Apple's world remains patchier. For anyone deeply invested in Apple Music, iTunes, and iOS devices, ALAC offers an easy path to lossless playback without converting between ecosystems.

Lossy Compression and the Science of Psychoacoustics

Lossy codecs achieve dramatically smaller file sizes by discarding audio data that, in theory, most listeners will never miss. The strategy behind this rests on psychoacoustic modeling, a branch of science that studies how humans perceive sound. Our hearing has well-documented blind spots: a loud tone at one frequency can render a quieter tone at a nearby frequency completely inaudible, a phenomenon known as frequency masking. Similarly, a loud transient like a cymbal crash can mask softer sounds that occur a few milliseconds before or after it, an effect called temporal masking. Lossy encoders exploit these perceptual gaps aggressively, throwing away information the ear would never register.

MP3: The Format That Changed Everything

MP3, formally MPEG-1 Audio Layer III, made music small enough to share online and carry around by the thousand, and in the process it reshaped the entire music industry. Standardized in 1993, its encoding pipeline begins by converting audio into the frequency domain via a modified discrete cosine transform (MDCT). A psychoacoustic model then evaluates which frequency components fall below the masking threshold and can be quantized more coarsely or removed entirely. Finally, Huffman coding compresses the remaining data into a compact bitstream.

At 128 kbps, an MP3 file is roughly one-eleventh the size of the CD original: a minute of stereo audio occupies about 1 MB instead of 10 MB. Pushing the bitrate to 320 kbps closes much of the audible quality gap, though trained listeners using high-end equipment can sometimes detect artifacts such as pre-echo or the loss of stereo imaging in complex orchestral passages. Despite its age and the existence of more efficient successors, MP3 remains the most universally compatible audio format on the planet, supported by virtually every device, browser, and media player ever made. It is the safe default when you have no idea what your audience's playback equipment looks like.

AAC: The Refined Successor

Advanced Audio Coding was designed in the late 1990s as a direct improvement on MP3, and it shows. AAC's encoder uses a pure MDCT (without the hybrid filter bank that introduces some inefficiencies in MP3), supports sampling frequencies up to 96 kHz, and handles up to 48 channels. In practice, 128 kbps AAC is widely considered equivalent to 160 kbps MP3, and Apple's iTunes Store settled on 256 kbps AAC as its standard download quality, a bitrate at which the vast majority of listeners cannot tell the compressed file from the original in blind tests. AAC is one of YouTube's main audio codecs, the format of Apple Music's lossy tier, and a staple of many other streaming platforms, which makes it the de facto successor to MP3 for everyday listening.

OGG Vorbis and the Open-Source Alternative

Ogg Vorbis emerged in the early 2000s as a patent-free response to MP3 and AAC. Developed by the Xiph.Org Foundation, it delivers quality competitive with AAC, and some tests suggest it outperforms MP3 at bitrates below 128 kbps. Vorbis found a loyal niche in gaming, where its zero licensing costs made it a natural fit, and in streaming, where Spotify has long used it as its main codec. Its weakness is device support: while software players handle it well, hardware support on older portable players and car stereos has been inconsistent.

Opus: The Modern All-Rounder

If you could choose only one lossy codec going forward, Opus would be a strong candidate. Standardized by the IETF in 2012, it merges the speech-optimized SILK codec (originally from Skype) with the music-oriented CELT codec into a single encoder that can switch between the two modes mid-stream. Opus delivers impressive quality at low bitrates, often matching other codecs running at noticeably higher bitrates in listening tests, and it scales all the way to 510 kbps for music. Its latency can drop as low as 5 milliseconds, making it the codec of choice for WebRTC, VoIP, and real-time communication. It is open, royalty-free, and now supported natively in all major browsers. For podcasts, voice memos, and any application where bandwidth is at a premium, Opus is the clear frontrunner.

Choosing the Right Format for Your Workflow

The best format depends on where your audio is headed. In a professional production pipeline, you should record and mix in uncompressed WAV or AIFF at 24-bit/48 kHz or higher, preserving maximum fidelity through every stage of editing. When delivering a finished master, the destination determines the format: streaming services typically accept WAV or FLAC uploads and handle their own transcoding, while podcast hosts and directories generally expect MP3 (AAC is widely accepted too), with 128 kbps a common choice.

For personal music libraries, FLAC offers the ideal balance of quality and storage efficiency, cutting the space WAV needs by a third to a half while preserving every last sample. If you live inside Apple's ecosystem, ALAC achieves the same result and plays natively on all your devices. And if you are building a web application or real-time communication tool, Opus is the modern standard: small, fast, and supported in every major browser.

For archiving, the principle is simple: always keep a lossless copy. FLAC is the best choice for accessibility and metadata support; WAV is the fallback when maximum compatibility matters more than file size. You can always generate lossy variants from a lossless master later, but you can never recover detail that was discarded by a lossy encoder.

The Cardinal Rule of Format Conversion

One rule transcends all use cases: never transcode from one lossy format to another. Converting an MP3 to AAC, for instance, applies a second round of psychoacoustic modeling to audio that has already been stripped of information, compounding artifacts and degrading quality with no meaningful reduction in file size. Converting a lossy file to a lossless format is equally pointless: you get a larger file without recovering any of the discarded data. The only sensible conversion paths are lossless to lossless (which preserves quality perfectly) and lossless to lossy (which applies a single, controlled quality reduction). Always keep lossless masters and generate compressed variants from them as needed.

Working with Audio Formats in Practice

Format conversion is a routine task for anyone who works with audio, and it need not be complicated. Loopaloo's browser-based Audio Format Converter converts between MP3, WAV, OGG, AAC, M4A, and FLAC without installing software, with control over bitrate, sample rate, channels, and bit depth. All processing happens locally, so your files never leave your machine. If you need a specific section of a recording before converting it, the Audio Trimmer cuts exactly where you mark it on the waveform, and the Audio Merger joins clips end to end or layers them on one timeline, which is handy when assembling a podcast episode from separate segments.

The Bottom Line

Audio formats carry decades of research in signal processing, information theory, and human perception. WAV and AIFF preserve every last sample at the cost of storage space. FLAC and ALAC compress without sacrifice, making lossless audio practical for everyday use. MP3 traded some fidelity for a revolution in portability, and AAC refined that trade-off further. Opus, the newest contender, pushes the boundary of what is possible at low bitrates while remaining open and royalty-free.

With these formats in mind, it's much easier to see why a file sounds muddy after conversion, why a podcast host rejects an upload, or whether that "high-resolution" download is really better than CD quality, and to pick the right format on purpose rather than by chance.

Related Tools

Related Articles