Skip to main content
SheetTidy

Convert CSV to Excel without losing data

Turn CSV and TSV files into proper .xlsx workbooks, with leading zeros, long IDs and every character intact.

  1. 1
  2. 2
  3. 3
  4. 4

Drop your Excel or CSV file here

XLSX, XLSM, XLS, ODS, CSV, TSV or JSON

Your file never leaves your device

How to use this tool

  1. Step 1: Open your CSV file

    Drop a .csv, .tsv or .txt file onto the tool. The encoding and the separator (comma, semicolon, tab or pipe) are detected automatically.

  2. Step 2: Check the preview

    Make sure names, accents and codes look right in the preview. The summary shows the detected encoding and separator.

  3. Step 3: Choose how numbers are stored

    Plain numbers become real numbers by default so they add up in Excel. Codes with leading zeros always stay as text.

  4. Step 4: Download the .xlsx file

    Click Convert file, then download the Excel workbook and open it in Excel, Google Sheets or LibreOffice.

Why opening a CSV in Excel goes wrong

A CSV file is plain text with no information about types or encoding. When you double-click one, Excel has to guess both, and the guesses quietly change your data:

  • Leading zeros disappear. Customer codes, PIN codes, ZIP codes and phone numbers such as 0110001 become 110001.
  • Long numbers are rounded. Excel stores 15 significant digits, so a 16-digit card or account number becomes something like 1.23457E+15, and the last digit is replaced with a zero even after you change the format.
  • Characters break. A UTF-8 file without a byte order mark is often read with the wrong encoding, so “José” becomes “José”, “₹” becomes “₹” and Hindi or Gujarati text turns into symbols.
  • Text turns into dates. Values such as “1-2” or “MAR1” are converted to dates.
  • Everything lands in one column. If the file uses semicolons but your computer’s list separator is a comma (or the other way round), Excel does not split the columns.

Once the workbook is saved, these changes are permanent.

How to import a CSV correctly in Excel

From Text/CSV

  1. Open a blank workbook and choose Data › From Text/CSV.
  2. Select the file. In the preview, set File Origin to 65001: Unicode (UTF-8) if the characters look wrong, and check the Delimiter.
  3. Set Data Type Detection to Do not detect data types so codes keep their zeros, or click Transform Data and change the code columns to Text.
  4. Click Load.

This imports the data as a table linked to the file. Right-click the table and choose Table › Convert to Range if you want a plain sheet.

The legacy Text Import Wizard

If you prefer the older wizard, enable it under File › Options › Data › Show legacy data import wizards, then use Data › Get Data › Legacy Wizards › From Text (Legacy). In step 3, select each code column and set Column data format to Text.

Turn off automatic conversions

Recent versions of Excel for Microsoft 365 include File › Options › Data › Automatic data conversion, where you can stop Excel removing leading zeros, shortening long numbers and converting text to dates. It only affects files you open after changing it.

Where this converter helps

Exports from banking, payroll and e-commerce systems. These often contain account numbers, order IDs and PIN codes that must keep every digit.

Customer lists in several languages. Names in Hindi, Gujarati, Spanish or French come through intact, whether the file was saved as UTF-8 or as Windows-1252 by an older program.

CSVs from European systems. Files that use semicolons as separators and commas as decimal marks are split into the right columns.

Sharing with people who do not use CSV. An .xlsx file opens the same way on every computer, without import dialogs.

How the conversion works

  • Encoding is detected from the bytes: UTF-8 with or without a byte order mark, or Windows-1252.
  • The separator is detected from the first lines: comma, semicolon, tab or pipe. Quoted values containing separators or line breaks are handled.
  • Values are read as text first, exactly as written. Then, if “Store numbers as numbers” is on, plain numbers such as 1250 or -3.5 become real numbers.
  • Anything that would lose information stays text: values with leading zeros, numbers with commas or currency symbols such as 1,00,000 or ₹ 2500, and anything longer than 15 digits.
  • Dates stay as written. To turn text dates into real dates afterwards, select the column in Excel and use Data › Text to Columns, choosing the date order (for example DMY) in the last step.

The workbook has one sheet named after your file. Formatting, colours and formulas do not exist in CSV, so there is nothing to lose there.

Troubleshooting

Everything is still in one column. The file may use a separator other than the four detected ones, or contain only one column. Open it in a text editor such as Notepad to see what separates the values.

Some characters still look wrong. The converter reads UTF-8 and Windows-1252, which covers almost every CSV. Files saved in other encodings, such as UTF-16 or Shift-JIS, should be re-saved as UTF-8 in a text editor first.

Numbers with commas are still text. Values such as 1,00,000 or ₹ 2500 are kept exactly as written so nothing is lost. In Excel, a formula such as =VALUE(SUBSTITUTE(A2,",","")) turns grouped numbers like these into real numbers; remove currency symbols first with Find and Replace (Ctrl+H).

The preview shows an extra empty column. A trailing separator at the end of every line creates one. Run Remove blank rows afterwards; it also removes columns with no header and no values.

Going the other way

To turn a workbook back into a CSV that opens correctly everywhere, use the Excel to CSV converter. For old .xls workbooks, the XLS to XLSX converter upgrades them to the modern format.

Frequently asked questions

Why does Excel remove the leading zeros from my CSV?

When you double-click a CSV, Excel guesses the type of every value. "00123" looks like a number, so it is stored as 123. This converter keeps any value with a leading zero as text, so the zeros survive.

Why do accented letters or the rupee sign look wrong when I open a CSV?

The file is UTF-8 but Excel opened it with a different encoding, so ₹ appears as "₹". This converter detects UTF-8 and Windows-1252 files and stores the text correctly in the workbook.

My CSV uses semicolons. Will it still work?

Yes. Commas, semicolons, tabs and pipes are detected from the file itself, so CSVs saved in European formats convert correctly.

Will long numbers such as card or account numbers be safe?

Yes. Values longer than 15 digits are kept as text, because Excel can only store 15 significant digits in a number and would replace the rest with zeros.

Are dates converted to Excel dates?

Dates are kept exactly as written in the CSV. A date such as 03/04/2024 could be March or April, so the converter does not guess.

Is there a size limit?

Files up to 200 MB can be converted. A 100,000-row CSV usually converts in a few seconds, depending on your device.

All convert tools