CSV to Excel
Convert CSV to Excel in your browser: choose one .csv, .tsv or .txt file up to 50 MB, or paste CSV text. Download one .xlsx sheet; text mode is on by default to preserve leading zeros and IDs.
🔒 Your CSV is converted inside your browser and is not uploaded to any server.
How to use
- Add your CSV: Drop one .csv, .tsv or .txt file onto the box or click to choose it — one file at a time, up to 50 MB. You can also skip the file entirely and paste CSV straight into the text box below.
- Check the separator and encoding: Separator is set to Detect automatically; pick Comma, Semicolon or Tab yourself if the guess is wrong. Switch Source encoding (file) to Windows-1252 when accented letters come out as nonsense, or back to UTF-8 if they still do.
- Decide how numbers are stored: Leave Keep long digit strings as text on so ZIP codes, phone numbers and account numbers stay exactly as written. Turn it off when you need to total a column in Excel. Auto column width is on by default.
- Convert and save: Click Convert to Excel. The line above the result gives the file name with the row and column count, then you download the .xlsx. On a phone, Save to device opens the system share sheet when the browser offers file sharing and simply downloads the workbook when it doesn't.
How this CSV to Excel converter works
This CSV to Excel converter turns one CSV, TSV or TXT file up to 50 MB, or pasted CSV text, into an XLSX workbook with one sheet named Sheet1. Every cell is text by default to preserve leading zeros and IDs; processing stays in your browser.
A CSV file is plain text; an .xlsx workbook is a small zip archive full of XML, and that rewrite happens on your own machine. Your file is read straight from disk into memory and the workbook is built and saved from there, so the rows themselves are never sent to a server. The one thing that does travel is code: the spreadsheet writer (SheetJS) is fetched the first time you press Convert to Excel, and comes from the browser cache after that.
Choosing a file decodes it and fills the box, so you can delete a junk row or fix a header before converting. As soon as you type in the box it detaches from the file's bytes — a later encoding change can no longer overwrite your edit, while the file name, and with it the download name, stays. Changing the file, the text or any option clears an existing result, so what you download always matches the settings on screen.
The worksheet name is fixed: there is no field for renaming it. The download is named after your source file with the extension swapped, so sales-export.csv becomes sales-export.xlsx, and pasted text is saved as data.xlsx. Characters that file systems reject are replaced with hyphens and the name is capped at 80 characters. A workbook can't be shown on the page the way a PDF or an image can, so the result area is a plain card with the file name and a download button.
Keep leading zeros, phone numbers and long IDs intact
Keep long digit strings as text — ON (default): every cell is text · 007, 0001 and long ID numbers stay exact · SUM() ignores them OFF: 1250, -42, 3.5 and 0 become real numbers you can total · 007, 1e5 and 3.50 stay text · a long digit string becomes a number if JavaScript writes it back the same way
This is the reason to convert a CSV instead of double-clicking it. Keep long digit strings as text is on by default, and it writes every cell as text: 007 stays 007, 0001 keeps all three zeros, and a 17- or 20-digit account number stays digit for digit instead of collapsing into something like 1.23457E+12. ZIP codes, SKUs, IMEI numbers, bank accounts and tracking codes all come through as written.
The price is that a text cell is not a number, so SUM() will not add those columns up. Turn the switch off when you need arithmetic, and only values that can be written back identically become numbers: 1250, -42, 3.5 and 0 do. Anything with a leading zero stays text, and so do spellings like 1e5 or 1 250 with a space. Even 3.50 stays text, because a number would come back as 3.5 — a different string from the one in your file — which is handy for price columns that must keep their trailing zero. Digit count is not what protects a code, though: with this option off, a long digit string can become a numeric cell if JavaScript converts it back to the same string. Keep the option on for phone numbers and IDs.
Either way, the workbook is written with Excel's "number stored as text" warning suppressed across the used range, so you don't open a sheet covered in green triangles. That comes from the spreadsheet writer rather than from the switch, and it is added whichever way the switch is set. If you decide later that one text column should be numeric, select it in Excel and use Text to Columns or Convert to Number.
Semicolon CSV, tabs, and files that look garbled
Separator starts at Detect automatically, and detection reads only the first record: it counts commas, semicolons and tabs that sit outside quotes and takes whichever is most common. A tab-separated .tsv therefore needs no setting at all. A tie goes to whichever comes first in the order comma, semicolon, tab — so a first line with one semicolon and one tab is read as semicolon-separated — and a first record containing none of the three falls back to comma.
Reading only the first record is also the limitation. When a semicolon header sits above comma-separated rows, detection follows the header and everything lands in one column; choose Comma yourself in that case, which skips detection entirely. Only comma, semicolon and tab are offered, so a pipe-separated export has no matching setting and arrives as a single column. A file that both starts with blank lines and uses bare carriage returns as line breaks also falls back to comma and needs the manual setting.
Source encoding (file) decides how the bytes are decoded, and only for a file you chose — pasted text never goes through it, and the dropdown is greyed out while there are no file bytes to re-read. A file is read as UTF-8 first; if more than 1% of the result comes out as replacement characters, it is re-read as Windows-1252 and the page says so, which is usually what an older spreadsheet export from a Western European system needs. Switching the setting by hand decodes the same bytes again. Read as UTF-8, a byte-order mark is swallowed and never becomes part of the first cell; read as Windows-1252, that same mark turns into three odd characters in front of cell A1 — the clearest sign that the file is really UTF-8 and the setting should go back.
What the workbook keeps — and what it can't
Preserved: every character of every field · leading and trailing spaces · accented and non-Latin text and emoji · line breaks inside quoted fields · the order of rows and columns Not preserved: blank rows (a record that parses down to one empty field) · formatting, fonts, colours, formulas, merged cells, extra worksheets, charts, comments · the source encoding · the original separator Conversion stops when: the CSV has more than 1,048,576 rows · or more than 16,384 columns · or one cell holds more than 32,767 UTF-16 code units
Quoted fields are parsed the way the CSV standard (RFC 4180) describes rather than split on commas, so "Smith, Jane" is one cell and a doubled "" inside quotes becomes a single quote character. What a CSV never had cannot appear, so the workbook holds values, column widths and the sheet name and nothing else. Row 1 is treated as row 1 — nothing is frozen, bolded, filtered or marked as a header. Auto column width sizes each column to its longest value, between 8 and 60 characters wide, counting CJK and full-width characters as two; switching it off writes no column widths at all.
Blank rows deserve a closer look. A record that parses down to a single empty field disappears — an empty line, or a lone "" — so the workbook can end up with fewer rows than the file has lines, while a line holding one space is not empty and is kept, with that space in the cell. When parsing leaves no record at all, no file is produced and you get the "no data records remain" message: that covers an input that is blank once trimmed, and it also covers an input such as a single pair of quotation marks, which is not blank yet still parses to nothing.
The first two stopping points listed above are the limits of the Excel grid, and the page checks them before anything is written: it reports the row and column count it read, asks you to split the CSV into smaller files, and offers no workbook for download. The third one comes from the spreadsheet writer, so a single over-long cell fails during writing with the generic error rather than a message about that cell. Other oddities are not reported at all: an unclosed quote near the end of a file swallows everything after it into one cell, and rows shorter than the longest row simply get empty cells on the right.
One file at a time, up to 50 MB: drop several at once and the whole batch is refused with a message naming how many, while pasted text is not measured at all. The tool also does not verify that your input really is CSV — rename a binary file to .csv and it is decoded and converted anyway; the result is meaningless, and whether it fails or produces a few wide columns depends entirely on what those bytes decode to. With text mode on, all fields are written as text. With it off, matching negative numbers such as -42 become numeric cells; other fields beginning with =, +, - or @ remain text rather than formulas. Nothing is rewritten in either direction, so treat a file from an untrusted source with the same care you would give any downloaded spreadsheet.
One last thing worth knowing: every .xlsx carries a fixed skeleton of XML parts, which is why a 224-byte sample of 5 rows and 4 columns measured 16,866 bytes as a workbook, and 16,623 bytes with auto column width off. Those numbers show the fixed overhead, not a ratio you can scale up.
One file at a time: convert each CSV on its own, then combine the .xlsx files into a single workbook with Merge Excel Files.
Everyday jobs, and what to reach for next
The trigger is usually an export: a sales report from a shop platform, a bank statement, a CRM contact dump, survey answers, a payroll extract. They arrive as CSV because CSV is what every system can write, and they get passed on to someone who wants a workbook to filter, sort and email. Converting on purpose, instead of letting a spreadsheet guess on double-click, is what keeps order numbers, postcodes and phone numbers readable at the other end.
Each run handles one file and produces one sheet. Split Excel into Multiple Files breaks a big workbook back into parts. And because the download name follows your source file name, Bulk Rename Files is where to add prefixes or numbering once the conversions are done.
Need the reverse conversion? Export workbook sheets as CSV with Excel to CSV Converter.
How this tool is checked
- The logic behind this tool is covered by 37 automated test cases (hand-checked examples, edge cases and invalid input), and they run again before every release.
- Before each release, a real browser opens this page, runs it on sample files (including a damaged one) and checks the file it produces.
- Your files are processed in your browser and are never uploaded to our server.
- Formulas, figures and definitions are checked against the sources listed at the end of this page.
Frequently asked questions
- Will leading zeros and long phone numbers survive the conversion?
- Yes, with the default settings. Keep long digit strings as text writes every cell as text, so 007 keeps its zeros and a 17- or 20-digit number keeps every digit instead of turning into scientific notation. That covers ZIP codes, SKUs, IMEI numbers, bank accounts and tracking codes.
- Can I convert CSV to XLSX online for free?
- Yes. This CSV to XLSX converter is free and runs in your browser. Choose one file up to 50 MB or paste CSV text, then download the workbook.
- Why can't Excel sum the numbers in the converted file?
- Because every cell is text by default, and SUM() skips text. Turn off Keep long digit strings as text and convert again: values that can be written back identically, such as 1250, -42 and 3.5, become real numbers, while 007, 3.50 and 1e5 stay text. A long digit string is not protected by its length — it becomes a numeric cell if JavaScript converts it back to the same string — so keep the option on for phone numbers and IDs.
- My CSV uses semicolons and everything lands in one column. What do I do?
- Set Separator to Semicolon instead of Detect automatically. Detection reads only the first record, so a file whose header and data rows disagree can be read with the wrong separator. Choosing a separator explicitly skips detection and splits every row the same way.
- The accented characters are garbled. How do I fix that?
- Switch Source encoding (file) between UTF-8 and Windows-1252. The file is read as UTF-8 first and re-read as Windows-1252 automatically when more than 1% of the text comes out as replacement characters. Three odd characters in front of cell A1 mean the opposite: a UTF-8 file being read as Windows-1252.
- Can I convert several CSV files at once?
- No — this tool takes one file at a time. Dropping several files refuses the whole batch rather than silently converting one of them, and a chosen file has to be removed with the ✕ button before you can add another. Convert them one by one, then combine the workbooks with Merge Excel Files.
- Is my CSV uploaded to a server?
- No. The file is read from your device and converted inside the browser, and the download comes from memory on your own machine, so the rows are never sent anywhere. Apart from the page and the converter code itself, nothing travels over the network. Nothing is kept once you close or refresh the tab.
- Why does the workbook have fewer rows than my CSV file?
- Blank rows are dropped. A record that parses down to one empty field — an empty line, or a lone pair of quotation marks — is left out, so the row count can be lower than the number of lines in the file. A line containing a single space counts as data and is kept.
- Does it work on an iPhone or Android phone?
- Yes, in any modern mobile browser. Pick the CSV from Files, Google Drive or your downloads, or paste the text in. When you tap Save to device, the workbook opens your share sheet if the browser supports file sharing, and otherwise downloads straight to the phone.
Related tools
Cite this tool
Using a result in a report, paper or assignment? Copy a ready-made reference.
Gingertool. (2026). CSV to Excel [Online tool]. Retrieved November 27, 2026, from https://gingertool.com/en/file-tools/csv-to-excel/
“CSV to Excel.” Gingertool, November 27, 2026, https://gingertool.com/en/file-tools/csv-to-excel/. Accessed November 27, 2026.
@misc{gingertool-csv-to-excel,
author = {{Gingertool}},
title = {CSV to Excel},
year = {2026},
url = {https://gingertool.com/en/file-tools/csv-to-excel/},
note = {Accessed: 2026-11-27}
}