Why a CSV file opens in one column, and how to fix it
By the MyDataFixer team · Updated
The short answer
A CSV file is plain text. On each line, the values are separated by a character: usually a comma, sometimes a semicolon or a tab. When you double-click a CSV, Excel splits each line using the separator your computer is set up for. If the file uses a different one, Excel can't split the lines and puts everything into column A. Your data is not damaged. You only need to open the file with the right separator.
What a CSV file really is
CSV means “comma-separated values”. It is one of the simplest ways to store a table. There are no colours, no formulas and no sheets: just lines of text. Each line is one row, and a special character marks where one value ends and the next begins. You can open a CSV in Notepad and read it like a normal text file.
The problem is that the file itself doesn't say which separator it uses. Excel has to guess, and when you double-click the file, it simply uses the separator from your computer's settings. If the guess is wrong, every line stays in one piece.
Why it happens
- Different country settings. In countries that write decimals with a comma (3,5 instead of 3.5), such as Germany, France, Italy, Spain and Brazil, computers usually expect a semicolon between values. Computers set up for the US, the UK, Canada and many other countries expect a comma. So a file made in Germany often opens in one column on a computer in the US, and the other way round.
- Tabs or pipes in a .csv file. Some programs save values separated by tabs or by the pipe sign (|) but still name the file .csv.
- Whole lines in quotes. Some exports put quotation marks around every line, for example
"1001,Asha,Lyon". The quotes tell Excel that the commas are part of the value, so the whole line stays in one cell.
Example
This file was saved on a computer in Germany. It uses semicolons between values:
id;name;city
1001;Asha Patil;Lyon
1002;Ben Müller;BerlinDouble-clicked on a computer that expects commas, Excel finds no commas, so each line stays in column A:
| A |
|---|
| id;name;city |
| 1001;Asha Patil;Lyon |
| 1002;Ben Müller;Berlin |
Opened with the semicolon as the separator, the same file shows three proper columns:
| id | name | city |
|---|---|---|
| 1001 | Asha Patil | Lyon |
| 1002 | Ben Müller | Berlin |
Fix it in Excel
These steps are for Excel on a Windows or Mac computer. The Excel app on phones and tablets doesn't have these menus; on a phone, use Google Sheets or MyDataFixer instead.
Method 1: split column A (quickest)
Use this when the file is already open with everything in column A.
- Click the letter A at the top to select the whole column.
- Go to Data → Text to Columns.
- Choose Delimited and click Next.
- Tick the separator your file uses, for example Semicolon, and untick the others. The preview at the bottom shows the columns.
- Click Finish.
Method 2: import the file (best for codes and leading zeros)
- Open a new, empty workbook.
- Go to Data → From Text/CSV and choose your file.
- In the window that opens, set Delimiter to the right separator. Excel often finds it by itself here.
- If your file has codes such as 00123, set Data Type Detection to Do not detect data types so they stay exactly as written.
- Click Load.
Fix it in Google Sheets
- Open a new spreadsheet.
- Go to File → Import → Upload and choose the file.
- Under Separator type, keep Detect automatically or pick Comma, Semicolon, Tab or Custom.
- Click Import data.
If the data is already in one column, select it and use Data → Split text to columns, then choose the separator from the small box that appears.
Fix it with MyDataFixer
MyDataFixer works in your browser, also on a phone or tablet. Your file is read on your device and is never uploaded.
- CSV to Excel finds the separator by itself (comma, semicolon, tab or pipe), and you can change it if needed. It makes an Excel file with the columns already split. An Excel file remembers its columns, so it opens correctly on every computer, whatever its settings. Codes with leading zeros stay as they are.
- CSV Validator shows which separator the file uses and checks that every row has the same number of values. You can download a copy with a comma, semicolon or tab, whichever the next program needs.
Common mistakes
- Replacing all semicolons with commas. If a value already contains a comma, like an address or a price such as 12,50, it gets split into two columns. Use one of the methods above instead.
- Saving over the original. When Excel saves a CSV, it can change the separator and the way dates and numbers are written. Keep the original file and save your work under a new name.
- Thinking the data is broken. Nothing is lost. Close the file without saving and open it again the right way.
How to avoid it next time
- Ask the sender which separator they use, or ask for an Excel file (.xlsx) instead of a CSV.
- When you send a CSV to someone in another country, tell them the separator, or send an Excel file.
- Open CSV files with Data → From Text/CSV instead of double-clicking them.
Fix it in your browser
Free, no sign-up. Your file is processed on your device and never uploaded.
Questions and answers
Is my data lost when a CSV opens in one column?
No. The file is unchanged; Excel only used the wrong separator. Close it without saving and open it again with one of the methods above.
Why does the same file open fine on another computer?
That computer expects a different separator because of its country settings. Excel uses that setting when a CSV is double-clicked.
Which separator should I use for my own CSV files?
Use whatever the program you send the file to expects. Commas are the most widely accepted. Semicolons are common in countries that write decimals with a comma.
Can I fix this on my phone?
The Excel app on phones doesn't have Text to Columns. Use Google Sheets in a browser, or open the file in MyDataFixer's CSV to Excel, which works on phones and tablets.
Does MyDataFixer upload my file?
No. The file is read and converted in your browser, on your device. Its contents are not sent to any server.