CSV to Excel Converter (.xlsx)
Get a real Excel workbook from CSV text, with ZIP codes and phone numbers still intact. The file is built in your browser and never uploaded.
- Private: nothing uploaded
- Free
- No sign-up
Runs in your browser. Your files never leave your device.
Paste CSV rows, or drop a file above. The first row usually holds the column names.
A ZIP code of 01234 stays 01234. A phone number like +92 300 1234567 stays text too. Excel only stores 15 digits, so longer numbers are kept as text instead of losing the end.
Very large CSV files take a few seconds on a phone, because the whole spreadsheet is built in memory before the download starts.
How to use it
Drop a .csv file on the box or paste the rows into the text box.
Check the separator, then look at the first rows in the preview.
Set the sheet name if you want something other than the file name, and leave the number option on unless every cell should be text.
Press Download .xlsx. Excel, Numbers, Google Sheets and LibreOffice can all open the result.
About this tool
A CSV file is plain text pretending to be a spreadsheet. Excel opens it happily, then guesses what every cell means, and those guesses are where data gets damaged. This page builds a proper .xlsx workbook in the browser instead, so the cell types are decided before Excel sees the file. Nothing is uploaded, which matters when the rows hold customer numbers or staff details.
Why Excel drops leading zeros
When Excel imports a CSV, it looks at each value and picks a type. A cell that reads 01234 looks like a number to Excel, and numbers do not start with zero, so it is stored as 1234. A ZIP code loses its shape and a customer account number can stop matching the system that issued it. Some versions of Excel also turn values such as 1-2 into a date. None of this is a bug in the CSV file. It is the import guess.
How this tool keeps them
The .xlsx format stores a type for every cell. This tool writes a cell as text when its value starts with a zero, when it starts with a plus or minus sign, when it is longer than 15 digits, or when it contains spaces in a phone number layout. Other plain numbers are written as real numbers so sums and averages still work. The setting can be turned off, and then every cell is text, which is the safest choice for an ID column that must match another system exactly.
The 15 digit limit, and why it is not ours
Excel stores only 15 significant digits in a number. A 16 digit card or tracking number entered as a number loses its last digits, and no spreadsheet tool can bring them back. The safe answer is text, which is why long numbers are written as text here. If a column of long IDs shows a small green triangle in Excel, that is Excel saying the cell is text on purpose. It is the correct result for an ID.
The sheet, the name and the copy
The workbook gets one sheet. Its name comes from the file name, or from the box you fill in, cut to the 31 character limit that Excel allows and cleaned of the characters Excel forbids, such as a slash or a colon. Column widths are set from the longest value so the file opens with readable columns. Formulas are written as text rather than evaluated, which keeps a stray equals sign from running in your spreadsheet. There is no styling, no second sheet and no date formatting; this is a clean data file, not a designed report.
Size, speed and the next step
Files up to 20 MB are accepted. The workbook is built in memory and an .xlsx file is a zip archive, so a large CSV becomes a smaller download, but a phone with little free memory can still be slow on a very large sheet. If you need JSON instead of a workbook, use the CSV to JSON converter. If the data started as a long text export, the JSON to CSV converter can flatten it first.