audio/wav audio/wav means: audio/wav is the media type for Waveform Audio files, a Microsoft/IBM container that usually holds uncompressed PCM audio. WAV preserves full fidelity and is simple to parse, making it common in editing, sound design and as a source format before lossy compression. Audio media types describe sound containers and codecs. The subtype tells the player which demuxer and decoder to load, and browsers use it in Accept headers and canPlayType() checks to negotiate a format they actually support. Choosing a widely supported audio type avoids silent playback failures on devices that lack a proprietary codec. You will encounter audio/wav in contexts such as uncompressed audio editing and mastering; sound effects and short samples in applications; source audio before exporting to mp3/aac. It is commonly associated with the file extension(s) .wav. WAV files are large because PCM is uncompressed — roughly 10 MB per minute of CD-quality stereo. Use WAV for editing and archival, but deliver compressed formats (MP3, AAC, Opus) over the web to save bandwidth. audio/x-wav and audio/wave are aliases.
When you'll see audio/wav
- Uncompressed audio editing and mastering
- Sound effects and short samples in applications
- Source audio before exporting to MP3/AAC
How to handle it
When delivering audio, declare the precise container type, support byte-range requests so players can seek, and offer at least one broadly supported fallback. Test playback with canPlayType() across target browsers rather than assuming a codec is present. For streaming, set the correct type on each segment and keep timestamps consistent so the player can buffer and seek without glitches. As a final checklist for audio types: support byte-range requests for seeking, offer a universally supported fallback, normalize loudness for consistent playback, test canPlayType across target browsers, and keep segment timestamps aligned when streaming so buffers do not stall.
Notes & gotchas
WAV files are large because PCM is uncompressed — roughly 10 MB per minute of CD-quality stereo. Use WAV for editing and archival, but deliver compressed formats (MP3, AAC, Opus) over the web to save bandwidth. audio/x-wav and audio/wave are aliases.
Examples
HTTP/1.1 200 OK
Content-Type: audio/wav
Accept-Ranges: bytes
Content-Disposition: inline; filename="sample.wav"
[binary audio payload: the encoded bytes of a sample .wav] curl -i -H "Accept: audio/wav" https://api.example.com/v1/resource # inspect the returned Content-Type const res = await fetch("/media/sample.wav", { headers: { Accept: "audio/wav" } });
const blob = await res.blob(); // blob.type should be "audio/wav"
const url = URL.createObjectURL(blob); // assign to img.src / audio.src / video.src
// revoke with URL.revokeObjectURL(url) when done to free memory import requests
res = requests.get("https://api.example.com/v1/resource",
headers={"Accept": "audio/wav"}, timeout=30)
res.raise_for_status()
assert res.headers["Content-Type"].startswith("audio/wav")
with open("sample.wav", "wb") as fh:
fh.write(res.content) # raw bytes; use stream=True for large files Frequently asked questions
Why are WAV files so big?
They typically store uncompressed PCM samples, so size scales directly with duration, sample rate and channels. Compress to MP3/AAC/Opus for distribution and keep WAV as the lossless source.
Is audio/wav the same as audio/x-wav?
They are aliases for the same Waveform format. audio/wav is the common registered form; audio/x-wav and audio/wave appear in legacy systems.
Why does my audio file fail to play in some browsers?
Codec support varies. Check HTMLMediaElement.canPlayType() with the exact MIME type, and provide a fallback source. A container the browser recognizes but a codec it lacks will still fail silently.
Are audio MIME types the same as file extensions?
They map closely but are not identical: .mp3 maps to audio/mpeg, .m4a to audio/mp4, .ogg to audio/ogg. The container and codec both matter, so trust the declared type over the extension when they conflict.
How do I let users seek within an audio file?
Serve it with Accept-Ranges: bytes and support HTTP range requests so the player can fetch arbitrary offsets. Without range support the player must download the whole file before seeking works.
Try the Base64 Encoder
Encode and decode Base64 with UTF-8 and URL-safe options.