When the File Is an Old .xls
Key points
- Open
- Re-save
You want to turn an old-format .xls file into an HTML or Markdown table. Convert an Excel Table to HTML or Markdown targets .xlsx files. A .xls file as it is may not be usable.
Supported formats
- Supported: .xlsx
- Not supported: .xls (old format)
How to turn .xls into .xlsx
- Open the .xls file in Excel.
- Choose "Save As".
- Set the file type to "Excel Workbook (.xlsx)" and save.
- Open the saved .xlsx in this tool.
Changing only the extension doesn't work. Always re-save in Excel.
Notes when re-saving
- Keep the original .xls file as it is
- Macros aren't stored in .xlsx
- After saving, check that the table content is correct
Other methods
- You can also select the table, copy it and paste directly into a web page or document (though formatting can get mixed in)
- You can also save as CSV and use a conversion tool from CSV
For other formats
- .xlsm (with macros): re-save as .xlsx, then use.
- Google Sheets: download in Excel format, then use.
Good for
- Putting tables from old material on the web
- Turning old system output into documentation
Example
Wanted to put a 5-year-old .xls price list on the site. Re-saved as .xlsx in Excel, turned it into an HTML table with this tool and pasted it.
Common stumbling blocks
- "Cannot read" appears: may be .xls or a broken file.
- Garbled text: re-saving sometimes fixes it.
Frequently asked questions
Can I just rename the extension to .xlsx?
No. The internal format differs, so it won't work.
Summary
For .xls, re-save as .xlsx in Excel first.
Use "Convert an Excel Table to HTML or Markdown" (free)Tools that go well with this
- Convert Excel to CSV or JSON: Convert an Excel sheet to CSV, TSV or JSON.
- Convert Word to HTML: Turn Word text into HTML.
- Convert CSV and JSON: Convert between CSV and JSON instantly.