What is MIME type "application/macbinary"?

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

application/macbinary is a MIME type that wraps Macintosh files into one binary stream. It combines both file data and Mac-specific metadata such as resource forks. This makes file transfers smoother when systems support only single-stream data.


The format was key on classic Mac OS. It allowed files to keep special attributes when sent via email or transferred over networks.



Files using this type often have extensions like BIN or MACBIN.


For more details, check the MacBinary Wikipedia page.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/macbinary    
  

HTML

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


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

Associated file extensions

FAQs

What is the primary purpose of application/macbinary?

This MIME type is used to bundle the two parts of a classic Macintosh file—the data fork and the resource fork—into a single binary stream. This ensures that Mac-specific metadata (like icons and type codes) is preserved when files are transferred across non-Mac servers or via email.

How do I open a file sent as application/macbinary?

You need file archiving software that supports the MacBinary standard. On macOS, The Unarchiver or the built-in Archive Utility can usually decode them; on Windows, tools like StuffIt Expander are required to extract the contents correctly.

How do I configure an Apache server to handle MacBinary files?

You should map the MIME type to the appropriate file extensions in your configuration. Add the line AddType application/macbinary .bin .macbin to your .htaccess file or main server config to ensure browsers download the file correctly.

Why do I see .bin files associated with this MIME type?

The .bin extension is the standard suffix for MacBinary encoded files (MacBinary I, II, or III). However, be aware that .bin is also used for generic binary data (application/octet-stream), so context is important when determining if a file is actually a Mac archive.

Is application/macbinary still commonly used?

It is largely considered a legacy format used primarily for Classic Mac OS software. Modern macOS systems generally use .dmg disk images or standard ZIP files (which now handle Mac metadata better) for file distribution, making MacBinary less necessary today.

What happens if a browser tries to display application/macbinary?

Most browsers will not attempt to display this content and will instead force a file download. Since the format is binary data intended to be decoded by specific utilities, it cannot be rendered as text or media within a web page.

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.