AudioverifiedReviewed 2026-11-14

WAV

Waveform Audio File Format · audio/wav · .wav

Overview

A RIFF/WAVE file describes its audio encoding in the format chunk. Integer PCM stores samples without compression. Other WAVE files use codecs such as ADPCM, so check the encoding accepted by the destination editor before sending an export.

Check the duration of a PCM export from its data chunk

Suppose an editor exports 48,000 Hz stereo audio as 16-bit integer PCM. One frame holds one sample from each channel, so it occupies 2 × 2 = 4 bytes. A data chunk carrying 96,000 bytes holds 24,000 frames. Dividing by 48,000 frames per second gives half a second of audio.

Read the sample rate, channel count and encoding from the fmt chunk. Use the audio payload size in the data chunk for the calculation. A minimal example with a 44-byte header totals 96,044 bytes; a file with an extra metadata chunk can be larger and still contain exactly the same half-second recording. Walk the chunks instead of assuming that audio always starts at byte 44.

This calculation assumes uncompressed PCM. For ADPCM or another compressed encoding, use a decoder that supports the format and check the decoded duration. Microsoft WAVEFORMATEX fields · Microsoft RIFF chunk layout

Typical use cases

  • Audio mastering
  • Speech samples
  • DAW exports
  • Short broadcast clips

Advantages

  • Designed for audio mastering
  • Lossy or lossless storage
  • Open specification
  • Browser support: Depends on the audio encoding and player

Disadvantages

  • PCM payload grows with sample rate, channel count, and sample width
  • Decoder support varies by encoding
  • Less practical for music libraries

How to open or use it

Open WAV files with an application that supports audio/wav. Sample editing after decoding. For delivery, use a viewer or converter that reads wav.