Which MIME types are related to file extension ".xlm"?
The .xlm file extension is associated with 2 MIME types:
application/msexcel, application/vnd.ms-excel.
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
About .xlm Files
XLM files are legacy Microsoft Excel spreadsheets with built‐in macro support. They run early Excel 4.0 macros and store both data and formulas.
They use the MIME types application/msexcel and application/vnd.ms-excel to identify their format. These types signal that the file is meant for Microsoft Excel or compatible apps.
- Macro Automation: They can execute scripted actions.
- Spreadsheet Data: They handle numeric and text data along with formulas.
- Legacy Format: They provide backward compatibility in office tasks.
Based on information from FilExt.com, XLM files remain useful for maintaining older spreadsheet macros and documents.
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/msexcel, application/vnd.ms-excel
FAQs
How do I open an XLM file?
The most reliable way to open an XLM file is using Microsoft Excel, as it natively supports the legacy Excel 4.0 macros contained within. While open-source alternatives like LibreOffice Calc can often view the spreadsheet data, they may not be able to execute the specialized macro scripts correctly.
Are XLM files safe to open?
You should be very careful with XLM files, as they use an older macro technology that is frequently exploited by malware distributors. Microsoft often blocks these macros by default for security; only enable editing or macros if you are certain the file comes from a trusted source.
How can I convert an XLM file to a modern Excel format?
To modernize the file, open it in Microsoft Excel and go to File > Save As. Choose Excel Macro-Enabled Workbook (.xlsm) to preserve the macro functionality, or select Excel Workbook (.xlsx) if you only need the data and want to strip out the potentially dangerous macros.
What is the difference between XLM and XLSM?
The .xlm extension denotes the legacy Excel 4.0 macro format, while .xlsm represents the modern XML-based format utilizing VBA (Visual Basic for Applications). Although both handle automation, .xlsm is the current standard, whereas .xlm is kept primarily for backward compatibility.
Why are macros disabled when I open my XLM file?
Modern versions of Office disable Excel 4.0 macros by default via the Trust Center because they pose a significant security risk. If you absolutely need to run the legacy script, you must manually adjust your security settings to allow Excel 4.0 macros.
What is the MIME type for XLM files?
XLM files are typically served with the standard Excel MIME type application/vnd.ms-excel or the older alias application/msexcel. For more specific configuration details regarding Excel file types, you can check mime-type.com.
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.