Toolbaro

CSV Encoding Converter

Fix CSV files that show characters like é or ’ in Excel. Detects the encoding (UTF-8, Windows-1252, Shift_JIS, EUC-KR) and converts to UTF-8 with BOM, which Excel opens correctly. Batch conversion, no upload.

Drag & drop here · .csv .tsv .txt · multiple files at once

Files never leave this device. Everything is converted in your browser.

Save as
For older software that cannot read UTF-8. Characters the encoding cannot store are listed before you save.
Delimiter
Line breaks

Why Excel garbles CSV characters

A CSV file is plain text, and it usually does not say which character encoding it uses. When you double-click a CSV, Excel for Windows reads it with the system code page, which is Windows-1252 in the US and Western Europe.

Most web apps, Google Forms, online stores and database tools export CSV as UTF-8. Read as Windows-1252, “café” turns into “café”, a curly apostrophe turns into “’”, and Chinese, Japanese or Korean text becomes a row of accented letters. The reverse also happens: a Windows-1252 CSV saved by Excel shows “�” in Google Sheets and in apps that expect UTF-8.

If a UTF-8 file starts with a byte order mark (BOM, the three bytes EF BB BF), Excel recognizes it as UTF-8 and shows every character correctly. That is what “UTF-8 with BOM (for Excel)” produces.

How to use

  • Press “Choose CSV files” or drag files onto the page. You can add several at once.
  • The tool detects each file’s encoding and previews the first 20 rows. Check that the text looks right. If it looks garbled, pick another “Source encoding”.
  • Choose a format under “Save as”. For a file you will open in Excel, keep the default, “UTF-8 with BOM (for Excel)”.
  • Press “Download”. The file keeps its name with the format added (for example orders-utf8bom.csv). With several files, “Download all (ZIP)” saves them in one ZIP.

Which format to choose

  • UTF-8 with BOM: shows correctly in Excel for Windows and Mac, Google Sheets and Numbers. Choose this if you are not sure.
  • UTF-8 (no BOM): for files you upload to web apps or databases or read in code. Some programs read the BOM as a character and add an invisible character to the first column name, so use this for them.
  • Windows-1252 (ANSI): for older Windows software that only reads “ANSI” files. Characters it cannot store, such as emoji, CJK text or some symbols, are listed before you save, and they are saved as ?.
  • Delimiter and line breaks: choosing Tab gives a TSV (.tsv) file. Line breaks default to CRLF, as Excel for Windows writes them. Line breaks inside a cell are left as they are.

Open a UTF-8 CSV in Excel without converting it

You can also tell Excel which encoding to use when it imports the file. These steps are for Microsoft 365 and Excel 2016 or later.

  • Open a blank workbook and go to Data > From Text/CSV.
  • Pick the CSV file. In the preview window, set File Origin to “65001: Unicode (UTF-8)”.
  • Check the delimiter and press Load. For columns with leading zeros, such as ZIP codes or phone numbers, choose Transform Data and set the column type to Text so the zeros stay.
  • When you save a CSV from Excel, choose “CSV UTF-8 (Comma delimited) (*.csv)” under Save As. Excel writes UTF-8 with a BOM, so the file opens correctly next time.

Google Sheets, Mac and semicolon CSV files

  • Google Sheets reads UTF-8 with or without a BOM. A Windows-1252 file shows “�” in place of accented letters, so convert it to UTF-8 first and then use File > Import.
  • Excel for Mac can garble UTF-8 CSV files without a BOM. Convert them to UTF-8 with BOM.
  • Semicolons: in many European regional settings, Excel uses a semicolon as the list separator and opens comma CSV files as a single column. Set the delimiter to Semicolon to make a file that opens there, or to Comma to convert a semicolon file for other programs.

Fixing text that was saved already garbled

Sometimes the garbled text itself gets saved. If a UTF-8 file is opened as Windows-1252 and saved again, “café” is stored as “café”. When the tool finds text like this, it offers “Restore garbled text” and shows the restored text in the preview.

This works only when every byte of the original text is still there, which is usually the case for “é” and “’”. Text that was replaced by “?” or “�” has lost the original bytes and cannot be restored, so download the original file again. Characters the tool is not sure about are left unchanged.

FAQ

Are my CSV files uploaded?

No. The files are read and converted in your browser and are not sent anywhere, so customer lists and sales data stay on your device.

What is the difference between UTF-8 and UTF-8 with BOM?

The text is the same. The BOM is a three-byte marker (EF BB BF) at the start of the file. Excel needs it to recognize UTF-8. Some programs read it as a character and add an invisible character before the first column name, and for those you should choose UTF-8 without BOM.

Why does Excel show é or ’ instead of é and ’?

The file is UTF-8, but Excel read it as Windows-1252, so each two- or three-byte character became two or three separate characters. Converting the file to UTF-8 with BOM fixes it.

The detected encoding looks wrong.

Short files can make sense in more than one encoding, so detection can be wrong. Choose another “Source encoding” for that file. The preview updates right away, and you can save once the text looks right.

Excel removes the leading zeros from my numbers.

That is not an encoding problem. Excel converts anything that looks like a number. The zeros are still in the CSV file. Import it with Data > From Text/CSV and set that column to Text to keep them.

Can it convert Excel files (.xlsx)?

No. It handles text files such as CSV, TSV and TXT. In Excel, use Save As and choose “CSV UTF-8 (Comma delimited)” to get a CSV that keeps all characters.

Can I convert several files at once?

Yes. Each file’s encoding is detected separately. “Download all (ZIP)” saves all converted files in one ZIP file.

Which encodings are supported?

It reads UTF-8 (with or without BOM), UTF-16 (as Excel’s Unicode Text export), Windows-1252, Shift_JIS (CP932), EUC-JP and EUC-KR (CP949). It saves UTF-8 with or without BOM, Windows-1252, Shift_JIS and EUC-KR.

Loading…