Introduction
WAV is the standard audio file of Windows. Microsoft and IBM defined it in 1991, in the
Multimedia
Programming Interface and Data Specifications, as one use of their Resource
Interchange File Format (RIFF). A WAV file is a RIFF chunk with the form type
WAVE: a run of chunks, each a four-character ID, a size and data, of which
the format chunk says how the audio is encoded and the data chunk holds the samples.
Most WAV files hold uncompressed PCM, which makes them large but simple and exact, and
they are the usual way to record, edit and exchange audio between programs.
The format has grown many times since 1991, almost always by adding: new chunks, which older readers skip, new format codes, and new fields at the end of a structure whose size says how much is there. Versions that only add like this share a format. A change to the signature, the byte order or the rule that gives each chunk its size makes a separate format, described here with its own full reference. There are four.
A file dropped on any page of this site opens in the explorer, which takes apart the chunks it knows, shows the tags, cue points, loops and broadcast details, and plays the waveform of every codec it has a decoder for. Chunks and codecs it cannot read are shown as bytes, and the format codes page lists which codecs those are.
Variations
| Format | Variation | About | Open |
|---|---|---|---|
.WAV | Waveform audio (RIFF) | The usual WAV file: little-endian RIFF chunks with 32-bit sizes, up to 4 GB. | Open |
.WAV | Big-endian waveform audio (RIFX) | The rare big-endian WAV: the same chunks, every number most significant byte first. | Open |
.WAV | EBU RF64 audio (RF64) | WAV past 4 GB: sizes set to 0xFFFFFFFF, with the real 64-bit sizes in a ds64 chunk. | Open |
.WAV | ITU-R BW64 audio (BW64) | ITU-R BS.2088's RF64: 64-bit sizes plus ADM metadata in axml and chna chunks. | Open |
All four end their 12-byte header with the form type WAVE at offset 8.
The four bytes at offset 0 say which format the file is.
Waveform audio (RIFF)
The ordinary WAV file, which nearly every .wav is. Every number is
little-endian and every size 32-bit, which limits a file to 4 GB. Its reference covers
the 1991 specification and what has been added since: WAVEFORMATEX and
WAVE_FORMAT_EXTENSIBLE, the
format codes, and the metadata
chunks, including the Broadcast Wave Format’s bext. A few chunks are not
taken apart, and many codecs are not decoded; the pages say which. A Broadcast Wave
(.bwf) file is this format.
Bytes 0 to 3 are RIFF (52 49 46 46) and bytes 8 to 11 are
WAVE.
Big-endian waveform audio (RIFX)
The same chunks with every number stored most significant byte first, as the 1991 specification allows for RIFF files in general. Its samples are big-endian too. It is rare: SciPy writes it, and libsndfile and FFmpeg read it. Browsers cannot play it.
Bytes 0 to 3 are RIFX (52 49 46 58) and bytes 8 to 11 are
WAVE.
EBU RF64 audio (RF64)
The European Broadcasting Union’s answer to the 4 GB limit, from EBU Tech 3306 (2007).
Sizes too large for 32 bits are set to 0xFFFFFFFF, and a
ds64 chunk straight after the header gives the real 64-bit sizes. A RIFF
reader that does not know this rule reads the file wrongly, so it is a separate
format.
Bytes 0 to 3 are RF64 (52 46 36 34), bytes 8 to 11 are
WAVE, and a ds64 chunk starts at offset 12.
ITU-R BW64 audio (BW64)
The ITU’s long-form file for programme exchange, from Recommendation ITU-R BS.2088
(2015). It takes RF64’s layout and size rule and adds Audio Definition Model metadata,
as XML in an axml chunk with a chna chunk tying it to the
tracks.
Bytes 0 to 3 are BW64 (42 57 36 34), bytes 8 to 11 are
WAVE, and a ds64 chunk starts at offset 12.
Versions
Every document and release that changed what a WAV file can hold, with the format it belongs to.
| Date | Document or release | What it brought | Format |
|---|---|---|---|
| August 1991 | IBM and Microsoft, Multimedia Programming Interface and Data Specifications 1.0 | RIFF and RIFX; the WAVE form with fmt , data, fact, cue , plst, LIST adtl, the wavl list with slnt, LIST INFO, JUNK and CSET; PCM | RIFF, RIFX |
| 15 April 1994 | Microsoft, New Multimedia Data Types and Data Techniques, revision 3.0 | WAVEFORMATEX with cbSize; the extended format chunk and a fact chunk required for formats other than PCM; many registered format codes | RIFF |
| 1997 | EBU Tech 3285, Broadcast Wave Format version 0 | the bext chunk | RIFF |
| June 1998 | RFC 2361 | the WAVE format codes registered as MIME codec parameters | RIFF |
| late 1990s (date not confirmed) | Microsoft, WAVE_FORMAT_EXTENSIBLE | cbSize 22: valid bits, channel mask and a SubFormat GUID | RIFF |
| 2001 | EBU Tech 3285 version 1, and supplement 3 | the UMID in bext; the levl peak envelope chunk | RIFF |
| February 2007 | EBU Tech 3306 version 1.0 | RF64 and the ds64 chunk | RF64 |
| July 2009 | EBU Tech 3306 version 1.1 | the r64m marker chunk | RF64 |
| 2011 | EBU Tech 3285 version 2 | loudness values in bext, measured as EBU R 128 sets out | RIFF |
| October 2015 | ITU-R BS.2088-0 | BW64 | BW64 |
| 2018 | EBU Tech 3285 supplements 5 and 7 | Audio Definition Model metadata in Broadcast Wave files: the axml and chna chunks | RIFF |
| June 2018 | EBU Tech 3306 version 2.0 | points to BS.2088; the EBU no longer develops RF64 | RF64 |
| October 2019 | ITU-R BS.2088-1 | a revision | BW64 |
| November 2025 | ITU-R BS.2088-2 | the current revision | BW64 |
What the two later revisions of BS.2088 change is not described on these pages.
Near relatives
These formats are close to WAV, but are not WAV files.
Sony Wave64
Sony’s Wave64 (.w64) solves the 4 GB limit differently and is a format
of its own. Every chunk ID is a 16-byte GUID and every size is 64-bit and counts the
24-byte chunk header too. The file starts with the GUID for riff, not with
RIFF, so no WAV reader takes it for a WAV file.
AIFF and AIFF-C
Apple’s equivalent of WAV, from 1988: uncompressed audio in big-endian chunks, built on Electronic Arts’ IFF rather than on RIFF.
Other RIFF forms
Many formats are RIFF files with another form type at offset 8. They share the chunk layout but nothing else:
- AVI –
RIFF…AVI, Windows video - WebP –
RIFF…WEBP, Google’s image format - RIFF MIDI –
RIFF…RMID, a Standard MIDI File wrapped in RIFF - DLS –
RIFF…DLS, downloadable sounds for MIDI synthesizers - ANI –
RIFF…ACON, animated Windows cursors
The explorer takes a file as WAV only when its form type is WAVE.
Files named .wav that are not WAV
Among the files named .wav examined for this site, about one in fifty
held something else: empty files, gzip archives, web pages, and home-made sound files
from the DOS era. One set had every byte of a WAV file with its top bit set, so the
file began D2 C9 C6 C6 instead of RIFF. Ogg Vorbis audio in a
WAV file, on the other hand, is a real WAV file: an ordinary RIFF WAVE file whose format
code says the data chunk holds an Ogg stream.
Not described
Known, not yet covered
- Viewer: codecs with a public specification and not yet fully
decoded here: AMR-WB+ (code
0x7363; the 3GPP reference C code, TS 26.273, is downloaded; named, data shown as labelled bytes), and, inside the codecs that are decoded, the parts of Dolby AC-4 (code0xAC40) and DTS that are not: AC-4’s speech spectral frontend, A-CPL mode 1, the 7.X and immersive elements, A-JOC objects, the HSF extension, DRC and dialogue enhancement; DTS Express (LBR) and DTS:X (a DTS:X stream plays as its core). Decoded now, with the oracle used: DTS core, XCh, XXCh, X96, XBR and XLL (libdcadec, sample for sample); ALAC (afconvert); iLBC, TrueSpeech, Xbox, Duck DK3 and DK4 ADPCM (FFmpeg); AMR narrowband and wideband (3GPP conformance sequences, bit for bit; see AMR). PCM of every width, float, A-law, µ-law, IMA, Microsoft and Yamaha ADPCM, G.726 (16, 24, 32 and 40 kbit/s) and G.722 equal FFmpeg sample for sample; MP3 agrees to better than −128 dB, MP2 to −85 dB; AC-3 differs from FFmpeg only by the dither, which A/52 leaves to the decoder (−97 dB on full-band noise). - Viewer: codecs the viewer can decode but whose frame layout in a WAVE
file is not published, so no format code is routed to the decoder: GSM 06.20 half rate
(
0xA10E) and GSM 06.60 enhanced full rate (0xA10F), both checked bit for bit against the ETSI test sequences, and the other wideband AMR codes (0xA104and0xA111), VoiceAge AMR (0x0136), Nokia AMR (0x4201),0x7A22and0xA110. Their data is shown as labelled bytes. - Viewer: the layout of the frames in a WAVE file with format code
0x7A21or0x7361is not published; they are read as one header byte and the speech bits after another (as FFmpeg reads them), with no use of the block size to find padding. Only one channel at 8,000 Hz is decoded. The wideband code0x7362is read the same way by analogy (one channel, 16,000 Hz): no source states its layout. - Viewer: codecs with no official specification but open source decoders (in FFmpeg, for example), such as apt-X, Windows Media Audio, Windows Media Audio Voice, Voxware MetaSound, Sipro ACELP.net, Sanyo ADPCM, Intel Music Coder, MSN Siren, QDesign and ATRAC. Named and shown as labelled bytes.
- Viewer: G.722.1 (7 kHz, 24 and 32 kbit/s) and its Annex C (14 kHz, 32,000 Hz sampling, 24, 32 and 48 kbit/s) are checked bit for bit against libg722_1, a fixed-point build of the ITU reference that is reported to pass the ITU test vectors; the ITU package itself could not be fetched (itu.int reset the connection), so the ITU vectors were not compared with directly. The WAVE codes known for G.722.1 are the 7 kHz ones, so the 14 kHz decoder is not reached from a WAVE file.
- Viewer: codes shared by two codecs in the register (0x0061, 0x0062 and 0x0069 are ESPCM and Voxware, and also Duck DK4, Duck DK3 and Xbox ADPCM): a file is decoded as the ADPCM variant only when its format chunk fits (4 bits a sample, two extra bytes giving the samples a block); otherwise it is labelled and its data shown as bytes. The ESPCM and Voxware codecs themselves are not decoded.
Unknown
- Reference and viewer: the layouts of the chunks that Pro Tools
(
ovwf,umid,minf,regn,elm1,DGDA), Soundminer (SMED) and Logic (LGWV,ResU) write, andfilr,CDifandFake: no specification was found. ExifTool’s RIFF tag table only says which program writes some of them (LGWVLogic Pro;minf,elm1,regn,umid,DGDAPro Tools) and ffmpeg and libsndfile do not describe them. They are shown as bytes and listed on the metadata chunks page. - Reference and viewer: the many registered codec codes whose makers published no specification and for which no public decoder exists; the format codes page names each one. Their data is shown as labelled bytes.
- Viewer: DRM-protected audio (code 0x0009), which is encrypted.
Links
Software
Developers
- libsndfile – library that reads and writes WAV, RIFX and RF64, and Wave64 (C)
- libbw64 – the EBU’s library for BW64 and RF64 files (C++)
Reference
- WAVE file format notes – McGill University’s notes, with the Microsoft specifications
- EBU Tech 3285 – the Broadcast Wave Format
- EBU Tech 3306 – RF64, an extended file format for audio
- Recommendation ITU-R BS.2088-2 – the BW64 long-form file format (PDF)