CSV to Excel and Excel to CSV
How to convert CSV to Excel
- Leave Direction on CSV to Excel (.xlsx) and click Choose a CSV file (.csv, .tsv or .txt).
- Keep the delimiter on Detect automatically, or pick one. The line under the box says which was read, with the row and column count.
- Leave Save plain numbers as numbers ticked, or untick it to keep every cell as text.
- Click Download .xlsx. The workbook has one sheet, named after your file.
- For the other way, change Direction to Excel (.xlsx) to CSV, choose a workbook, pick a sheet, set the delimiter and download the .csv.
What the page does
It converts in both directions, one workbook sheet at a time, using three common libraries: Papa Parse, read-excel-file and write-excel-file. They come from cdnjs and jsDelivr when you first choose a file, never when the page loads, and the browser checks each against a fixed hash. Each direction made two library requests in our log, none with a body. Only Chromium was tested, and nothing was opened in Excel itself: written workbooks were read back with openpyxl, and CSV files byte by byte.
Only .xlsx is supported. Save older .xls and OpenDocument .ods files as .xlsx first.
CSV to Excel: what becomes a number
Each cell is judged on its own, not each column. In our ids.csv test, 00501 stayed text while 94105 in the same column became a number. Text also stayed text for +49 30 1234, 0049301234, the 17-digit ID 12345678901234567 and 1,5. Plain numbers became numbers with trailing zeros dropped: 120.50 became 120.5 and 1e3 became 1000. Untick the number option to keep every cell as typed.
Dates stay text, both 2025-01-03 and 03.01.2025, and so do 12% and TRUE. A cell that starts with an equals sign, such as =1+1, is written as text, never as a formula. Watch the decimal comma: in our semicolon file 120,50 stays text, so Excel will not add it up until you convert it.
Detection read our comma, semicolon, tab and pipe samples correctly. Forcing comma on the semicolon sample gave two columns of broken text, so set the delimiter by hand if a result looks split. Quoted line breaks survived, and a ragged file was padded to its widest row.
Excel to CSV: sheets, dates and formulas
With more than one sheet, a Sheet menu appears and each sheet downloads as its own file. Our test book gave book-People.csv and book-Q2 totals.csv, and its empty third sheet was refused. The page reads stored values, not displayed ones:
- Dates come out as ISO text in UTC, such as
2025-01-03T00:00:00.000Z, or with the time when the cell has one. - A formula comes out as its last saved result.
=B2+1gave2025-01-04T00:00:00.000Z,=D3*2gave 198 and a SUM gave 111.5. - Number formats are dropped. 0.125 shown as 12.50% in the sheet came out as 0.125, and 99 formatted as euros came out as 99.
- Text such as
007stays text, and booleans become TRUE and FALSE. - A stored number with more than 15 digits loses its tail: 12345678901234567 came out as 12345678901234600.
The Protect option adds an apostrophe before text that starts with = + - or @: a text cell =1+1 came out as '=1+1, so a spreadsheet will not run it as a formula when the CSV is opened later.
Accents, the UTF-8 marker and delimiters
For CSV output the UTF-8 marker option is ticked by default. It adds three bytes at the start of the file, which Excel uses to treat a CSV as UTF-8. Our sample came out at 312 bytes with it and 309 without, and Émilie, Zoë, 小明 in the second sheet came out intact. Line ends are CRLF, and the delimiter is your choice.
A round trip matched: comma.csv became an .xlsx and back as the same five lines, and ids.csv came back with 00501, the 17-digit ID and =1+1 unchanged. Only -0, 2.50, 1e3 and 1E-5 changed, to 0, 2.5, 1000 and 0.00001.
Limits and refusals
Both directions accept files up to 25 MB. A 25,116,732-byte CSV with 328,000 rows became a 14,172,038-byte workbook in about 13 seconds, and a 26.8 MB file was refused. A 120,000-row workbook became a 6,642,318-byte CSV in about 2 seconds. The box shows the first 300 KB; Copy and Download give everything.
A damaged .xlsx, a CSV renamed to .xlsx, a legacy .xls and an .ods all gave the same single message. We had no password-protected file to try. A file with a null byte is refused as unreadable text. Excel's limits are checked: we saw refusals for 16,385 columns and for a 32,768-character cell, but not for the 1,048,576-row limit. Characters Excel forbids in a sheet name become spaces, so name:[x]?.csv gave a sheet called name x.
Related conversions
If the CSV is headed for code rather than a spreadsheet, use CSV to JSON, and JSON to CSV goes the other way.
Measured results
| Input | Setting | What came out |
|---|---|---|
| comma.csv, 5 rows | Detect automatically | Comma read; id as numbers, 120.50 as 120.5, dates as text |
| semicolon-eu-decimals.csv | Detect automatically | Semicolon read; 120,50 and 03.01.2025 stay text |
| ids.csv, 13 columns | Numbers on | 00501, +49 30 1234, 17-digit ID, 1,5, =1+1 and dates are text; 94105 and 2.50 are numbers |
| Workbook, People sheet | Defaults | UTF-8 marker, CRLF, 312 bytes; dates in UTC, formulas as results |
| 328,000-row CSV, 25.1 MB | CSV to Excel | 14.2 MB workbook in about 13 s |
When Excel or a script is the better choice
Use Excel, LibreOffice or a script such as pandas for files over 25 MB, .xls or .ods input, several sheets at once, and formulas or formatting that must survive.
Frequently asked questions
Is my file uploaded?
No. The conversion runs in your browser tab. Only the converter libraries are downloaded, and in our log no request had a body.
Why did 007 stay text?
A number would lose its leading zeros, so 007, 00501, phone numbers with a plus sign and IDs of 16 or more digits stay text. Plain numbers in the same column become numbers.
Why are my dates text?
Dates are not guessed going into Excel, because 03.01.2025 means different days in different countries. Coming out, they are ISO text in UTC.
Why do accents look wrong when I open a CSV in Excel?
Excel looks for a UTF-8 marker at the start of the file. Excel to CSV adds one by default. We checked the bytes, not Excel itself.
Can I convert an .xls file?
Not directly. Save it as .xlsx in Excel or LibreOffice first. The same goes for .ods.
Does it export every sheet at once?
No. Pick a sheet, download it, then pick the next. Each file is named after the workbook and the sheet.