Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to convert multiple xls files to xlsx files in Excel?

Author Xiaoyang Last modified

To convert an old XLS Excel file to a new XLSX file, you can use the Save As feature in Excel. However, if you need to convert multiple XLS files at once, how can you handle this task efficiently?


Convert multiple xls formats to xlsx formats with Save As function one by one

The Save As function in Excel can help you convert the old workbook’s xls format to new xlsx format one by one.

1. Open your workbook that you want to convert its format.

2. Click File > Save As, and a Save As dialog will display, specify a folder to place the new format of the file, and then click the Save as type drop-down list to choose Excel Workbook, see screenshot:

A screenshot of Save As dialog for converting XLS to XLSX format in Excel

3. Then click Save button to close the dialog, and this Excel format has been converted from xls to xlsx.

Tips: With this Save As function, you can only convert one Excel file at a time. If you have hundreds of files to convert, this method may not be practical.

Convert multiple xls formats to xlsx formats at once with VBA code

If you want to convert multiple xls files to xlsx files at once without saving one by one, here, I will talk about a VBA code for you, please do with the following steps:

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: Convert multiple xls formats to xlsx formats at once

Sub ConvertToXlsx()
'Updateby Extendoffice
Dim strPath As String
Dim strFile As String
Dim xWbk As Workbook
Dim xSFD, xRFD As FileDialog
Dim xSPath As String
Dim xRPath As String
Set xSFD = Application.FileDialog(msoFileDialogFolderPicker)
With xSFD
.Title = "Please select the folder contains the xls files:"
.InitialFileName = "C:\"
End With
If xSFD.Show <> -1 Then Exit Sub
xSPath = xSFD.SelectedItems.Item(1)
Set xRFD = Application.FileDialog(msoFileDialogFolderPicker)
With xRFD
.Title = "Please select a folder for outputting the new files:"
.InitialFileName = "C:\"
End With
If xRFD.Show <> -1 Then Exit Sub
xRPath = xRFD.SelectedItems.Item(1) & "\"
strPath = xSPath & "\"
strFile = Dir(strPath & "*.xls")
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Do While strFile <> ""
If Right(strFile, 3) = "xls" Then
Set xWbk = Workbooks.Open(Filename:=strPath & strFile)
xWbk.SaveAs Filename:=xRPath & strFile & "x", _
FileFormat:=xlOpenXMLWorkbook
xWbk.Close SaveChanges:=False
End If
strFile = Dir
Loop
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub

3. Press F5 key to run this code, and a window will be displayed, please select a folder which contains the xls files that you want to convert, see screenshot:

A screenshot prompting to select a folder for input XLS files

4. Click OK, another window is popped out, please select a folder path where you want to output the new converted files, see screenshot:

A screenshot prompting to select a folder for saving XLSX output files

5. Click OK. Once the conversion is complete, navigate to the specified folder to view the results.

A screenshot showing a list of original XLS files Arrow A screenshot showing a list of converted XLSX files

Convert multiple xls formats to xlsx formats at once with a powerful feature

With this Kutools for Excel’s Format Converter utility, you can convert multiple xls formats to xlsx formats or vise versa, it also can help you convert multiple workbooks to PDF files at one.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Click Kutools Plus > Workbook > Format Converter, see screenshot:

A screenshot of the Format Converter tool in Kutools Plus tab in Excel

2. And a promt box will pop out to remind you must close the workbook that you want to convert. See screenshot:

A prompt requiring workbooks to be closed before conversion

3. Click OK, then, in the File Format Converter dialog, specify the following options:

  • Under the Convert type drop down list, select Excel 97-2003 to Excel 2007 or higher;
  • Then click Add button to add the xls files that you want to convert, You can add workbooks from your computer disk or OneDrive as needed.

A screenshot of File Format Converter dialog

4. After inserting the xls files, still in the File Format Converter dialog box, please click A folder selection button button to choose one folder path to output the converted files, and then specify some operations you need at the bottom of the dialog box, see screenshot:

A screenshot for selecting output folder and conversion options

Notes: In the above dialog box:
  • If the workbooks in the subfolders needed to be converted as well, please check the Include subfolders when adding folders check box;
  • If you want to remove the original files after converting, please check the Delete source files after conversion box;
  • If you want to keep the modified date of original files, please check the Keep modified date of original files box;
  • The directory structure of the file can be retained by checking the The directory structure of the file is preserved when converted box;

5. Then click OK to start converting. After finishing the conversion, navigate to the specified folder to view the results. See screenshots:

A screenshot showing a list of original XLS files Arrow A screenshot showing a list of converted XLSX files

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in