CSV to Excel
Convert CSV or TSV into a proper .xlsx workbook.
Updated
Add your files
CSV, TSV, TXT
How to convert CSV to Excel
- 1
Add one or more .csv, .tsv or .txt files.
- 2
Leave Delimiter on Detect, or choose Comma, Semicolon, Tab or Pipe when the guess is wrong. With several files, keep One sheet per file on to get a single workbook, or switch it off for one .xlsx per file.
- 3
Press Convert CSV to Excel and download the result: a single file comes back as an .xlsx under its own name, and several files with One sheet per file on become workbook.xlsx.
- Use Excel to CSV when you are going the other way, from a workbook to one CSV per sheet.
- Use Excel to PDF when the table should become a readable PDF page rather than a spreadsheet.
Delimiters, quotes and typed cells
The file is read as text in your browser and cut into rows at line breaks, with carriage returns ignored so Windows and Unix line endings both work, and into cells at the delimiter. A field in double quotes can hold the delimiter and line breaks, and two quotes in a row inside it stand for one. Each cell is then typed: a value that is only a sign, digits and an optional decimal part is written as a number, with a format that keeps its decimal places; everything else is written as text exactly as it came. A number of more than 15 digits is also kept as text, so an order number or a card number of that length keeps every digit.
One workbook or one file per CSV
With one file, the result is an .xlsx named after it with one sheet. With several files and One sheet per file on, they become one workbook.xlsx with a sheet per file, named after each file and cut to 31 characters; with the toggle off, each file becomes its own .xlsx. The sheets hold plain values only: no column widths, formulas, styles or frozen headers are created.
Questions about CSV to Excel
How is the delimiter detected?
From the first non-empty line: the tool counts the commas, semicolons, tabs and pipes in it and takes the most frequent; when the line has none of them, a comma is assumed. A file whose first line is a title without separators can therefore be read wrongly on Detect, so choose the delimiter yourself for such files. Quoted fields are honoured: a separator inside quotes does not split the field, and a doubled quote inside them stands for one quote character.
Are numbers stored as numbers?
Plain numbers are. An optional minus sign, digits and an optional decimal part, such as 42, -3.5 or 1200.00, become number cells, and a decimal keeps the number of places it had as its cell format. Anything else stays text: dates, 1,200 with a thousands separator, 5%, $9.99, 1e5, a number with a leading zero such as 007, and a number of more than 15 digits.
What happens to blank lines and empty files?
A line with nothing but separators or spaces is dropped. A file with no data in it is skipped with a note, and when every file is empty the run stops with "No data was found in those files." Sheet names are the file name without its extension, cut to 31 characters.
Advertisement
Related to CSV to Excel
- Excel to CSVExport every sheet of a workbook as CSV.
- Excel to PDFTurn a spreadsheet into a readable PDF table.