You need to have win32com installed on your machine. Here is my code:

import win32com.client as win32
fname = "full+path+to+xls_file"
excel = win32.gencache.EnsureDispatch('Excel.Application')
wb = excel.Workbooks.Open(fname)

wb.SaveAs(fname+"x", FileFormat = 51)    #FileFormat = 51 is for .xlsx extension
wb.Close()                               #FileFormat = 56 is for .xls extension
excel.Application.Quit()

Just wrapped the code above in a function together with better path handling to make sure the excel process is getting closed.

from pathlib import Path
import win32com.client as win32
    
def convert_xls_to_xlsx(path: Path) -> None:
    excel = win32.gencache.EnsureDispatch('Excel.Application')
    wb = excel.Workbooks.Open(path.absolute())

    # FileFormat=51 is for .xlsx extension
    wb.SaveAs(str(path.absolute().with_suffix(".xlsx")), FileFormat=51)
    wb.Close()
    excel.Application.Quit()
Answer from kvdogan on Stack Overflow
🌐
Super User
superuser.com › questions › 1294454 › converting-a-windows-xlsx-into-a-mac-xlsx
microsoft excel - Converting a Windows xlsx into a Mac xlsx - Super User
Try docXConverter for Mac. ... I'm showing the easiest method and it will help you to convert Window's .Xls, .Xlsx and even .CSV file into Mac Numbers(Spreadsheet). Load the Numbers. Navigate to the location of your Excel file.
🌐
Apple Community
discussions.apple.com › thread › 4333080
convert xls to xlsx with automator and sh… - Apple Community
September 24, 2012 - Open Automator, select "Application", enter "Excel' in the name search box, then drag the "Convert Format of Excel Files" action to the right-hand pane (Excel Workbook - .xlsx - is the default format). Save the application to a convenient place. Thnaks for your time.
Discussions

