.XLAM

XLAM File

Microsoft Excel Macro-Enabled Add-In
Ask a question
QUICK ANSWER

An XLAM file is a Microsoft Excel add-in that packages VBA macros and custom functions to extend Excel with new tools or ribbon buttons. You do not open it like a spreadsheet - install it via File > Options > Add-ins > Manage: Excel Add-ins > Go > Browse. Because it always contains executable code that runs automatically on load, only install XLAM files from sources you trust.

Developer: Microsoft Category: Plugin Files Open standard MIME: application/vnd.ms-excel.addin.macroEnabled.12
OPENS ON Windows macOS
Related: .XPI · .XLA · .CRX · .BUNDLE

On this page

19k+ extensions indexed
Last reviewed Jul 20, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the XLAM file format?

.xlam files store add-ins for Microsoft Excel, providing new features and functionality through VBA macros exposed as custom functions, ribbon commands, or automation routines. The .xlam format complies with the Office Open XML standard - .xlsx and .xlsm files also use this standard. Packaged as a ZIP archive of XML parts alongside a binary xl/vbaProject.bin stream, .xlam is the direct Open XML successor to the older binary .xla add-in. Support was introduced with Excel 2007 as part of the ECMA-376 / ISO/IEC 29500 OOXML specification, and the format remains fully current in Microsoft 365.

Excel add-ins

Excel add-ins can be divided into groups based on their file format and the type of functionality they offer. Unlike a plain .xlsx workbook, an .xlam file must contain macros - carrying VBA code is its defining purpose. Excel loads .xlam files in the background as hidden workbooks; the macros and custom functions they expose are available to any open workbook regardless of that workbook's own file format. The predecessor .xla format served the same role in binary form before the Open XML era.

Security & safety

RISK: HIGH

An XLAM always contains executable VBA, and Excel runs an enabled add-in's code automatically every time it starts - there is no per-open "enable macros" prompt once you've trusted it. That makes a malicious XLAM more dangerous than a one-off XLSM. Rules: only install add-ins from authors you trust, prefer digitally signed ones, and inspect an unknown XLAM first (rename to .zip and look at vbaProject.bin / customUI). Keep them in Excel's Trusted Locations rather than lowering macro security globally. Treat an unexpected .xlam attachment the same as any executable.

Format details

in a nutshell
FULL NAMEMicrosoft Excel Macro-Enabled Add-Inaka Excel Open XML Add-in, Excel 2007+ add-in
DEVELOPERMicrosoftsince 2007 (Excel 2007); part of ECMA-376 / ISO-IEC 29500 OOXML
CATEGORYPlugin Files
MIME TYPEapplication/vnd.ms-excel.addin.macroEnabled.12
TYPEZIP-based Office Open XML (OOXML / OPC) add-in package, VBA-enabled
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
Identical first bytes to any ZIP and to XLSX/XLSM/DOCX. Distinguish by [Content_Types].xml (the add-in main+xml content type) plus xl/ folder and an embedded xl/vbaProject.bin.

Programs that open XLAM files

Windows3 apps
Microsoft Excel Paid File > Options > Add-ins > Manage: Excel Add-ins > Go > Browse, select the .xlam, tick it to load. It runs hidden in the background.
7-Zip Open-source Right-click > Open archive to inspect the XLAM's parts (it's a ZIP) - useful to check the contents before trusting it.
Microsoft Office (Excel component) Paid Same as above - the Excel app inside Office is what loads add-ins; 'Office' alone is the suite, not the opener.
macOS1 app
Microsoft Excel Paid Tools > Excel Add-ins (or File > Open then enable); Excel for Mac runs XLAM with VBA.

Technical details

