Skip to content
ZeroServer.tools
All guides

What Excel Does to Your CSV: 49 Values, Measured

November 24, 2026 · 7 min read

You export a list as a CSV, double-click it, and Excel opens it. The ZIP codes have lost their leading zeros, a 16-digit number now ends in a 0 it never had, and a product code has become a date. Excel is not broken. A CSV carries no types, only text, so Excel guesses a type for every value as it opens the file, and what it guesses replaces what was written.

To see exactly what it guesses, we wrote 49 awkward values into a CSV, one per row, opened it in Microsoft Excel, and read back every cell: the value Excel stored and the text it shows. This guide is what we found, and how to open a CSV without losing anything.

The short answer: Excel keeps a value exactly as written only when it reads it as text. Leading zeros, digits past the fifteenth, a leading plus sign and codes that look like dates are lost the moment the file opens, and saving cannot bring them back. To keep them, convert the CSV to a workbook that stores those values as text, which is what CSV to Excel does, in your browser.

One row, before and after

Here is a row of the kind a shop or a warehouse exports: two ZIP codes, a 22-digit tracking number, a product code, a price and a date.

00417,02134,9400111899223197428490,MARCH1,12.50,2025-01-31

Opened in Excel, its first five values showed as 417, 2134, 9.4E+21, Mar-01 and 12.5. The tracking number fared worst: Excel stored 9.40011189922319E+21, which keeps 15 of its 22 digits. The other seven are gone, and no format or column width brings them back.

What changed when Excel opened the file

Every value below was written in the CSV exactly as shown in the first column.

In the CSV Excel stored Excel showed What happened
00123 123 123 Leading zeros dropped
4111111111111111 4111111111111110 4.11E+15 Cut to 15 significant digits
12345678901234567890 1.23456789012345E+19 1.23E+19 Cut to 15 significant digits
+14155550123 14155550123 1.42E+10 Plus sign dropped
4006381333931 4006381333931 4.01E+12 Kept, but shown in E notation
MARCH1 1 March 2001 Mar-01 Read as a date
SEPT2 1 September 2002 Sep-02 Read as a date
1/2 and 1-2 1 February 2026 01-Feb Read as a date in the current year
2025-01-31 31 January 2025 31-01-25 Read as a date
03/04/2025 3 April 2025 03-04-25 Read as a date, day first
13:45 0.5729… 13:45 Read as a time, a fraction of a day
=1+1 2 2 Run as a formula
@SUM(1,1) 2 2 Run as the formula =SUM(1,1)
-abc an error #NAME? Read as the formula =-abc
1E5 100000 1.00E+05 Read as a number
true TRUE TRUE Read as the logical value
50% 0.5 50% A number in a percent format
(123) -123 -123 Parentheses read as a minus sign
$1,234.50 1234.5 ######## A number in a currency format, too wide for the column
3.14159265358979323846 3.14159265358979 3.141593 Cut to 15 significant digits

Text in other alphabets was damaged as well. Opened from a CSV saved as UTF-8 with no byte order mark, café showed as café, 日本語 as 日本語, and 😀 as 😀: Excel read the file as Windows-1252, the code page of a Western Windows.

Why each one happens

A number has no leading zeros. Once Excel decides 00123 is a number, it is the number 123, and the zeros were never part of it. ZIP codes, employee IDs and phone numbers written with a leading 0 all go this way.

Excel keeps 15 significant digits. Any digit past the fifteenth is lost; in a whole number it becomes a zero. A 16-digit card number ends in 0, and a 20-digit order number loses five digits. Formatting the column afterwards changes how the number is shown, not what was kept.

E notation is only how a number is shown. A 13-digit barcode was kept whole, but Excel's General format showed it as 4.01E+12 in a column of the default width. Giving the column a number format such as 0 shows every digit, because the value was kept. Of everything in the table, this is the one change that can be undone.

Dates are read in the computer's order. Our copy of Excel reads dates day first, so 03/04/2025 became 3 April 2025 and 13/04/2025 became 13 April. A computer set to read dates month first can read the same file differently. Codes that look like a month and a number, MARCH1 or SEPT2, became dates in 2001 and 2002, and 1-2 became 1 February.

A leading = or @, or a - before text, starts a formula. That is why =1+1 shows 2 and -abc shows #NAME?. A CSV from a source you do not control can carry a formula this way, so treat such a file with care.

The encoding is a guess as well. With no byte order mark, Excel read the CSV in the system's code page. The same three texts in a CSV saved with a UTF-8 byte order mark read correctly, and nothing else opened differently.

What Excel left alone

Some values came through unchanged. An ISO date with a time, 2025-01-31T13:45:00, stayed text, while 2025-01-31 on its own became a date. On our English (United States) Windows, 1,5 stayed text, because the comma is read as a thousands separator there, not a decimal point. Spaces around a value, a value that spans two lines, and text such as 123- also stayed as written, and 0.1, 42 and -42.5 were the numbers they say.

Numbers at the edges

Two more limits matter if you write spreadsheets from code. The largest number Excel opened from a CSV was 9.99999999999999E+307; 1E308 opened as text. And in an .xlsx file, a single cell whose stored value runs to 255 characters or more stopped Excel opening the workbook at all, while a number written out in 254 characters still opened.

How to open a CSV without losing anything

Store the values as text, in a workbook. In an .xlsx file, a cell whose number format is Text holds its value as written: Excel never reads it as a number, a date or a formula, and editing it keeps it text. CSV to Excel writes such a workbook from your CSV. It keeps every value Excel would change as text, keeps plain decimals and ISO dates as numbers and dates shown as written, and bolds and freezes the header row. We checked its output in Excel itself: ten test workbooks, 408 cells, every one as expected. It runs in your browser, so the file is never uploaded.

If you write CSVs for people to open in Excel, save them as UTF-8 with a byte order mark, so accented letters and other alphabets survive. The mark does not help with types: leading zeros, long numbers and codes that look like dates are lost on a double-click whatever the encoding. When those matter, send an .xlsx instead.

Keep the original. Once a CSV has been opened and saved in Excel, the zeros and digits it lost are not in the saved copy, so keep the file you were sent until the data has been checked.

How we measured

  • Excel: Microsoft Excel 16.0 (build 18827) on Windows 10, with the English (United States) culture and Excel's date order set to day, month, year. No setting was changed for the test.
  • Opening: each file was opened read-only through Excel's own automation interface, using the computer's regional settings, the way a double-click opens a CSV. For every cell we read the value Excel stored, its type, the text Excel shows in a column of the default width, and its number format.
  • The values: 49, one per row, in a CSV with no byte order mark and in the same CSV with one. Excel's results for the two files differed only in the three texts in other alphabets.
  • The workbooks: ten .xlsx files written by the same code as CSV to Excel, each opened in Excel the same way and compared with its CSV, cell by cell.

Free & private — all tools run in your browser, nothing uploaded.

Recommended: IndieKit — Ship your Next.js startup in days.affiliate