What is MIME type "application/x-stuffit"?

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

The MIME type application/x-stuffit is assigned to archives created by the StuffIt compression tool. It packages many files into one and reduces their overall size.
Files using this format usually carry the SIT extension.

The format is now less common compared to archives like application/zip. However, it remains relevant for accessing legacy files.
For more details on StuffIt, visit StuffIt on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: application/x-stuffit    
  

HTML

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


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

Associated file extensions

FAQs

How do I open a file with the application/x-stuffit MIME type?

Files with this MIME type, typically ending in .sit, require specific decompression software. On macOS, free tools like The Unarchiver or the official StuffIt Expander are standard. Windows users can also use StuffIt Expander for Windows or sometimes universal archivers to extract the contents.

How do I configure Apache to serve .sit files correctly?

To ensure browsers prompt a download rather than displaying garbage text, add the MIME type to your configuration. Add the line AddType application/x-stuffit .sit to your .htaccess file or main server configuration.

Why is application/x-stuffit used instead of ZIP?

Historically, StuffIt was preferred on Macintosh systems because it preserved specific metadata called "resource forks" that standard ZIP tools often discarded. While application/zip is now the universal standard, application/x-stuffit is still essential for accessing legacy Mac archives.

What is the Nginx configuration for StuffIt archives?

For Nginx, you should ensure the mime.types file includes the definition, or add it inside a types block in your server config. Use the syntax: types { application/x-stuffit sit; } to map the extension correctly.

Is application/x-stuffit the same as application/x-stuffitx?

No, they represent different generations of the compression algorithm. application/x-stuffit generally refers to the classic .sit format, while the newer, higher-compression format uses the .sitx extension. Most modern StuffIt expanders can handle both MIME types.

Why does my browser display code instead of downloading the file?

If a browser displays a stream of random characters, the web server likely sent the file with a text/plain header instead of application/x-stuffit. The server administrator must update the MIME type configuration to identify the file as a binary archive.

Can I convert application/x-stuffit files to ZIP?

Yes, but you usually cannot convert them directly without extracting them first. You must expand the application/x-stuffit archive using a compatible tool, and then re-compress the resulting folder using a standard ZIP utility.

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.