deep spec
Container formatZIP archive (Open Packaging Conventions / OPC); same structural envelope as .xlsx and .xlsm, distinguished by its declared content type inside the package
File signature (magic bytes)50 4B 03 04 ("PK") at offset 0 - identical to any ZIP; distinguished internally by [Content_Types].xml declaring the add-in content type and the presence of xl/vbaProject.bin
MIME typeapplication/vnd.ms-excel.addin.macroEnabled.12
Internal content typeapplication/vnd.ms-excel.addin.macroEnabled.main+xml, declared in [Content_Types].xml inside the OPC package
VBA binary streamxl/vbaProject.bin - an OLE2 compound document embedded inside the ZIP that holds all VBA module source code and compiled p-code
XML encodingUTF-8 for all XML parts; binary for xl/vbaProject.bin and any embedded images or OLE objects
CompressionDEFLATE per ZIP entry; XML parts are compressed, binary streams (vbaProject.bin) may be stored uncompressed
EncryptionOptional ECMA-376 Agile Encryption (AES-256) for the whole package when saved with a password; VBA project can also be separately password-protected using a legacy RC4-based lock
Code signingSupports Office digital signatures for the VBA project and/or the OPC package, enabling macro trust without fully disabling Excel security prompts
Typical file size20 KB to several MB depending on the volume of VBA code and any embedded resources such as images or XML schemas
Load behaviorLoaded by Excel in the background as a hidden workbook; its functions and macros are globally available to all open workbooks without appearing in the workbook window list
Internal version designatormacroEnabled.12 - the "12" refers to Office 2007 (internal build Office 12); the OPC package structure has not changed major version since introduction
Predecessor format.xla - binary OLE2-based Excel add-in used before Excel 2007; .xlam replaces it with an Open XML container while retaining VBA as the macro language
Platform supportWindows (full VBA and add-in management support) and macOS (Excel for Mac runs .xlam with VBA, though some Windows-specific API calls may not be available)
Released2007 (Excel 2007); part of ECMA-376 / ISO-IEC 29500 OOXML
Latest versionSame OPC/OOXML package format since Excel 2007; current in Microsoft 365
Open standardYes · royalty-free
Specificationlearn.microsoft.com

XLAM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with XLAM files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about XLAM files.

Frequently asked questions

How do I install an XLAM add-in in Excel?
File > Options > Add-ins > at the bottom set 'Manage: Excel Add-ins' > Go > Browse, pick the .xlam and tick it. Its functions and ribbon buttons then load every time Excel starts. (On Mac: Tools > Excel Add-ins.)
What's the difference between XLAM and XLSM?
Both store VBA macros. XLSM is a normal workbook you open and edit; XLAM is marked as an add-in, so Excel loads it hidden in the background to provide tools and functions across all workbooks.
What is the difference between XLAM and the old XLA?
XLA is the pre-2007 binary add-in; XLAM is the same idea in the modern ZIP-based Open XML format. Excel can save either, but XLAM is the current standard.
Is it safe to open an XLAM file?
Only if you trust the source. XLAM always contains macros that run automatically when the add-in loads. Install signed add-ins from known authors, and inspect unknown ones (rename to .zip) before enabling.
Why did my add-in's button disappear from the ribbon?
The add-in was unchecked or moved. Re-add it via File > Options > Add-ins > Manage: Excel Add-ins > Go, and make sure the .xlam file is still in its original location (Excel references it by path).
Can LibreOffice or Google Sheets use an XLAM?
No. XLAM contains Excel VBA, which LibreOffice (Basic) and Google Sheets (Apps Script) don't run. XLAM add-ins work only in Microsoft Excel.

References

1Microsoft - Office Open XML / [MS-XLSX] overviewlearn.microsoft.com
2Microsoft - Add or remove add-ins in Excelsupport.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.RPMSGRestricted Permission Message
5.BINCD/DVD Disc Image (BIN/CUE)
6.NOMEDIAAndroid No-Media Marker File
7.PARTPartial Download File
8.DBSQLite Database File
9.EXEWindows Executable (Portable Executable)
10.AVIFAV1 Image File Format (AVIF)

Related extensions

.XPICross-Platform Installer (Mozilla add-on package)
.XLAMicrosoft Excel 97-2003 Add-In
.CRXChrome Extension Package
.BUNDLEmacOS Application Plug-in Bundle
.ZXPAdobe Extension / ZXP Package
.SPDSPSS Custom Dialog Package

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z