Free web tool
CSV to XLSX
Convert CSV and TSV files to Excel .xlsx. Leading zeros, long ID numbers and values that look like dates stay exactly as they are in the CSV, which is what usually goes wrong when Excel opens a CSV itself. The workbook is built on your device. Nothing is uploaded.
Bytes of your files sent anywhere: 0
Files are read and converted in this tab, in a background worker. The only requests the page makes are for its own scripts. Your files are never sent anywhere.
How it works
When Excel opens a CSV directly, it guesses what each value is. It drops the leading zero from ZIP codes and IDs such as 02134, shows a 16-digit account number in scientific notation and rounds its last digits, and turns values like 3-4 or MARCH1 into dates. Researchers know the last one from gene names.
This page builds the .xlsx itself and only stores a value as a number when it is written as a plain number that Excel can hold exactly. Everything else is stored as text, as written. Formulas are never created, so a value starting with an equals sign shows as text.
It reads the text as UTF-8, or as Windows-1252 if the file is not valid UTF-8 (the usual export from older Excel on Windows). It finds the separator by looking for the character that splits the first lines into the same number of columns. The row says what it used, and both can be set by hand.
The workbook is assembled with JSZip, served from this site, in a background worker in this tab.
How to convert CSV to XLSX
- Add the CSV. Drop the file on the box, or click it to choose it. Several files give one workbook each.
- Check the row. The row shows the number of rows and columns, the text encoding and the separator it used.
- Fix the reading if needed. If the columns look wrong, set the separator or the encoding, then add the file again.
- Download. Download the .xlsx from its row, or use Download all as .zip.
Limits
- Up to 50 MB a file and 5 million cells, because the sheet is built in this tab's memory.
- Excel's own limits apply: 1,048,576 rows and 16,384 columns. Cells over 32,767 characters are cut there, with a note.
- Dates stay as text. To make a column real dates in Excel, select it and use Data, Text to Columns, and choose the date order.
- Whole numbers of 12 digits or more stay text, so IDs and card numbers are not shown as 1.23457E+11.
- In a semicolon-separated file, 3,14 is read as the number 3.14, as European Excel writes it. In other files a comma inside a number keeps it as text.
- One sheet per file. Several CSVs are not merged into one workbook.
Questions
Are my files uploaded?
Why do my leading zeros survive here and not in Excel?
Which values become numbers?
My columns are all in column A. What went wrong?
The accents look wrong. How do I fix it?
Is it safe to open the result?
Is it free?
If this saves you time, you can leave a tip. It helps keep these tools free and online.