A BAK file, typically with a “.bak” extension, is a backup file that different software applications can create. The backup file stores a copy of a file or data in case the original is lost or corrupted.
One cannot open BAK files directly. To use a BAK file, you typically need to restore it using the software that created it. Sometimes, if you don’t have access to the software that made the BAK file, you can try opening it in Excel.
Please note that the ability to open a BAK file in Excel depends on several factors, including the application used to create the backup, the original data format, and the compatibility of the BAK file with Excel.
This tutorial explains four methods to open a BAK file in Excel.
Note: I recommend you back up the original BAK files before opening them in Excel to avoid data loss if the attempt fails.
Method #1: Open the BAK File Directly in Excel
Excel has native support for BAK files. Therefore, you can open BAK files directly in Excel.
You can use the following steps:
- Open a blank Excel file and click “File” to open the Backstage window.
- To access the BAK file, click “Open,” on the left sidebar and select “Browse” from the right pane.
- Move to the folder where the BAK file is located. Open the file type drop-down at the bottom of the “Open” feature and choose “Backup Files (*.xlk, *.bak).” The BAK file will appear in the list area of the “Open” feature.
- Select the BAK file and click “Open.”
- Click “Yes” on the warning message box.
Note: The warning message only appears if Excel detects a discrepancy between the file extension and the actual file format or content. However, if the BAK file was created in a text editor like Notepad, Excel launches the “Text Import Wizard.”
Excel opens the file if it can resolve file format and extension mismatch. If not, try the following methods.
Also read: How to Open VCF File in Excel?
Method #2: Rename the File Extension to XLSX and Open the File in Excel
If a backup file (BAK) was created in Excel, it can be converted to Excel format by renaming the file extension to XLSX.
We use the following steps:
- Right-click the Windows Start button and click “File Explorer” on the context menu.
- On the “View” tab, select the “File name extensions” option on the “Show/Hide” group.
- Move to the folder where the BAK file is stored. Right-click the file and choose “Rename” on the shortcut menu.
- Highlight the “bak” extension and type “xlsx.”
- Press Enter and click “Yes” on the warning message box.
- Double-click the renamed file; the data will open in an Excel workbook.
Also read: How to Open an MPP file in Excel?
Method #3: Rename the File Extension to TXT and Import the File into Excel
If a backup file (BAK) was created in a text editor like Notepad, it can be converted back to a text file by renaming the file extension to TXT and importing it into Excel.
We use the below steps:
- Right-click the Windows Start button and click “File Explorer” on the context menu.
- On the “View” tab, select the “File name extensions” option on the “Show/Hide” group.
- Move to the folder where the BAK file is stored. Right-click the file and choose “Rename” on the shortcut menu.
- Highlight the “bak” extension and type “txt.”
- Press Enter and click “Yes” on the warning message box.
- Open a blank Excel file and click “File” to open the Backstage window.
- Click “Open” on the left sidebar and “Browse” on the right pane.
- Navigate to the folder where the renamed file is located. Open the file type drop-down at the bottom of the “Open” feature and choose “Text Files (*.prn, *.txt, *.csv).” The renamed file will appear in the list area of the “Open” feature.
- Select the text file and click “Open.”
- On the “Text Import Wizard – Step 1 of 3” dialog box, look at the preview of the data on the preview area at the bottom of the dialog box. If you can see that the data has a header, select the “My data has headers” option and click “Next.”
- Click “Next” on the “Text Import Wizard – Step 2 of 3” dialog box.
- Click “Finish” on the “Text Import Wizard – Step 3 of 3” dialog box.
The data is imported into the Excel file.
Also read: How to Open XML Files in Excel?
Method #4: Restore the BAK File in the Original Application and Export to Excel
If renaming BAK files to XLSX or TXT fails, restore in the original app and export to Excel.
For instance, in case Microsoft SQL Server generated the BAK file, first restore the backup in SQL Server and then export the data to Excel using the steps below:
- Launch the SQL Server Management Studio, and right-click the database where you want to restore the backup (BAK) data. Hover the mouse pointer over “Tasks” on the context menu, hover over “Restore” on the sub-menu, and choose “Database” on the menu that appears.
- Select the “From device” option, click the button with three dots, and click OK.
- Click “Add” to specify the location of the BAK file, select it and click OK.
- On the options list, select “Full Database Backup” and “Transaction Log Backup,” when the restore process is completed, click OK.
- Open the SQL Server Management Studio again and log in with your administrator account.
- Open the “Object Explorer,” right-click the database that you want to open in Excel, hover over “Tasks” on the context menu, and click “Export Data” on the sub-menu.
- Choose the “SQL Server Import and Export Wizard” and click “Next.”
- On the “Choose a Data Source” section of the ” SQL Server Import and Export Wizard” dialog box, do the following:
- Open the “Data source” drop-down and select “SQL Server Native Client 11.0.”
- Open the “Server name” drop-down and choose the server containing the data to be exported.
- Select the “Use Windows Authentication” option.
- Open the “Database” drop-down, choose the file that was restored from the BAK file, and click “Next.”
- On the “Choose a Destination” section of the “SQL Server Import and Export Wizard,” do the following:
- Open the “Destination” drop-down and choose “Microsoft Excel.”
- Click the “Browse” button and choose the destination folder to export the data.
- Open the “Excel version” drop-down and select the version of the Excel you are using.
- Select the “First row has column names” option and click “Next.”
- On the “Specify Table Copy or Query” of the “SQL Server Import and Export Wizard,” select the “Copy data from one or more tables or views” option and click “Next.”
- On the “Select Source Tables and Views” section of the “SQL Server Import and Export Wizard,” select the table containing the data you want to export and click “Next.”
- On the “Save and Run Package” section of the “SQL Server Import and Export Wizard,” select the “Run immediately” option and click “Finish.”
- On the following window of the “SQL Server Import and Export Wizard,” open the “Report” drop-down at the bottom of the window and choose “Save Report to File,” choose Excel as the destination file.
You will then be able to open the exported file in Excel.
This tutorial described four methods of opening BAK files in Excel. We hope you found the tutorial helpful.
Other Excel articles you may also like: