An XLB file is a Microsoft Excel toolbar settings file that stores customized toolbar layouts and command bar configurations. If you've ever customized your Excel toolbars and noticed those settings persist between sessions, that's the XLB file at work. These files are rarely opened directly — they are managed automatically by Excel.
Part 1. What Is an XLB File?
XLB stands for Excel Toolbar Bar — a proprietary binary format used by older versions of Microsoft Excel (Excel 97 through 2003 primarily) to save custom toolbar and command bar configurations.
| File Property | Value |
|---|---|
| Extension | .xlb |
| Full form | Excel Toolbar Bar |
| Created by | Microsoft Excel (97–2003, and some versions through 2010) |
| Location | User profile AppData folder |
| Opens with | Microsoft Excel (not a directly editable file) |
| Purpose | Stores custom toolbar and command bar settings |
In newer versions of Excel (2013+), toolbar customizations are mostly stored in the Windows registry or in .exportedUI files, but XLB files may still exist from older installations or migrations.
💡 Tip: If you're searching for an XLB file because Excel is loading slowly or losing toolbar customizations, the fix is often to delete the XLB file and let Excel recreate it — not to open and edit it manually.
Part 2. Where Are XLB Files Located?
XLB files are stored in your Windows user profile directory, typically hidden within AppData.
Default locations:
- Excel 2003 and earlier:
C:\Users\[Username]\AppData\Roaming\Microsoft\Excel\Excel.xlb - Excel 2007–2010:
C:\Users\[Username]\AppData\Roaming\Microsoft\Excel\Excel14.xlb(or Excel12.xlb) - Older Windows (XP):
C:\Documents and Settings\[Username]\Application Data\Microsoft\Excel\
To navigate to AppData:
- Press Win + R → type
%APPDATA%\Microsoft\Excel→ press Enter - File Explorer opens directly in the Excel AppData folder
- Look for any
.xlbfiles
⚠️ Important: AppData is a hidden system folder by default. If you can't see it in File Explorer, go to View → Show → Hidden items to make it visible before browsing.
🗣️ r/excel user: "Found the Excel.xlb file in AppData after Excel kept crashing on startup. Renaming it made Excel recreate a clean version and fixed the issue immediately."
Part 3. How to Open or Edit an XLB File
XLB files are not plain text — they are binary files and are not intended to be opened or edited directly by users. Attempting to open them in a text editor will show garbled binary content.
Valid ways to interact with an XLB file:
- Let Excel manage it automatically — this is the normal behavior
- Delete it to reset toolbar settings — Excel recreates a clean version on next launch
- Copy it between systems — to transfer toolbar customizations to another PC
- Rename it for backup — rename to
.xlb.oldbefore making Excel changes
If you need to view the contents for diagnostic purposes, a hex editor like HxD can display the raw binary, but there is no supported way to meaningfully edit XLB files.
💡 Tip: Before deleting an XLB file, rename it to
.xlb.bakfirst. If deleting it doesn't fix your Excel issue, you can rename it back and nothing is permanently lost.
Part 4. Fix Excel Toolbar Issues by Resetting the XLB File
If Excel is showing corrupt toolbars, crashing on startup, or displaying an error about toolbar settings, deleting (or renaming) the XLB file is a standard fix.
Steps:
- Close Microsoft Excel completely (check Task Manager to confirm no Excel processes are running)
- Navigate to
%APPDATA%\Microsoft\Excel - Find the
.xlbfile (Excel.xlb or Excel14.xlb, depending on your version) - Rename it to
Excel.xlb.old(do not delete yet) - Reopen Excel — it will create a new, clean XLB file
- Check if the issue is resolved; if yes, delete the
.oldfile
| Excel Version | XLB File Name | Location |
|---|---|---|
| Excel 97–2003 | Excel.xlb | %APPDATA%\Microsoft\Excel\ |
| Excel 2007 | Excel12.xlb | %APPDATA%\Microsoft\Excel\ |
| Excel 2010 | Excel14.xlb | %APPDATA%\Microsoft\Excel\ |
| Excel 2013+ | Not primarily XLB | Registry / .exportedUI |
🗣️ r/sysadmin user: "Deploying Excel to new machines, I copy the XLB file from the reference system to transfer toolbar setups. Saves setting up custom toolbars on 50+ workstations."
Part 5. Recover a Deleted XLB File With Ritridata
If your XLB file was accidentally deleted — removing your Excel toolbar customizations — or if you need to recover deleted Excel files from the same folder, Ritridata can scan your Windows drive and recover deleted files including XLB, XLSX, and other Office file types.
Step 1 — Select the drive/location
Step 2 — Run a safe scan
Step 3 — Preview and recover to another drive
FAQ
What program opens an XLB file? Microsoft Excel opens XLB files automatically — you don't manually open them. They are loaded by Excel at startup to restore toolbar settings. There is no direct "open" command for XLB files in Explorer.
Is an XLB file safe to delete? Yes. Deleting your XLB file only removes saved toolbar customizations. Excel will create a new, clean XLB file the next time it launches. Your spreadsheet data is not affected.
Why does Excel say my toolbar file is corrupted? A corrupted XLB file can prevent Excel from loading correctly. Rename or delete the XLB file in %APPDATA%\Microsoft\Excel and let Excel recreate it.
Can I transfer my Excel toolbars to a new PC? Yes. Copy the XLB file from the old PC's %APPDATA%\Microsoft\Excel folder to the same location on the new PC. This only works between the same Excel version.
Do newer versions of Excel still use XLB files? Excel 2013 and later versions primarily use the Windows registry and .exportedUI files for toolbar and ribbon customizations. XLB files are mainly relevant for Excel 2010 and earlier.
What is the difference between XLB and XLSB files? XLB stores toolbar settings. XLSB is an Excel Binary Workbook — a spreadsheet file in binary format, not related to toolbar settings.
Can I create an XLB file manually? No. XLB files are created and maintained automatically by Excel. Manual creation is not supported or documented.
