Which MIME types are related to file extension ".hqx"?
The .hqx file extension is associated with 3 MIME types:
application/binhex, application/mac-binhex, application/mac-binhex40.
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
About .hqx Files
HQX files are encoded files that use the BinHex format to convert Macintosh binary data into plain text for safe transmission.
They encapsulate both the data fork and the resource fork into a single text file.
The registered MIME types include application/binhex, application/mac-binhex, and application/mac-binhex40.
- Purpose: Transmit Mac files via email or over networks without corruption.
- Functionality: Converts binary data and preserves file metadata.
- Usage: Primarily used on Macintosh systems and supported by legacy utilities.
Based on information from FilExt.com, this format ensures compatibility and file integrity when transferring Mac files on non-Mac platforms.
Relationship between file extension and MIME type
A file extension is a suffix at the end of a filename that indicates what type of file it is. File extensions help both users and operating systems identify what application should be used to open the file.
File extensions are typically separated from the filename by a period (dot) and consist of 2-4 characters, though they can be longer. For example, in the filename "document.pdf", ".pdf" is the file extension.
File extensions are closely related to MIME types, as they both serve to identify the format of a file. However, while MIME types are used primarily by web browsers and servers, file extensions are used by operating systems and applications.
Associated MIME types
application/binhex, application/mac-binhex, application/mac-binhex40
FAQs
What is an HQX file?
An HQX file is a Macintosh file encoded in the BinHex format to convert binary data into 7-bit ASCII text. This format was historically used to ensure that Mac files, specifically their resource and data forks, could be safely transmitted via email or the internet without corruption.
How do I open an HQX file on a Mac?
Modern macOS versions do not natively decode these legacy files, but you can use free third-party utilities like The Unarchiver or StuffIt Expander. Once installed, simply double-click the .hqx file, and the utility will extract the original file contained within.
Can I open HQX files on Windows?
Yes, Windows users can decode .hqx files using compression tools like Corel WinZip or Aladdin StuffIt Expander for Windows. While the container can be opened, the file inside might be a Mac-specific format (like an old application) that cannot run on Windows.
Why does the file look like random text when opened in Notepad?
Because BinHex encodes binary data into text characters, opening it in a text editor reveals the raw encoded string, usually starting with the line (This file must be converted with BinHex 4.0). You need a decoding utility, not a text editor, to restore the file to its usable state.
How do I convert an HQX file to a standard format?
You do not technically convert the .hqx file itself; instead, you decode it to extract the original file inside (e.g., a .jpg, .doc, or .sit archive). Use a tool like The Unarchiver, and once the inner file is extracted, you can use or convert that file normally.
What MIME type should be used for serving HQX files?
The most specific MIME type for BinHex 4.0 files is application/mac-binhex40. However, servers may also use application/binhex or application/mac-binhex. Correct configuration ensures browsers recognize the file type for download (see mime-type.com for more details).
Are HQX files safe to open?
The .hqx container itself is harmless text, but the file inside could potentially contain malware or viruses. Always scan the decoded output with antivirus software, especially if the file originated from an unknown email source.
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 can one extension have multiple MIME types?
Different programs and historical usage may assign various MIME identifiers to the same file format. Listing them together helps maintain compatibility across tools.