CSV to Excel

Convert a CSV file into an Excel workbook (.xlsx). Phone numbers, IDs and other values with leading zeros are kept exactly as they are.

Your files stay on your device. Nothing is uploaded.

CSV to Excel

One file · up to 50 MB

Step 1: Add a CSV file

Drag and drop a CSV file here

or

CSV, TSV or TXT. Up to 50 MB.

Step 2: Options and preview

Delimiter in your file

Auto looks at the first rows to find the delimiter.

Cell values

Leading zeros and numbers with 12 or more digits always stay as text.

Step 3: Convert

How to convert CSV to Excel

  1. Add your CSV file

    Click Choose CSV file or drag the file into the box. TSV and TXT files with the same layout work too.

  2. Check the preview

    The delimiter is found for you. If the columns in the preview look wrong, pick the delimiter yourself. Choose whether numbers are stored as numbers or every cell as text.

  3. Convert and download

    Click Convert to Excel. When it says Done, click Download XLSX.

About this tool

How each value is stored

Excel removes the 0 from 03001234567 and shows long numbers like 9.23001E+11 when it opens a CSV. This converter decides the type of each cell itself, so nothing is lost:

Value in the CSVStored in Excel as
42, -7, 3.25Number
1.50Number, shown as 1.50
007, 03001234567Text (leading zero)
923001234567Text (12 or more digits)
+923001234567, 1,234, 12%, 31/01/2024Text, exactly as written

Choose Everything as text to store every cell as text.

How is the delimiter found?

The converter splits the first 50 rows with a comma, a semicolon, a tab and a pipe (|), and picks the one that gives the same number of columns in the most rows. Commas inside quoted values are ignored. If the first line of the file is sep=; (written by some Excel versions), that delimiter is used. You can always pick the delimiter yourself.

Which text encodings work?

UTF-8 with or without a byte order mark (BOM), and UTF-16 with a BOM (Excel "Unicode Text"). A file that is not valid UTF-8 is read as Windows-1252, the encoding older Excel versions use for CSV on Western European systems. The page tells you when that happens.

What the Excel file contains

One sheet, named after your file, with column widths set to fit the first 1,000 rows. A value that starts with = is stored as text, so no formula from the CSV runs when you open the file.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

Why does Excel remove leading zeros when I open a CSV?

Excel treats anything that looks like a number as a number, and numbers have no leading zeros. Converting to XLSX here stores those cells as text, so 007 stays 007 when you open the file.

Can I convert a CSV that uses semicolons?

Yes. Semicolons are common in countries that write decimals with a comma. Auto finds them, or you can pick Comma, Semicolon, Tab or Pipe yourself.

Are dates turned into Excel dates?

No. Dates stay as text exactly as written. Day and month order differs between countries, so guessing could turn 03/04/2024 from 3 April into 4 March. In Excel, select the column and use Data, Text to Columns to turn it into dates in the order you choose.

Do quoted values with commas and line breaks work?

Yes. Values in double quotes can contain commas, line breaks and double quotes written twice (""), as in the CSV standard (RFC 4180).

How large can the data be?

Files up to 50 MB. An Excel sheet holds at most 1,048,576 rows and 16,384 columns, and a cell holds at most 32,767 characters. The page tells you if your data does not fit.

Can I open the file in Google Sheets or LibreOffice?

Yes. XLSX files open in Excel, Google Sheets, LibreOffice Calc and Apple Numbers.