Convert CSV to an Excel workbook
Opening a CSV file in a spreadsheet program can go wrong in small ways: ZIP codes lose their leading zero and long order numbers turn into 1.23E+15. This converter writes a real Excel workbook (.xlsx) instead, where you decide how values are read: numbers become numbers, unambiguous dates become dates, and anything that could lose digits stays text. The first row can become a bold header that stays in view while you scroll, with filter buttons.
The file is built in your browser, in a background thread, so nothing is uploaded and big files do not freeze the page. For the other direction, use Excel to CSV. To turn CSV into JSON for code, use the CSV to JSON converter, and to cut a huge CSV into smaller files first, use Split CSV.
Leading zeros, long IDs and Excel's 15 digits
Microsoft explains that Excel removes leading zeros and turns large numbers into scientific notation, and that it keeps only 15 significant digits, so any digits past the 15th become zeros (Keeping leading zeros and large numbers). A credit card or tracking number of 16 digits or more can never be a number in Excel without losing its end.
The converter checks each column. If any value in it looks like a number with a leading zero, like 02134 or 007, or has more than 15 digits, the whole column is written as text, and the summary names those columns. Other columns get real numbers, which you can add up and sort.
| CSV value | In the workbook |
|---|---|
| 1234.5 | Number 1234.5 |
| 1,234.50 | Number 1234.5 (with Decimal mark Dot) |
| 1,5 | Number 1.5 with Decimal mark Comma |
| 02134 | Text, and the rest of its column too |
| 4111111111111111 | Text: 16 digits |
| 2026-10-23 | Date |
| 10/23/2026 2:30 PM | Date and time with Also month first |
| $19.99, 12%, +49 30 1234 | Text |
| =SUM(A1:A9) | Text, never a formula |
Dates
Excel stores a date as a serial number counting days, shown with a date format (Date systems in Excel). Written that way, a date sorts and filters as a date. The converter writes dates in the 1900 date system, the default of Excel for Windows, with Excel's built-in short date format, or date and time format when the value has a time. Dates before 1900 stay text, because the 1900 date system starts on January 1, 1900 (Excel specifications and limits).
Year-first dates like 2026-10-23 are always clear. 03/04/2026 is not: it can mean March 4 or April 3, depending on where the file was made. Such dates stay text until you choose Also month first or Also day first, so nothing gets swapped by accident. Dates with a time zone, like 2026-10-23T14:30:00Z, stay text, since an Excel cell has no time zone.
Sheet limits
An Excel sheet holds at most 1,048,576 rows and 16,384 columns, and a cell at most 32,767 characters (Excel specifications and limits). A longer CSV continues on a second sheet with the header row repeated, and the tool tells you when a cell or columns had to be cut. Sheet names follow Excel's rules: at most 31 characters, none of / \ ? * : [ ], and not History (Rename a worksheet); other characters in a file name are replaced with an underscore.
How the CSV is read
The reader follows RFC 4180: fields in double quotes may contain the delimiter, line breaks and doubled quotes. Detect tries comma, semicolon, tab and pipe and picks the one that gives the same number of fields on most lines, so tab-separated TSV text works too. Blank lines are skipped. Files in UTF-8, with or without a byte order mark, and in UTF-16 with a byte order mark are read as such; other files are read as Windows-1252.
How to convert CSV to Excel
- 1Paste CSV into the box, or drop one or more .csv files on it.
- 2Check the preview: the line under each column name says whether it became numbers, dates or text. Adjust dates, decimal mark or delimiter if needed.
- 3Download the .xlsx file and open it in your spreadsheet program.
Guides on this topic
- CSV Shows Wrong Characters in Excel: The UTF-8 BOM Fix
- Excel's 1,048,576 Row Limit and How to Open a Bigger CSV
Frequently asked questions
Is my CSV uploaded?
No. Your browser reads the CSV and writes the .xlsx file on your own device, in a background thread. Nothing is sent to a server, so customer lists and exports with personal data stay private.
Will my ZIP codes and IDs keep their leading zeros?
Yes. A column that contains a value like 02134 or 007 stays text as a whole, and so does a column with numbers longer than 15 digits, such as card or tracking numbers. Excel would cut those to 15 digits and drop leading zeros, so they are written as text cells that keep every character.
Can I put several CSV files into one workbook?
Yes. Drop or open multiple files at once and each becomes its own sheet, named after the file. Pasted data becomes one more sheet. A file with more rows than one sheet can hold continues on extra sheets, each with the header row on top.
Which dates are turned into real Excel dates?
By default only unambiguous dates like 2026-10-23 or 2026-10-23 14:30, year first. A date like 03/04/2026 can mean March 4 or April 3, so it stays text unless you tell the converter which order your file uses: month first or day first. Real dates can be sorted and filtered by date in Excel.
Why did my numbers stay text?
Values with currency signs, percent signs, spaces inside or a leading plus sign stay text, and so do numbers in a column that also holds leading zeros. Numbers with thousands separators like 1,234.50 are converted. If your file writes decimal commas, like 1,5, set Decimal mark to Comma, or leave it on Auto, which picks it for files separated by semicolons, tabs or pipes in which decimal commas are the common form.
Can a CSV run formulas in the workbook?
No. Every value is written as a plain value, never as a formula, so a field like =SUM(A1:A9) appears as that text in the cell and does nothing.
Why do accents look wrong?
The converter reads the file as UTF-8 and falls back to Windows-1252, the usual encoding of older exports, when the bytes are not valid UTF-8. If names still look wrong, pick the encoding by hand under Encoding.