What is MIME type "audio/aiff"?

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

The MIME type audio/aiff signals files in the Audio Interchange File Format. It stores uncompressed sound and preserves audio quality. This is key for work that demands high fidelity.

Files using this MIME type include those with extensions AIFF, AIF, AIFC, AFF, and IEF.

This format is used mainly in audio editing and production. It also sees use in several areas:

Many editing programs and playback tools support audio/aiff. Its uncompressed nature means larger file sizes but top-notch sound. For more details, see the Wikipedia page.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: audio/aiff    
  

HTML

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


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

Associated file extensions

FAQs

Which web browsers support audio/aiff playback?

Browser support for audio/aiff is limited compared to formats like MP3 or AAC. Safari typically supports it natively due to Apple's development of the format, but Chrome, Firefox, and Edge often fail to play these files in the HTML5 <audio> tag. For broad web compatibility, it is recommended to convert these files to MP3 or WAV.

How do I configure Apache to serve AIFF files correctly?

You can ensure Apache serves the correct MIME type by adding a directive to your .htaccess file or main configuration. Add the line AddType audio/aiff .aiff .aif .aifc to map the extensions. This ensures browsers recognize the file as audio rather than a generic binary download.

What is the difference between audio/aiff and audio/wav?

Both formats usually store uncompressed PCM audio, offering identical high fidelity, but they use different container structures. AIFF was developed by Apple and follows Big-Endian byte order, while WAV (RIFF) was developed by Microsoft/IBM and uses Little-Endian. While audio/aiff is historically Mac-centric, most modern professional audio software handles both interchangeably.

Why does my Nginx server force AIFF files to download instead of play?

This often happens if the MIME type is missing from the mime.types file or if the default_type is set to application/octet-stream. To fix this, ensure your Nginx configuration includes audio/aiff aiff aif aifc; inside the types { ... } block, or verify that the Content-Disposition header is not set to attachment.

Is audio/aiff a good choice for streaming on a website?

Generally, no. Because audio/aiff files are uncompressed, they have very large file sizes, leading to high bandwidth usage and slow buffering for users. For web streaming, compressed formats like MP3 or AAC are superior choices as they significantly reduce file size with minimal perceptual quality loss.

What common file extensions are associated with this MIME type?

The primary extensions are .aiff and .aif. However, the MIME type also covers compressed variations and related formats. Common mappings include .aiff, .aif, .aifc, and occasionally .aff or .ief depending on the specific application environment.

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.