python - how to convert xls to xlsx - Stack Overflow
I have some *.xls (excel 2003) files, and I want to convert those files into xlsx (excel 2007). I use the uno python package, when I save the documents, I can set the Filter name: MS Excel 97 But t... More on stackoverflow.com
🌐 stackoverflow.com
Convert Windows Excel File into a Mac Exc… - Apple Community
Problem is, I can't access it the file on my Mac in Excel or Numbers. It's currently in .xlsx format, I tried simply renaming as an .xls file but it wouldn't open properly on either application. How do I convert this file Windows file into a Mac readable file. More on discussions.apple.com
🌐 discussions.apple.com
April 6, 2013
How do I convert an XLSX file into CSV? I have a 2019 M.B. Pro
Pretty sure you can do this in the numbers app. Either save as or export. CSV is common like txt. More on reddit.com
🌐 r/mac
4
0
August 20, 2022
Convert XLS file to XLSX without opening it?
u/PEBKAC-Live - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/excel
10
2
December 21, 2021
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5168835 › excel-files-conversion
Excel files conversion - Microsoft Q&A
July 5, 2022 - On the Excel menu, click Preferences. Under Sharing and Privacy, click Compatibility. On the Save files in this format menu, select the file format that you want to use. ... After you specify the default file format, all new workbooks are saved ...
🌐
Microsoft Support
support.microsoft.com › en-us › office › change-the-file-format-for-saving-workbooks-in-excel-for-mac-4d1f5105-5069-41ad-8312-59a3bc5d32f0
Change the file format for saving workbooks in Excel for Mac - Microsoft Support
On the Excel menu, click Preferences. Under Sharing and Privacy, click Compatibility. On the Save files in this format menu, select the file format that you want to use.
🌐
YouTube
youtube.com › azhar techno coder
How to convert xls to xlsx without any code | Convert xls to xlsx - YouTube
How to convert xls to xlsx without any code | Convert xls to xlsxSteps:1. Open an xls file2. Click on File Tab3. Once you are done with that, Click on Info T...
Published   June 24, 2022
Views   21K
🌐
MConverter
mconverter.eu › convert › xlsx › xls
XLSX to XLS Converter • Online & Free • MConverter
You can convert XLSX to XLS with ... box to select files with your device's file picker, or copy and paste an XLSX file by pressing Ctrl+V (or ⌘+V on Mac)....
🌐
Wondershare
repairit.wondershare.com › file-repair › convert-xls-to-xlsx.html
The Complete Guide to Convert XLS to XLSX With or Without Excel
Here’s how to do it with Apple Numbers: Step 1. Open Numbers app on your Mac. Step 2. Click File and go to the Export To dropdown. Then, select Excel. Note: If you want to use an easiser but also powerful tools, you can also convert xls to ...
Find elsewhere
🌐
Apple Community
discussions.apple.com › thread › 4927388
Convert Windows Excel File into a Mac Exc… - Apple Community
April 6, 2013 - You will either have to Upgrade your version of Excel on your Mac to "Office for Mac 2011", OR go back to your girlfriend's computer and resave the file using "Save As ..." and there select the ".xls" compatibility format instead of the default ".xlsx" version that the newer versions of Excel use.
🌐
Reddit
reddit.com › r/mac › how do i convert an xlsx file into csv? i have a 2019 m.b. pro
r/mac on Reddit: How do I convert an XLSX file into CSV? I have a 2019 M.B. Pro
August 20, 2022 - Got it thanks! I didn’t have excel. ... LibreOffice - free will do it. ... I need to convert thousands of .xlsx to .csv (semicolon separated). ... Copying vs. Moving Files ... I’m moving from Windows to Mac after 20 years.
🌐
WPS Office
wps.com › home › blog › office guide › how to convert xls to xlsx for free (easy & fast)
How to Convert XLS to XLSX for Free (Easy & Fast)
September 11, 2025 - Step 5: Under the "Save as type" dropdown menu, choose "Excel Workbook (*.xlsx)". ... Step 6: Finally, click "Save" to save the XLS file as an XLSX file in the selected location. ... Zamzar is a free online file conversion service that supports over 1200 different conversions. You can convert files between various formats, such as video, audio, image, document, and ebook.
🌐
Microsoft Support
support.microsoft.com › en-us › office › saving-xls-to-xlsx-xlsm-d74fe848-d887-4e63-9638-8f752cd743a2
Saving xls to xlsx xlsm | Microsoft Support
Open the identified .xls workbook which contains macros. Navigate to File > Save As > Browse – which will open the below window. Make sure you are in the right path to save the workbook > Select Excel Macro-Enabled Workbook (*.xlsm) as shown below and select Save.
🌐
Zamzar
zamzar.com › home › converters › document › xls › convertxtoy
Excel to Excel - Convert your XLS to XLSX for Free Online
However, XLSX has been the standard Microsoft format since 2007, is more robust and tends to have a smaller file size – so if you don’t need support for macros then it may be the better choice. It’s easy to convert between both formats by using an online conversion tool like Zamzar. Just ...
🌐
IONOS
ionos.com › digital guide › online marketing › online sales › xlsx to xls
Converting XLSX to XLS is fast and easy with these two methods - IONOS
August 25, 2020 - To do so, follow the steps below: Open the XLSX file you want to convert. In Microsoft Excel, go to the File tab located at the top left. For other programs or Mac computers, it is often the first tab in the nav­i­ga­tion bar called “Home” ...
🌐
UPDF
updf.com › home › 3 effective ways to convert xls to xlsx
How to Convert XLS to XLSX (With/Without Excel) - UPDF
July 30, 2025 - UPDF is a complete PDF editing tool that brings a wide range of features to manage all your documentation requirements. It is available on both Windows and macOS so everyone can use it and makes the conversion from XLS to XLSX almost effortless. There are multiple reasons why you must prefer using UPDF instead of other options including the ease of use, offline operation, safety and reliability, and the ability to use other features like UPDF AI, etc. when converting your Excel files.
🌐
CoolUtils
coolutils.com › online › xls to xlsx
Convert XLS to XLSX Online — Free Spreadsheet Upgrader
2 weeks ago - Convert XLS to XLSX without installing Excel or a spreadsheet app. Upload the file in your browser and download the XLSX on Windows, Mac, or mobile.
Rating: 4.7 ​ - ​ 3 votes
🌐
Sayi
help.sayi.do › say i do help centre › my account › how do i save an excel file from a mac?
How do I save an Excel file from a Mac? - Say I do Help Centre
Open the Numbers application on your Mac · Fill out the spreadsheet (we recommend downloading the sample spreadsheet) 1. Click File, Export and Excel · 2. Make sure Excel is selected and .xlsx is the format, click Next · 3. Click Export · 4. You are done!
🌐
The Bricks
thebricks.com › home › resources › how to convert csv to excel on mac
How to Convert CSV to Excel on Mac
February 12, 2025 - Choose a name and location for your new file, and make sure the format is set to "Excel Workbook (.xlsx)." Click "Export." You now have a clean, ready-to-use Excel file that was converted perfectly using Numbers as a stepping stone.
🌐
Reddit
reddit.com › r/excel › convert xls file to xlsx without opening it?
r/excel on Reddit: Convert XLS file to XLSX without opening it?
December 21, 2021 -

I have dont quite a bit of Googling on this one and havent come up with a solution.

We have a large XLS file (20Mb) that will not open, Excel just kind of freezes and locks up.

I think converting it to XLSX would resolve the issue, but without opening it first I cant find a way to do this.

I have seen some online tools to do it, but this file contains sensitive info so am not happy to upload it to a random online conversion tool.

Also tried several Macro based options, but they have the same issue. When they try to open the file to convert it, Excel just locks up.

This isnt down to system resources either, very high spec machine being used has the same issue.