Home/Free tools
Free tool
CSV to Excel and Google Sheets converter
Paste a CSV or choose a file and get a clean .xlsx that opens the same way in Excel and Google Sheets. The converter finds the separator and the encoding, keeps leading zeros and long numbers as text, removes empty rows and stray spaces, and shows you which rows do not line up. Everything runs in your browser; the file is not uploaded.
Or drop a .csv, .tsv or .txt file here.
- Rows
- 4
- Columns
- 5
- Separator
- comma
2 cells look like numbers but are kept as text in the .xlsx, so nothing is lost (leading zeros, or more than 15 digits).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | ZIP code | Barcode | Amount | Note |
| 2 | 1001 | 02134 | 5941234567890 | 19.90 | Gift wrap, red |
| 3 | 1002 | 10001 | 0012345678905 | 7.50 | |
| 4 | 1003 | 94105 | 5941234567906 | 120.00 | Says "leave at the door" |
The .xlsx works in Excel and in Google Sheets (File → Import). The CSV for Excel is UTF-8 with a BOM; its separator is a semicolon when the decimal mark is a comma, otherwise a comma.
What the converter does
- Reading the CSV. It follows RFC 4180: a field in double quotes can hold the separator, line breaks and quotes, and a quote inside a quoted field is written twice (
""). It also reads files that bend the rules: lines ending in CR only, a quote in the middle of a field, text after a closing quote. - Separator. “Detect” tries comma, semicolon, tab and vertical bar on the first 50 rows and keeps the one that gives the most rows with the same number of columns. If the table looks wrong, pick the separator yourself.
- Encoding. For a file, it reads the byte order mark (BOM) if there is one, then tries UTF-8. If the bytes are not valid UTF-8, it reads them as Windows-1250, the Central European code page of older Windows exports. Pick another encoding if letters still look wrong.
- Numbers and text in the .xlsx. A cell becomes a number only when nothing can be lost: digits with an optional minus sign and decimal mark, no leading zero, at most 15 significant digits. Postcodes like 02134, phone numbers, barcodes that start with 0, card or order numbers longer than 15 digits, dates and amounts with thousands separators stay text, exactly as written. Tick “Keep every cell as text” to skip numbers altogether.
- Formulas. In the .xlsx, a cell that starts with
=,+,-or@is stored as text, never as a formula. The CSV download writes cells as they are, so Excel may still read such a cell as a formula. - Cleaning. Every change is counted under the result. Old code pages such as Windows-1250 and ISO-8859-2 have only ş and ţ with a cedilla; Romanian uses ș and ț with a comma below, and the last option swaps them.
Text copied from a PDF or a chat app full of odd spaces? Use the invisible character remover.
In our Google Sheets function reference: SPLIT · IMPORTDATA · all functions.
Opening the result in Google Sheets
Google's help page lists .xlsx, .csv, .tsv and .txt among the files that File → Import accepts (Import data sets & spreadsheets, read on 29 November 2026). Import the .xlsx and the text cells stay text.
If you import a CSV directly instead, Google lets you choose the “Separator character”: Detect automatically, Tab, Comma or Custom.
To pull a CSV from a public link into a sheet and keep it updated, Sheets has the IMPORTDATA(url) function, which imports data at a URL in .csv or .tsv format.
Opening the result in Excel
Microsoft's help says that when Excel opens a .csv file, it uses the current default data format settings to interpret each column, and gives keeping leading zeros as an example of when you need the Text Import Wizard instead (Import or export text (.txt or .csv) files, read on 29 November 2026). The .xlsx from this page avoids that step: the cells already have their type.
Microsoft also says a CSV encoded with UTF-8 opens normally if it was saved with a BOM (Opening CSV UTF-8 files correctly in Excel). The “CSV for Excel” download is written that way.
The same Microsoft page gives the limit of 1,048,576 rows and 16,384 columns. The converter warns you when a file is bigger.
Questions and answers
Why does Excel remove the zeros at the start of my numbers?
Because Excel decides the type of each column when it opens a CSV, and 007 becomes the number 7. Convert the file here and open the .xlsx: those cells are stored as text, so the zeros stay.
Why do I see characters like é or ș instead of letters?
The file was read with the wrong encoding, usually UTF-8 read as an older code page. Choose the file here, check the encoding shown under the result and change it if the letters look wrong. The CSV for Excel download is UTF-8 with a BOM.
My CSV uses semicolons. Will it work?
Yes. The converter detects comma, semicolon, tab and vertical bar. Many exports from European software use a semicolon because the comma is their decimal mark.
How do I get the CSV into Google Sheets?
Download the .xlsx and use File → Import in Google Sheets, or use “Copy as a table” and paste into a sheet. When you paste, the spreadsheet may still change values like 007, so use the .xlsx when you need leading zeros.
Is my file uploaded anywhere?
No. The file is read and converted in your browser, and the downloads are made there too. The page only remembers your settings (separator, decimal mark, options) in this browser.
Sources
RFC 4180, the CSV format · Google: Import data sets & spreadsheets · Google: IMPORTDATA · Microsoft: Import or export text (.txt or .csv) files · Microsoft: Opening CSV UTF-8 files correctly in Excel
Help pages read on 29 November 2026.