Skip to content
UniKit

CSV BOM fixer

Add a UTF-8 BOM so Excel opens Chinese CSV files correctly, strip or toggle an existing BOM, and detect text that was mis-read as Latin-1. Streams stay in your browser.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

CSV / text content

Paste a CSV file or any text; header rows work as-is. The result is the same content with the BOM added or removed.

Result

The output contains (or no longer contains) the BOM character itself — copy it and save as UTF-8.

Paste content to see the corrected BOM state

What this tool does

  • Add a UTF-8 BOM before saving a CSV so Excel shows Chinese text instead of mojibake
  • Strip an invisible BOM that keeps corrupting the first column header
  • Check whether pasted text was mis-read as Latin-1 and optionally repair it

Example

Input

姓名,城市
张三,北京

Output

姓名,城市
张三,北京

With the default "Add BOM" mode the output starts with the UTF-8 BOM (U+FEFF, 3 bytes, invisible here); the body is unchanged.

Frequently asked questions

Will a BOM fix Excel for good?

Yes, as long as the file is actually saved as UTF-8. The BOM is only a 3-byte file header and does not change the text. If Excel still shows mojibake the file is probably GBK-encoded; re-encode it in your editor first, since this tool does not convert charsets.

Can the repair option fix GBK mojibake?

No. It performs exactly one deterministic repair: treating each character as a byte and decoding it as UTF-8 again, which handles text that was read as Latin-1/Windows-1252. GBK bytes read as UTF-8 lose information (they become U+FFFD), so nothing is guessed here.

Do you support UTF-16 or UTF-32 BOMs?

No. The input is already text, so only the UTF-8 BOM character U+FEFF is recognised. UTF-16/UTF-32 byte-order marks belong to the byte layer and must be handled when reading the file. Empty input never produces a BOM-only file.

Is anything uploaded?

No. Everything runs locally in your browser; the result is plain text you copy or download and save as UTF-8 yourself.

Keywords:utf-8 bomCSV BOM fixercsv-bomexcel csv encoding

Related tools