Skip to content
EditFlip
ENRO
Back to blog
Excel

How to convert a CSV file to Excel without scrambling the data

Double-clicking a CSV can eat leading zeros, turn long numbers into 1.23E+15 and swap days and months. Importing it properly avoids all three.

Eric Rada · Founder · · 7 min read

In short

  • Do not double-click the CSV. In Excel, go to the Data tab, choose From Text/CSV, pick the delimiter, set risky columns to Text, load the data, and then save as an Excel Workbook (.xlsx).
  • Double-clicking makes Excel guess the type of every column, and its guesses are the cause of lost zeros, scientific numbers and swapped dates. To simply read or fix a CSV first, EditFlip shows it as a table in your browser.
  • Open and check a CSV free in your browser

A CSV is the plainest spreadsheet there is: text, with a comma or a semicolon between the values. Excel opens it fine, and that is the trouble. It opens it fast, and it guesses. A postcode like 01234 becomes 1234. A long order number becomes 1.23457E+15. A date like 03/04/2026 turns into the wrong day. Or the whole file lands in column A.

This guide explains what causes each of these, how to import a CSV so Excel stops guessing, and how to save the result as an .xlsx file. It also shows how to look at the file first in your browser, which is a safe way to see what is really inside before you let any program interpret it.

On EditFlip, step by step

  1. Step 1

    Choose the CSV

    Go to editflip.com, press Choose files and pick the .csv. Or drop it on the page. The file is read on your own device and is not uploaded.

  2. Step 2

    Press Preview and read the columns

    Open Preview and look at how the table is split. Are the values in separate columns, or is each row one long line? Are IDs, codes and phone numbers still complete? Are dates in the order you expect? What you see here tells you what to protect when you import it into Excel.

  3. Step 3

    Fix small mistakes with Edit

    For a wrong value, an empty row or a stray extra column, press Edit, tap the cell, type the right value, and use Delete row or Delete column where needed. Press Done. The result is a new CSV, named with (edited), not an .xlsx, so for the Excel file you still finish in Excel.

  4. Step 4

    Import into Excel, then save as .xlsx

    In Excel choose Data, then From Text/CSV, select your file, set the delimiter, change the code columns to Text, and Load. Then use File, Save As and pick Excel Workbook (*.xlsx). Now you have a real Excel file with the data as it should be.

Why a CSV gets scrambled

A CSV file carries no types. It does not say “this column is a postcode, this is a date, this is money”. It is only characters. When you double-click it, Excel looks at each cell and decides what it is. If it looks like a number, it becomes a number, and numbers are stored as numbers, not as the exact text you saw.

That guess is helpful for prices and quantities, and harmful for anything that only looks like a number: identification numbers, phone numbers, postcodes, product codes, account numbers. They are labels, not quantities, and Excel does not know it.

Once Excel has changed a value and you save, the original text is gone from that file. So the fix is always to stop the guessing before it happens, not to repair afterwards.

Leading zeros and very long numbers

A leading zero is meaningless in a number, so Excel drops it. A code like 00742 becomes 742. A phone number written 0721 123 456 loses its first zero. If the zeros matter, the column has to be read as text.

Long numbers have their own limit. Excel keeps only 15 significant digits of a number. A 16-digit card-like number or a long tracking code gets its last digits replaced by zeros, and is shown in scientific form, such as 1.23457E+15. The lost digits do not come back by changing the column format, because they were thrown away on opening.

The cure is the same for both: import the column as Text. Then Excel keeps exactly the characters in the file. Do this for every column that is a label, even if today's file happens to have no zeros in it.

Dates that change their meaning

A date in a CSV is just text such as 03/04/2026. Is it the third of April or the fourth of March? Excel decides by the regional settings of the computer. A file made in one country and opened in another can swap day and month, and you will not see an error, only wrong dates. When the day is more than 12, such as 25/04/2026, Excel cannot read it as a month, so it leaves that one as text, and you end up with a column that is half dates and half text.

The safest dates in a CSV are written year first, as 2026-04-03. Most programs read that the same way everywhere. If you made the CSV yourself, write dates like that. If someone else made it, import the column as Text, check it, and only then convert it.

