pip install xlrdpython xls2csv.py <input.xls> [output_dir]Convert a single XLS file (CSV files will be created in the same directory):
python xls2csv.py data.xlsConvert to a specific output directory:
python xls2csv.py data.xls ./outputEach worksheet in the XLS file is converted to a separate CSV file:
<input_file>_<worksheet_name>.csv
For example, data.xls with sheets "Sales" and "Inventory" produces:
data_Sales.csvdata_Inventory.csv
- Converts all worksheets to individual CSV files
- Handles Excel dates (converts to ISO format:
YYYY-MM-DD) - Creates safe filenames (special characters replaced with underscores)
- UTF-8 encoding for international characters