CSV to Excel Converter
Convert CSV/TSV files to Excel (.xlsx) format. Files are processed entirely in your browser and never sent to a server.
What Is a CSV to Excel Converter?
A CSV to Excel converter takes comma-separated (CSV) or tab-separated (TSV) plain text data and turns it into a file in Microsoft Excel's native ".xlsx" format. CSV data that looks garbled or misaligned when opened in a plain text editor — columns running together, encoding artifacts, no visual structure at all — becomes a properly formatted, ready-to-read table the moment it's converted.
Every step of the conversion happens locally, right inside your browser. Nothing you paste or upload is ever transmitted to a server for processing. That means even sensitive spreadsheets — customer contact lists, internal sales figures, payroll exports, or anything else you wouldn't want to send over the internet — can be converted with complete peace of mind, since the data never leaves your device.
How to Convert CSV to Excel
- Choose the delimiter that matches your data Select comma-separated or tab-separated depending on how your source file is formatted. If you're not sure which one you have, load the sample data first to see what each delimiter looks like.
- Paste your CSV or TSV data Paste the raw text directly into the input textarea, or click "Load Sample" to see the tool in action with example data before using your own.
- Check your input No preview is shown on screen, so check the pasted text itself for misaligned columns. If any values contain commas or line breaks, make sure those values are enclosed in double quotes.
- Download the Excel file Click the "Download Excel File" button to save the result as an .xlsx file.
Tips for getting more out of it
- The sheet in the generated Excel file is always named "Sheet1". If you need multiple sheets, adjust them manually in Excel after downloading.
- Because this tool converts text that you paste in, the character encoding of the original CSV file does not affect the result. If the text is already garbled before you paste it, reopen the file in a text editor with the correct encoding (a legacy encoding such as Shift_JIS or Windows-1252, for example) and copy it again.
- Values that can be treated as numbers exactly as written (such as 30 or -4.5) are saved as numeric cells, so you can total them with SUM and similar functions right away in Excel. Values with leading zeros (0123), values that look like dates (1-2), numbers with 16 or more digits and the like are saved as text cells, so leading zeros are not dropped and nothing turns into a date when you open the file in Excel.
- File contents are processed entirely in your browser (client-side) and are never uploaded to a server, so it's safe to use even with sensitive data.
When This Tool Comes In Handy
Sharing exports from legacy or internal systems
Many in-house business systems and older databases can only export data as CSV. When a colleague, client, or manager only works in Excel, converting first avoids back-and-forth confusion over "the file won't open right."
Fixing encoding trouble from overseas SaaS exports
CSV files exported from software built outside your region sometimes use an encoding that displays as broken characters when double-clicked open in Excel. Converting through this tool first gives you a working Excel file without needing separate encoding-repair software.
Preparing raw data for filtering, sorting, or charts
Rearranging rows, applying filters, or building a chart directly from a raw CSV file in a text editor simply isn't possible. Converting to .xlsx first gives you a real spreadsheet where Excel's built-in tools work as expected.
Converting data with leading zeros, such as postal or product codes
Values that start with 0 are saved as text cells, so the leading zeros are not lost the way they can be when you open a CSV directly in Excel.
Glossary
- CSV
- Short for Comma-Separated Values — a plain text format where each line represents a row and commas separate the individual column values.
- TSV
- Short for Tab-Separated Values — functionally identical to CSV, except a tab character is used to separate columns instead of a comma. Useful when the data itself contains commas.
- xlsx
- The default file format for Excel 2007 and later, based on the Office Open XML (OOXML) standard. Structurally, it's a ZIP archive containing a set of XML files that describe the workbook's sheets, styles, and data.
- Character encoding
- The scheme used to encode text data when it is saved. If a CSV file is saved in a legacy encoding such as Shift_JIS or Windows-1252, the text will appear garbled unless you specify the correct encoding when opening it in a text editor.
- Cell format
- The display rule Excel applies to a cell's contents — as a number, date, or plain text, for example. Setting a column's cell format to "Text" after conversion is the standard way to preserve leading zeros that Excel would otherwise strip.
Frequently Asked Questions
Side Note — Why Does Excel "Break" CSV Data?
The way Excel "helpfully" converts values into dates when it opens a CSV file has frustrated data engineers around the world for years. Strings such as "1-2" or "3/4" are automatically interpreted as dates and can no longer be restored to their original form. For the sake of backward compatibility the default behavior went unchanged for a long time, but in October 2023 an "Automatic Data Conversion" setting that lets you turn off these conversions individually was rolled out broadly in Excel for Windows and Mac (after an early release to Insiders in 2022).
This problem was most damaging in the field of genomics research. It had already been reported in 2004, yet a 2016 survey by Ziemann et al. found that about 20% of papers that published gene lists as supplementary Excel files (704 out of 3,597) contained gene names corrupted by automatic conversion. For example, the gene name "SEPT2" (Septin-2) would be turned into "2-Sep" (September 2). In response, the HUGO Gene Nomenclature Committee (HGNC) took the unusual step in 2020 of renaming the genes most prone to this problem.
The ".xlsx" format used by Excel today is actually a ZIP-compressed collection of multiple XML files (Office Open XML, or OOXML). Adopted starting with Office 2007, this format's specification is publicly documented, unlike the older proprietary binary ".xls" format, which makes it far easier for other software to read and write. This open specification is a major reason why open-source libraries like SheetJS — which this tool uses — can generate .xlsx files even without Excel installed.