What is MIME type "audio/x-wav"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

The MIME type audio/x-wav denotes files that hold uncompressed waveform audio data. It carries raw PCM material for high fidelity playback and editing.

Its primary use is with audio files—commonly seen as WAV or WAVE—that play sound exactly as captured, without compression artifacts. This makes the format ideal for professional audio editing and archival storage, although the files occupy more disk space.

Some broadcast and professional applications enhance this base format. For example, versions like BWF and RF64 add extra metadata for synchronization and detailed sound information.

In the context of Digital Talking Books (DTB) introduced in 2005, audio/x-wav is also paired with supporting files. These include structure or metadata files such as XML, media components like MP4 and MP3, and navigation aids like OPF and NCX. They work together to present a cohesive narrated and interactive audio experience.

For more technical insights, you can explore details on the WAV format on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: audio/x-wav    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="audio/x-wav">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'audio/x-wav');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the difference between audio/x-wav and audio/wav?

audio/wav is the standard IANA-registered MIME type, while audio/x-wav uses the "x-" prefix indicating it was originally non-standard or experimental. Modern browsers and media players generally accept both interchangeably, but using the standard audio/wav is recommended for new implementations.

Is audio/x-wav supported in HTML5 browsers?

Yes, major browsers like Chrome, Firefox, Safari, and Edge support WAV playback via the HTML5 <audio> element. However, because audio/x-wav files are usually uncompressed and large, developers often prefer compressed formats like MP3 for web streaming to save bandwidth.

How do I configure Apache or Nginx to serve WAV files?

To serve these files correctly, map the extension to the MIME type in your config. For Apache, add AddType audio/wav .wav (or audio/x-wav) to your .htaccess. For Nginx, ensure your mime.types file includes audio/wav wav; or audio/x-wav wav;.

Why are extensions like XML, OPF, and NCX associated with this audio type?

This association comes from Digital Talking Books (DTB), where audio/x-wav audio files are packaged with structure files like .xml, .opf, and .ncx. While they function together as a book, the text files should technically be served as text/xml or application/xml, while audio/x-wav applies to the sound components.

What are BWF and RF64 formats?

BWF (Broadcast Wave Format) and RF64 are professional enhancements to the standard WAV format. BWF adds metadata for synchronization, and RF64 allows file sizes to exceed the standard 4GB limit. Both are often served with the audio/x-wav or audio/wav MIME type to maintain compatibility with audio editors.

When should I use audio/x-wav instead of MP3?

Use audio/x-wav when audio fidelity is critical, such as in archival storage, professional music production, or sound editing where compression artifacts are unacceptable. For general web delivery or consumer playback, compressed formats like .mp3 are better due to significantly smaller file sizes.

How do I fix a '404' or 'unsupported type' error for WAV files on IIS?

Microsoft IIS may not serve .wav files if the MIME type is missing from the configuration. Open the MIME Types feature in IIS Manager, add the .wav extension, and set the MIME type to audio/wav (standard) or audio/x-wav (legacy compatibility).

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.