Guides ·

How to open a CSV in Excel without breaking it

Your CSV opens in neat columns, but something is off: names show é instead of é, ZIP codes lost their first 0, card numbers turned into 8.80012E+15 and some dates look swapped. Excel changed the data while opening it.

Drop your CSV on the free CSV to Excel page to see what Excel would change, then download an .xlsx that keeps every letter, zero and digit.Try it on your own file
The CSV to Excel page with moonbeam-cafe-orders.csv: above, Excel's view with Zoë Müller, ZIP 2134, card numbers as 8.80012E+15 and mixed dates; below, the fixed table with Zoë Müller, 02134 and full card numbers
moonbeam-cafe-orders.csv on the CSV to Excel page: what a double-click shows, and the fixed table. Sample file: unmake's own, made-up café and names.

Four things Excel changes on a double-click

When Excel opens a CSV, it guesses what each value is. Microsoft calls this automatic data conversion; it happens when you open a .csv file and when you type or paste. Most guesses are right. Four go wrong often: the encoding, leading zeros, long numbers and dates.

None of them shows up as an error; the damage appears later.

Strange characters like é: the encoding

A file stores text as bytes, and an encoding is the rule that turns bytes back into letters. Most systems write CSVs in UTF-8, where é takes two bytes, C3 and A9. Unless the file starts with a byte-order mark (BOM), a few marker bytes that announce UTF-8, Excel may read it with an older Windows encoding, Windows-1252, where every byte is one letter: C3 is à and A9 is ©.

Tell Excel the encoding instead: use Data > From Text/CSV and set File Origin to UTF-8 (code page 65001) in the preview. If you make CSVs for others, add a byte-order mark; Microsoft notes that Excel then opens a UTF-8 file normally.

How é becomes é: UTF-8 stores é as two bytes, C3 and A9; Excel reads each byte as one Windows-1252 letter, à and ©
One letter, two bytes, two wrong letters. Diagram: unmake.

Leading zeros that disappear

A US ZIP code like 02134 looks like a number, so Excel stores it as 2134. Article numbers and UPC barcodes that start with 0 go the same way, and the zero is gone from the cell, not hidden.

To keep it, the column has to be text before the value arrives. In the From Text/CSV preview, choose Transform Data, select the column, set Data Type to Text (Home > Transform) and choose Replace current when Excel asks. For a single cell, an apostrophe before the number also works.

Long numbers that change their last digits

Excel keeps at most 15 significant digits, and Microsoft says any digit after the 15th becomes a zero. A 16-digit loyalty card number such as 8800123456789012 turns into 8800123456789010, and the cell shows 8.80012E+15. Card numbers, 18-digit shipping codes and long order IDs all suffer.

This can't be undone in the cell, because the digit is no longer stored. Import such columns as Text, as for leading zeros.

A 16-digit loyalty card number in the CSV, 8800123456789012, becomes 8800123456789010 in Excel because Excel keeps 15 significant digits; it is shown as 8.80012E+15
Excel keeps 15 significant digits, so the 16th becomes 0. Diagram: unmake.

Dates that swap day and month

03/04/2026 is 3 April in most of Europe and March 4 in the US. Excel reads a date with your computer's date order. Open a day-first file on a US setup and 03/04/2026 becomes March 4, while 28/03/2026, which has no 28th month, stays as text. The column ends up half dates and half text, and it sorts wrongly.

In Power Query, set the column with Change Type > Using Locale and pick a day-first locale such as English (United Kingdom). Microsoft's own example is exactly this case.

Turn the conversions off in new Excel versions

Excel for Microsoft 365 and Excel 2024 have switches for this, under File > Options > Data > Automatic Data Conversion on Windows and Excel > Preferences > Edit on a Mac. Clear Remove leading zeros and convert to number, and Keep the first 15 digits of long numbers and display in scientific notation if required.

The switches don't fix the encoding, and Microsoft says they don't affect Power Query imports.

The shortcut: see the damage before it happens

The CSV to Excel page on unmake shows the file twice: what a double-click would show, and the table you will get. It reads the encoding, keeps codes as text, turns dates into real dates and names each fix in a short note.

When every date in a file has a day of 12 or less, no program can tell the order from the file alone. The page then picks one and marks the column in the table. With only 03/04, 11/04 and 02/05 left in our file, it read month first guessed · tap to swap, and one tap switched the column to day first.

The fixed table for a version of the café file whose dates all have a day of 12 or less: the date column is marked month first guessed, tap to swap, above dates like 03/04/2026 and 11/04/2026
When the day/month order can't be known, the date column is marked as a guess with a one-tap swap. Sample file: unmake's own, made-up café.

A worked example: a Boston café's loyalty export

  1. The file: moonbeam-cafe-orders.csv (718 bytes), 8 orders from a made-up Boston café's loyalty app. Commas, UTF-8 without a byte-order mark, ZIP codes like 02134, 16-digit loyalty card numbers and day-first dates like 28/03/2026.
  2. Before, the page's preview of a double-click: Zoë Müller reads Zoë Müller, Crème brûlée reads Crème brûlée, 02134 is 2134, every card number shows as 8.80012E+15, 03/04/2026 has become 3/4/2026, and 28/03/2026 is left as text.
  3. After: Fixed: 8 rows × 9 columns plus the header, ready for Excel, with the notes Accents fixed, 8 leading zeros kept, 8 long numbers kept whole and Real dates (day first).
  4. Details and checks: Encoding: UTF-8; the ZIP and card columns kept as text; all 81 cells read back from the .xlsx exactly as intended, and none of the 56 values with digits lost.
  5. Download Excel file (.xlsx) saved moonbeam-cafe-orders.xlsx (3,451 bytes). ZIP codes and card numbers are text cells, 03/04/2026 is the date 3 April 2026 (shown as 04/03/2026 on the US page) and prices are numbers.
  6. More, then CSV for Excel (your language), saved an 842-byte CSV with a byte-order mark and each code written as ="02134", so Excel keeps it as text.

Common mistakes

Questions

How can I tell if my CSV is UTF-8?

If the accents look right in a text editor and wrong only in Excel, the file is almost certainly UTF-8. The CSV to Excel page names the encoding it found under Details and checks.

Can I get the lost digits back?

Not from the Excel cell. Go back to the original CSV and import the column as text.

Will the .xlsx look the same on another computer?

The values will: text stays text and dates stay real dates. Excel shows the dates in each computer's own date format.

Sample file: moonbeam-cafe-orders.csv (made-up café loyalty export) · ours (unmake sample, made-up café, names and numbers)

Sources

Drop your CSV on the free CSV to Excel page to see what Excel would change, then download an .xlsx that keeps every letter, zero and digit.Try it on your own file