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.

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.
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.
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.

A worked example: a Boston café's loyalty export
- 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.
- 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.
- 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).
- 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.
- 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.
- 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
- Saving the CSV after opening it in Excel. The file is written back from the cells: 2134 instead of 02134, and card numbers that already lost their last digit. Keep the original and work on an import.
- Repairing letters with Find and Replace. Swapping é for é one pair at a time misses ü, ñ and the rest; read the file with the right encoding instead.
- Formatting the ZIP column as Text after opening. Microsoft notes this doesn't change numbers already entered; the zeros have to survive the import.
- Trusting the dates because some look right. Look for a date with a day above 12; if it is text, the whole column was read in the wrong order.
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
- Microsoft Support: Opening CSV UTF-8 files correctly in Excel
- Microsoft Support: Keeping leading zeros and large numbers
- Microsoft Support: Set automatic data conversions
- Microsoft Learn: Power Query Text/CSV connector
- Microsoft Learn: Data types in Power Query (Change type using locale)
- WHATWG Encoding Standard (UTF-8 and windows-1252)