.XLTM

XLTM File

Microsoft Excel Macro-Enabled Workbook Template
Ask a question
QUICK ANSWER

An XLTM file is a Microsoft Excel macro-enabled workbook template - opening it creates a new unnamed .xlsm workbook with the template's formatting, formulas, and VBA macros already loaded. The original template stays untouched. Microsoft Excel is the only application that fully supports the VBA macros inside; LibreOffice Calc can open the sheet data but macro execution is limited. To get an editable workbook, open the file in Excel and save it as XLSM.

Developer: Microsoft Category: Spreadsheet Files Open standard MIME: application/vnd.ms-excel.template.macroEnabled.12
OPENS ON Windows macOS Linux Web
Related: .ODS · .NUMBERS · .XLSX · .XLSB

On this page

19k+ extensions indexed
Last reviewed Jun 28, 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 XLTM file format?

An .xltm file is a Microsoft Excel macro-enabled workbook template - the VBA-carrying counterpart of the standard .xltx template. Like all modern Office formats introduced with Office 2007, it is a ZIP archive containing XML parts organized under the Open Packaging Conventions (OPC) specification.

What sets .xltm apart from .xltx is the inclusion of vbaProject.bin, an OLE2 Compound File Binary embedded inside the ZIP. This binary stores all VBA macro source code and compiled bytecode, using the same internal structure as the legacy .xls format. Without it, Excel will not permit the macros to run.

When a user opens an .xltm file, Excel creates a new unnamed .xlsm workbook based on the template - the .xltm itself is never modified. This makes the format well-suited for distributing pre-built spreadsheets with built-in automation: invoice generators, report builders, or data-entry forms with button-driven macros.

The file is identified by the ZIP magic bytes PK (hex 50 4B) at offset zero, identical to .xlsx, .xlsm, and .docx. The actual content type is determined from [Content_Types].xml inside the archive, which declares spreadsheetml.template.macroenabled and confirms the presence of vbaProject.bin.

Each worksheet supports up to 1,048,576 rows and 16,384 columns. When password-protected, encryption uses AES-128 or AES-256 (OOXML Agile Encryption). LibreOffice Calc can open .xltm files, but VBA macro execution is limited; Microsoft Excel is required for full fidelity.

Security & safety

RISK: HIGH

XLTM files contain VBA macros and carry the same risk as XLSM. A malicious XLTM can run arbitrary code on the host PC when macros are enabled. Excel's Protected View and macro-security Trust Center warnings apply - leave them enabled. Never enable macros in an XLTM received unexpectedly by email. If you only need the data, open in Google Sheets or LibreOffice Calc, which do not execute Excel VBA. Microsoft 365 blocks macros from internet-sourced files by default since 2022 (requires explicit unblocking).

Format details

in a nutshell
FULL NAMEMicrosoft Excel Macro-Enabled Workbook Templateaka Excel macro template, OOXML macro-enabled template
DEVELOPERMicrosoftsince 2007 (Microsoft Office 2007, Excel 12.0); ECMA-376 (2006) / ISO/IEC 29500 (2008)
MIME TYPEapplication/vnd.ms-excel.template.macroEnabled.12
TYPEZIP-based Office Open XML (OOXML / OPC) macro-enabled template package (binary+XML)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
504B0304
ASCII
PK··
Identical ZIP header to XLSX/XLTX/DOCX/PPTX. Distinguish by [Content_Types].xml which declares ContentType "spreadsheetml.template.macroenabled" and presence of vbaProject.bin.

Programs that open XLTM files

