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

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

audio/x-aiff is the MIME type for files in the Audio Interchange File Format. It marks digital audio files that usually store uncompressed sound data. This format is prized for its high quality and fidelity.

The main use is to keep audio in a lossless state. It is common in professional audio recording and editing. The format makes it easy to exchange sound files between different systems and software. It also finds use in archiving pristine sound data.

Files using this MIME type include formats like AIFF, AIF, AIFC, AFF, and IEF. For more detailed information, visit Audio Interchange File 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-aiff    
  

HTML

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


    <a href="file.dat" type="audio/x-aiff">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-aiff');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

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

The type audio/aiff is the standard, IANA-registered MIME type, while audio/x-aiff is a non-standard or legacy version. The x- prefix indicates an experimental or extension type often used before standards are finalized. While modern applications prefer the standard version, many older servers and software still rely on audio/x-aiff.

Which file extensions are associated with audio/x-aiff?

This MIME type is primarily used for .aiff and .aif files. It also covers the compressed variant .aifc and less common extensions like .aff or .ief. You can learn more about the specific extension at aiff.

Do web browsers support playing AIFF files natively?

Most modern browsers (like Chrome, Firefox, and Edge) do not support native playback of AIFF files in the HTML5 <audio> tag, preferring formats like audio/mpeg (MP3). Safari is a notable exception due to the format's Apple origins, but generally, browsers will download these files rather than play them.

How do I configure Apache to serve AIFF files correctly?

To ensure your Apache server sends the correct headers, add the MIME type definition to your .htaccess file or main configuration. Use the line: AddType audio/x-aiff .aiff .aif .aifc. This tells the server to associate these extensions with the audio/x-aiff content type.

How do I add audio/x-aiff support to Nginx?

Edit your mime.types file, typically located in /etc/nginx/. Add or ensure the line audio/x-aiff aiff aif aifc; exists inside the types { } block. After saving the file, reload Nginx to apply the changes.

Why does my browser download the AIFF file instead of playing it?

This usually happens because the browser lacks the necessary codecs to decode uncompressed PCM audio within the AIFF container. Since the file cannot be rendered inline, the browser defaults to downloading it so the user can open it in a dedicated media player like QuickTime or VLC.

When should I use audio/x-aiff over MP3 or AAC?

Use audio/x-aiff when you need pristine, lossless audio quality, such as for professional music production, archiving, or burning to CDs. Avoid using it for general web streaming because the uncompressed file sizes are significantly larger than compressed alternatives.

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.