devkult_
tools29converters34
home/mime/.wav

.wav MIME type

WAV audioaudio

audio/wav

Uncompressed PCM audio. Large files; the type is written several ways.

MIME typeaudio/wav
Extensions.wav
Also seen asaudio/x-wav, audio/wave, audio/vnd.wave
Content-Typeaudio/wav
Compress in transit?Yes — enable gzip or Brotli
File signature52 49 46 46 xx xx xx xx 57 41 56 45 (RIFF....WAVE)

Good to know

  • audio/wav is what browsers and most servers use, though the IANA registration is audio/vnd.wave; accept all of them on upload.
  • Convert to MP3, AAC or Opus for streaming — WAV is roughly 10 MB per stereo minute.

Serve .wav files with the right type

The response header to send:

Content-Type: audio/wav

Most servers pick the type from the file extension. If yours sends the wrong one, map it explicitly:

nginx (inside the types block in mime.types)
audio/wav wav;
Apache (.htaccess or server config)
AddType audio/wav .wav
Express
res.set("Content-Type", "audio/wav");
Python
import mimetypes

mimetypes.add_type("audio/wav", ".wav")
HTML file input
<input type="file" accept=".wav,audio/wav">

Check it

See what a server sends for a file, and what type a local file really is by its contents:

curl -sI https://example.com/file.wav | grep -i '^content-type:'
file --mime-type file.wav

Frequently asked questions

What is the MIME type for .wav files?

audio/wav. You may also see audio/x-wav, audio/wave, audio/vnd.wave, but audio/wav is the one to send.

What Content-Type header should a .wav file be served with?

Content-Type: audio/wav. It compresses well, so let the server apply gzip or Brotli.

How can I tell if a file is really a .wav?

Check its bytes rather than the extension: WAV files start with 52 49 46 46 xx xx xx xx 57 41 56 45 (RIFF....WAVE). On the command line, file --mime-type name.wav does this for you.

Related types

Headers that go with it: Content-Type · Content-Disposition · X-Content-Type-Options