๐ Format Conversion ยท 6 min read
CSV to Excel (XLSX): Convert Without Losing Leading Zeros or Dates
A CSV becomes a proper Excel file when you import it, not when you double-click it and hit Save As. The double-click route is the step that strips leading zeros from ZIP codes and turns 01/02/2026 into February 1 instead of January 2, because Excel guesses the type of every column before you get a chance to correct it.
The fix is not a different file; it is a different opening method. Either you import through Excel's text import and set the column types yourself, or you run the file through a converter that writes real .xlsx. Both keep the data. Only the double-click loses it.
Why Save As After Double-Click Is the Wrong Way
When you double-click a .csv, Excel opens it as a spreadsheet and applies its own type detection. RFC 4180 stores everything as text, with no information about whether 00123 is a ZIP code or the number 123. Excel has to guess, and it guesses number. The leading zeros disappear, and a 16-digit card number gets rounded to 15 digits because that is where Excel stops tracking precision.
Saving the result as .xlsx then writes those guessed values back to disk. The damage is permanent in the saved file. You have not converted the CSV; you have overwritten it with a wrong version of itself. Microsoft documents the 15-digit precision limit and the 1,048,576-row by 16,384-column ceiling in its own specification pages, and the long-number behaviour is covered in the scientific notation guide.
The Import Path in Excel That Keeps the Data Intact
In Excel, use Data โ Get Data โ From Text/CSV. This opens a preview instead of a finished grid. You can set the delimiter, the encoding, and, on the next step, mark the ZIP code and ID columns as Text before the data is loaded. Marking a column as Text is what stops Excel from applying its guess.
- Open a blank workbook.
- Go to Data โ Get Data โ From Text/CSV and pick the file.
- In the preview, confirm the delimiter (comma, semicolon, or tab) and set File Origin to UTF-8 for a modern export.
- Click Transform Data, select the ID, ZIP, and date columns, and set their type to Text or to Date with the right format.
- Click Close & Load.
The import path costs more clicks than a double-click, which is exactly why most people skip it. It is also the only Excel-native path that does not rewrite your values before you look at them.
Converting Without Excel
If Excel is not installed, or you want the file converted rather than hand-held through an import, use the free converter. It reads the CSV as text and writes a .xlsx, so leading zeros and long IDs stay as they are. The same job done without the import wizard is walked through step by step in the convert without Excel guide.
Check the Result Before You Send It
Open the .xlsx and check three things: the row count matches the source CSV, the leading zeros are still visible in the ID and ZIP columns, and the dates read the way you expect. A row count that differs usually means blank rows or an unclosed quote were swallowed during the import.
If a column came out as numbers when it should be text, re-import and set that column to Text. For values that already lost their zeros, the leading zeros guide has the three fixes, and the CSV format overview explains why the file itself never carried type information to begin with.
Frequently Asked Questions
Does saving a CSV as XLSX in Excel convert it?
It converts it, but through Excel's guesses. Save As after a double-click writes the auto-detected types back, so leading zeros and long IDs can be lost permanently. Use the import path or a converter that reads the CSV as text.
How do I convert CSV to Excel without Excel installed?
Use a free browser converter. It reads the CSV as plain text and writes a real .xlsx file, keeping leading zeros, long IDs, and dates intact.
Why did my dates change after converting CSV to Excel?
Excel guessed a different date format during the open. In the import path, set the column to Date and pick the right format, or mark it Text and fix the values afterward.
How do I keep leading zeros when converting CSV to Excel?
Mark the column as Text before the data loads. A double-click auto-detects 00123 as the number 123 and drops the zeros; the import path lets you stop that.
Convert Without Losing a Single Zero
The free converter reads your CSV as text and writes a real .xlsx, so IDs, ZIP codes, and dates arrive intact.
Related reading
Format Conversion โ other guides that pair well with this one.
- Convert Text to CSV
- Convert CSV to Word
- CSV Delimiter in Python: csv.reader, Sniffer and Dialect
- Why Is My CSV File So Large? What's Actually Taking Up the Bytes
Browse all guides in the NoCodeCSV blog.