Fix CSV encoding

CSV looks like mojibake or question marks? Choose the source encoding, inspect the actual rows, and save clean UTF-8 CSV with a BOM for Excel.

Formats CSV · TSV · TXTSteps & examples
A decoding wheel turns a messy sheet into an aligned table.

Workspace

Runs locally in your browser. No file upload.

Preset parameters

Input & settings

Choose a file to get startedRead locally · No upload · 20 MiB max

No file selected

Paste text or edit a loaded file

Select a file or paste data to begin.

Data preview

Run the tool to check your output here.

Make CSV text readable in Excel

  1. Choose the original CSV, TSV or TXT file.
  2. Check the source encoding and delimiter against the decoded preview.
  3. Convert to UTF-8 and download the CSV with a BOM.

Worked example

For a GBK CSV that opens as garbled text in Excel, choose the original file, select GB18030, compare the decoded names, then Convert CSV to UTF-8 and Download result. Select semicolon input if all values otherwise appear in one column.

Input and output

Read CSV, TSV or TXT from the original bytes, or paste text, and download normalized UTF-8 CSV with a BOM. Processing stays in your browser; local file input is limited to 20 MiB.

Format and size limits

The output editor previews up to 28,000 characters; the download contains the full processed CSV. Automatic encoding detection is a suggestion, especially for short files.

If processing fails

If characters were already replaced with question marks, changing encoding cannot restore them. Return to the original file. For mismatched columns, check delimiter and quoting before exporting.

Questions about this tool

Why does the output include a BOM?

The UTF-8 byte-order mark helps Excel recognize the encoding when opening the file directly. It does not change the values in your cells.

Can changing encoding fix every CSV problem?

No. Encoding fixes how bytes become characters. If values appear in one column, check the delimiter; if rows merge, inspect quoting.

How it works

Character encoding determines how bytes become text. A file written in GBK but opened as UTF-8 may appear broken even when the original characters still exist. Always return to the original bytes instead of repeatedly converting already-garbled text. You can switch the encoding selector and compare the preview before exporting. The download uses UTF-8 with a BOM for Excel compatibility.

Important limitations

Auto-detection can be wrong for short or ambiguous legacy-encoded files. Previously replaced characters (such as literal ???) cannot reliably be recovered.