CSV to Excel
Turn CSV into .xlsx — paste the text or pick a file. Runs in your browser, nothing is uploaded (30 MB).
What is CSV to Excel
CSV to Excel conversion maps comma-separated rows onto cells and builds an .xlsx workbook. Columns that look numeric are written as numbers, everything else stays text, so plan on adjusting formats after import. The delimiter is detected automatically (comma, semicolon or tab), which means European semicolon CSV files and TSV exports can be dropped in as-is.
File
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
How the CSV is read
The parser is RFC 4180 compliant: it honours quoted fields, doubled quotes inside them, and line breaks that fall inside a quoted value. That last case is where naive converters break — an address field containing a newline is one row, not two, and it stays one row here.
The delimiter is detected from the first few lines rather than assumed. Comma, semicolon, tab and pipe are all recognised, which matters because Excel on a European locale writes semicolons by default. If detection guesses wrong on a one-column file, the separator can be set explicitly.
Encoding is read as UTF-8 first, then retried as Windows-1252 if the bytes are not valid UTF-8. This covers the two encodings that account for almost every mojibake report. A BOM at the start of the file is stripped so it does not become part of the first header cell — a bug that makes the first column impossible to reference by name later.
What the generated workbook contains
Every value is written as text unless it is unambiguously numeric. That is deliberate: converting 007 to 7, or 1-2 to a date, silently corrupts identifiers. Numbers with a single leading zero, values that look like dates, and long digit strings (order numbers, IBANs) stay text so they round-trip unchanged.
The first row becomes the header row and is frozen and bolded so it stays visible when scrolling. Column widths are estimated from the longest value in each column, capped so a single 400-character cell does not produce an unusable sheet.
The result is a real .xlsx written by SheetJS, not an HTML table with an .xls extension. Excel opens it without the «the file format and extension don't match» warning, and formulas, filters and pivot tables behave normally on top of it.
Fixing the two things that usually look broken
Numbers arrive left-aligned, which means Excel stored them as text. Either the source had quotes around every value, or a thousands separator was present. Use Data → Text to Columns with the comma delimiter, or VALUE() on a helper column, to convert them.
Dates arrive as text in an ambiguous format. 03/04/2026 is March 4th in the US and April 3rd in most of Europe, and no converter can tell which you meant. Convert with DATEVALUE plus an explicit format, or split the parts and rebuild with DATE(year, month, day).
If every row landed in column A, the delimiter was not what the file actually used. Re-run with an explicit delimiter; if the file is fixed-width rather than delimited, no delimiter will help and the data needs a fixed-width import in Excel itself.
How to use it
- 1.Paste CSV text or pick a .csv file
- 2.Check the delimiter (auto usually works)
- 3.Run it, then download the .xlsx
How CSV to Excel works under the hood
An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.
- 1
Read the file as bytes
The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.
- 2
Unzip and parse the workbook
SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.
- 3
Rebuild rows in memory
Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.
- 4
Write the output locally
The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.
Processing pipeline
Why formulas arrive as values
A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.
What has no CSV equivalent
Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.
Where it gets slow
Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.
Verify it yourself
You do not have to take this on faith. Run the tool once with DevTools open.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Can I paste instead of uploading?
Yes. Paste the CSV text into the box, or choose a .csv file — if a file is selected it takes priority over the text.
My CSV uses semicolons, not commas.
Leave the delimiter on auto. The first line is scanned and whichever of comma, semicolon or tab appears most often wins. You can also force comma or semicolon.
Will I get garbled characters?
UTF-8 CSV files read correctly. CSV files exported from Excel in Shift_JIS will be garbled — re-save them as “CSV UTF-8” in Excel first.
How are numbers and dates handled?
Values that parse as numbers become numeric cells; everything else becomes text. Dates stay text, so set the column format to Date in Excel if you need real dates.
What this kind of conversion cannot keep
Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.
More in Spreadsheets & Docs
On this page
- What is CSV to Excel
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →