Which MIME types are related to file extension ".lzh"?
The .lzh file extension is associated with 2 MIME types:
application/octet-stream, application/x-lzh-compressed.
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
About .lzh Files
LZH files are compressed archive files that use the LHA method.
They combine data compression with file bundling.
MIME Types: They use application/x-lzh-compressed to show the file is compressed with LHA, and sometimes application/octet-stream when the type is not explicitly identified.
- Purpose: They archive one or more files while reducing file size.
- Usage: They were popular in the past, especially in Japanese systems, for software distribution and backups.
- Software: Programs like 7-Zip, WinRAR, and command-line LHA tools can open or extract these files.
- Technical Note: The MIME type application/octet-stream is a generic binary type, while application/x-lzh-compressed specifies the LHA compression.
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/octet-stream, application/x-lzh-compressed
FAQs
How do I open an LZH file on Windows?
Windows does not natively support LZH files, so you need third-party file archiver software. Popular free tools like 7-Zip, PeaZip, or the shareware WinRAR can handle this legacy format. Once installed, right-click the .lzh file and select the option to extract the files.
What programs can open LZH files on macOS?
Mac users can open these archives using utilities like The Unarchiver or Keka. These applications are designed to handle various older compression formats, including LHA/LZH, which the native macOS Archive Utility might not support.
What is the LZH file format used for?
LZH is a compressed archive format using the LHA algorithm, historically popular in Japan and on Amiga computers for software distribution. While it functions similarly to a ZIP file by bundling and compressing data, it is now considered a legacy format.
How can I convert an LZH file to ZIP?
To convert the file, you generally need to extract the contents first using a tool like 7-Zip and then re-compress the extracted files into a new ZIP archive. Some archivers, such as PeaZip, offer a built-in "Convert" feature to automate this process.
What is the correct MIME type for LZH files?
The specific MIME type for these archives is application/x-lzh-compressed. However, because it is an older binary format, web servers often serve it as application/octet-stream. You can look up more configuration details on mime-type.com.
Are LZH files safe to open?
Like any archive format, an LZH file is just a container; safety depends on the files inside. Since LZH is often found in older software archives, always scan the file with antivirus software before extracting contents to ensure it does not contain legacy malware.
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.