How to convert CSV to Excel
To convert a CSV file to Excel, open a blank workbook, go to Data > From Text/CSV, select the file, check the delimiter and encoding in the preview, click Load, then save as Excel Workbook (.xlsx). Importing like this is better than double-clicking the CSV: you control how each column is read, so zip codes keep their leading zero and long IDs keep every digit. Here are the steps in Excel, Google Sheets and LibreOffice, and a one-click option.
Last updated
In Excel, the safe way: import the file
- Open a blank workbook and go to Data > From Text/CSV (Data > Get Data > From File > From Text/CSV in some versions).
- Select the CSV file and click Import.
- In the preview, set File Origin to 65001: Unicode (UTF-8) and check the Delimiter (comma, semicolon or tab).
- If a column holds zip codes, phone numbers or long IDs, click Transform Data, select that column and set Data Type to Text. Then click Close & Load.
- Click Load (if you skipped step 4), then File > Save As > Excel Workbook (.xlsx).
The data lands in an Excel table. To turn it back into a plain range, click in it and choose Table Design > Convert to Range.
The quick way: double-click, then save
Double-clicking a .csv opens it straight in Excel. Choose File > Save As and pick Excel Workbook (.xlsx). It takes ten seconds and works for simple lists, but Excel decides on its own how to read every column. Before you save, check that:
- zip codes, phone numbers and IDs still start with their zeros (02134, not 2134);
- numbers longer than 15 digits did not become 1.23457E+15 or end in zeros;
- dates are in the right order (03/04 can become 4 March or 3 April);
- accented letters are readable (García, not GarcÃa).
If any of these is wrong, close without saving and import the file instead.
Online, in one step
CSV to Excel builds the .xlsx for you: zip codes keep their leading zero, long IDs keep every digit, text that looks like a date stays text, accents display correctly, and plain numbers still become real numbers you can sum. It runs in your browser and the CSV is never uploaded.
Just want to look at the file? The CSV Viewer shows it as a table without converting anything.
In Google Sheets
- In a blank sheet, choose File > Import > Upload and select the CSV.
- Leave Separator type on Detect automatically, and untick “Convert text to numbers, dates, and formulas” to keep codes and IDs as written.
- Click Import data.
- Choose File > Download > Microsoft Excel (.xlsx).
In LibreOffice Calc
- Open the CSV. The Text Import dialog appears.
- Set Character set to Unicode (UTF-8) and tick the right separator. Click a column header in the preview and set its type to Text for codes and IDs.
- Click OK, then File > Save As and choose Excel 2007-365 (.xlsx).
What changes when CSV becomes Excel
| CSV | Excel (.xlsx) | |
|---|---|---|
| Content | Text only, one table | Values, formulas, formatting, many sheets |
| Column types | None, everything is text | Numbers, dates, text per cell |
| Rows | No limit in the format | 1,048,576 per sheet |
| Opens in | Any program, any text editor | Excel, Sheets, LibreOffice, Numbers |
A CSV bigger than an Excel sheet? Cut it with the CSV splitter. Several CSV files with the same columns? Combine them with Merge CSV files first. Need the reverse? Read How to convert XLS or XLSX to CSV.
Frequently asked questions
Can I just open the CSV in Excel and save it as XLSX?
Yes, double-click the CSV, then File > Save As > Excel Workbook (.xlsx). It is fine for simple files, but Excel guesses each column while opening, so leading zeros, long IDs and some dates can already be changed by the time you save. Import the file instead when the data matters.
How do I convert CSV to Excel without losing leading zeros?
Import the file with Data > From Text/CSV, click Transform Data, set the zip code, phone or ID column to Text, then Close & Load and save as .xlsx. Or use a converter that keeps such columns as text, like PrivateCSV's CSV to Excel.
Why is all my data in one column?
The CSV uses a delimiter your Excel does not expect, usually semicolons on an English system or commas on a European one. Import it with Data > From Text/CSV and pick the right delimiter in the preview, or use Data > Text to Columns on the column you already have.
How do I convert CSV to Excel without Excel?
Import the CSV into Google Sheets and choose File > Download > Microsoft Excel (.xlsx), open it in LibreOffice Calc and save as Excel 2007-365, or use an online converter that runs in the browser.
Can I put several CSV files in one Excel workbook?
In Excel, import each CSV into its own sheet with Data > From Text/CSV, then save the workbook. If the files have the same columns and you want one table, merge the CSV files first and convert the result.
Is there a row limit?
An Excel sheet holds 1,048,576 rows. A bigger CSV is cut off when opened. Split it into several files first, or keep it as CSV and browse it in a CSV viewer.