Windows3 apps
Microsoft Excel Paid Double-click creates a new .xlsm workbook from the template with macros enabled (after Trust Center confirmation). To edit the template itself: File > Open, select the .xltm.
LibreOffice Calc Open-source File > Open loads the XLTM; sheet data and formatting import well. VBA macros are limited - LibreOffice Basic may partially run simple macros but complex Excel VBA often fails.
WPS Office Spreadsheets Freemium Opens XLTM with reasonable Excel compatibility; some VBA macros supported. Free for personal use.
macOS2 apps
Microsoft Excel Paid Native support; double-click spawns a new .xlsm workbook. Use File > Open to edit the template.
LibreOffice Calc Open-source Opens XLTM; sheet data accessible but VBA macro execution is limited.
Linux1 app
LibreOffice Calc Open-source Best option on Linux; opens XLTM for data access though VBA macro support is partial.
Web2 apps
Google Sheets Free Upload to Google Drive and open with Sheets; imports sheet data but VBA macros are not executed.
Excel for the web Free Upload to OneDrive and open in Excel Online; macro execution not supported in the web version.

Technical details

deep spec
Container formatZIP archive (OPC - Open Packaging Conventions)
MIME typeapplication/vnd.ms-excel.template.macroEnabled.12
Magic bytes50 4B 03 04 (ZIP local file header; identical to .xlsx, .xlsm, .docx)
Type identification[Content_Types].xml inside the ZIP declares spreadsheetml.template.macroenabled; presence of vbaProject.bin confirms macros
VBA storagevbaProject.bin - OLE2 Compound File Binary embedded as a ZIP entry
XML encodingUTF-8 for all XML parts; vbaProject.bin is binary OLE2
CompressionDEFLATE (per-entry ZIP compression)
Worksheet capacity1,048,576 rows × 16,384 columns per sheet
Standard conformanceECMA-376 / ISO/IEC 29500 Transitional (Strict conformance not used for macro-enabled files)
EncryptionAES-128 or AES-256 via OOXML Agile Encryption when password-protected; none otherwise
Template behaviorOpening creates a new unnamed .xlsm workbook; the .xltm file itself is never modified
Typical file size20 KB - 20 MB (varies with embedded VBA code, styles, charts, and images)
Released2007 (Microsoft Office 2007, Excel 12.0); ECMA-376 (2006) / ISO/IEC 29500 (2008)
Latest versionECMA-376 5th edition (2021) / ISO/IEC 29500:2016
Open standardYes · royalty-free
Specificationecma-international.org

XLTM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with XLTM 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 XLTM files.

Frequently asked questions

Why does opening an XLTM create a new file instead of opening the template?
XLTM is a template: opening it spawns a new unnamed .xlsm workbook based on it - the template is never modified. To edit the template itself use File > Open inside Excel and select the .xltm.
How do I convert XLTM to XLSM?
Open the XLTM in Excel (it creates a new workbook), then File > Save As > Excel Macro-Enabled Workbook (*.xlsm). That gives you a standalone workbook with all the macros.
Can I open XLTM without Excel?
LibreOffice Calc and Google Sheets can open the sheet data. VBA macros will not run in those apps - if you need macros you need Excel or WPS Office.
What is the difference between XLTM and XLTX?
XLTM contains VBA macros (macro-enabled, higher security risk); XLTX is the macro-free template. Both create a new workbook on opening. Prefer XLTX if macros are not needed.
What is the difference between XLTM and XLSM?
XLTM is a template - opening it creates a new workbook. XLSM is a regular macro-enabled workbook that opens directly for editing.
Is an XLTM file safe to open?
The file itself is safe to open; macros are blocked until you explicitly enable them. Never enable macros in an XLTM from an unknown sender. The macro content is what determines safety.

References

1ECMA-376 Office Open XML File Formats (5th edition)ecma-international.org
2Library of Congress - OOXML Format Familywww.loc.gov

Keep exploring

across the database

Top extensions this week

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

Related extensions

.ODSOpenDocument Spreadsheet
.NUMBERSApple Numbers spreadsheet
.XLSXMicrosoft Excel Open XML Workbook
.XLSBMicrosoft Excel Binary Workbook
.GSHEETGoogle Sheets Shortcut (Link to a Google Sheets spreadsheet)
.XLSMMicrosoft Excel Macro-Enabled Workbook (Open XML)

Free file tools

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

Open the toolbox

Browse file extensions A-Z