Some short codes also look like dates to Excel. Something like 1-2 or a name such as MARCH1 can be turned into a date. This is why careless opening has been blamed for damaged data in real lists. Again, the fix is to import as Text.

Comma, semicolon and everything in one column

The “C” in CSV means comma, but the separator is a choice. In many countries the comma is the decimal mark, as in 3,50, so files made there use a semicolon between values. Excel uses the list separator of the computer's regional settings. When the file and the computer disagree, every row lands in column A as one long string.

The import dialog solves this. After choosing the file, you can pick the delimiter yourself from a list: comma, semicolon, tab, space or other. The preview in the dialog updates, and you can see at once whether the columns now split properly.

To know before you open Excel which separator your file uses, look at it first. In the Preview on EditFlip the table shows whether the values split into columns. If they do not, the separator is the likely reason.

Importing properly in Excel, step by step

In current versions of Excel, open a blank workbook, go to the Data tab and choose From Text/CSV. Pick your file. A window shows a preview with three choices at the top: File Origin, Delimiter and Data Type Detection. Set the delimiter. If accents look wrong, change File Origin to 65001: Unicode (UTF-8). Set Data Type Detection to Do not detect data types, so that every column is read as text.

Press Load to bring it in as it is, or Transform Data if you want to change the type of a single column first. Then fix the columns that really are numbers or dates. With nothing guessed, you decide each one.

Older versions of Excel have the Text Import Wizard. Its third step lets you click each column and set it to Text. Another old trick is to rename the file from .csv to .txt, and open it from inside Excel, which starts the same wizard.

Saving the result as XLSX

Once the data is in the workbook, choose File, Save As, and set the type to Excel Workbook (*.xlsx). This is the step that turns the CSV into a proper Excel file, with several sheets allowed, widths, colours, formulas and number formats.

Do not just press Save on a workbook that came from a CSV and keep the .csv name. Excel will warn you that some features may be lost and will write plain text again. If you want to keep working in Excel, save under a new name as .xlsx and keep the CSV as your untouched original.

After saving, give the columns their look. Widen the columns, bold the header row, and only now set real number or date formats on the columns that need them. A date typed in a cell by hand, or a column of numbers, can be formatted without any risk, since the data is already inside.

Other ways, and what EditFlip does not do

Google Sheets has File, then Import, with a choice of separator, and a switch that decides whether text is converted to numbers and dates. LibreOffice Calc shows a similar import window when you open a CSV, where you set the separator, the encoding and each column's type.

EditFlip opens a CSV in the browser and lets you edit the cells, but when you press Done you get a CSV again. It does not turn a CSV into an .xlsx file. Its job here is to look and tidy before the import. A column of codes may be shown as plain numbers, so if you see zeros missing in the Preview, do not rely on that view for them. Use the Text import in Excel.

Choose the CSV, press Preview to see how it splits into columns, and use Edit to fix stray rows, columns and values. Free, no account, and the file stays on your device. Then import it into Excel as Text and save as .xlsx.

Check a CSV file on EditFlip →

Questions

How do I convert a CSV file to Excel?

In Excel use Data, From Text/CSV, choose the file, set the delimiter, load it, and save with Save As as Excel Workbook (*.xlsx).

Why does Excel remove the zeros at the start of my numbers?

Because it reads the value as a number, and a number has no leading zero. Import that column as Text to keep the zeros.

Why does my CSV show 1.23457E+15 in Excel?

Excel keeps only 15 significant digits and shows long numbers in scientific form. Import the column as Text so every digit stays.

Why is all my CSV data in one column?

The file uses a separator, such as a semicolon, that differs from the one your computer expects. Choose the right delimiter in the import window.

Why did Excel change my dates in a CSV?

Excel guesses the day and month order from your regional settings. Import the date column as Text and check it, or write dates as 2026-04-03.

Can EditFlip convert a CSV to XLSX?

No. It opens a CSV as a table and lets you edit it, but it saves a CSV again. Make the .xlsx in Excel, Google Sheets or LibreOffice.

Is my CSV uploaded when I open it on EditFlip?

No. It is opened in your browser, on your own device.

How many rows can Excel take from a CSV?

A sheet has 1,048,576 rows. A CSV with more than that will not fit in one sheet.

Do it right in your browser.
Free, no account. Your files stay on your device.
Check a CSV file