Fix CSV Encoding for Excel (UTF-8 BOM)
Auto-detect Windows-1252, Shift-JIS, or UTF-16LE, export with UTF-8 BOM + CRLF, and protect ZIP leading zeros locally.
Primary Action: Download for Excel (BOM) (100% browser-local WebWorker processing, zero file uploads).
Excel Encoding & Leading-Zero Proof: Before & After
Real transformations applied locally before opening your CSV in Microsoft Excel on Windows or macOS.
| Issue | Before (Raw Input) | After (Cleaned Locally) | What Changed |
|---|---|---|---|
| UTF-8 Accents & Umlauts | 00123,Chloé,München,Café Nord (Raw UTF-8 opened by Excel as Windows-1252) |
EF BB BF + 00123,Chloé,München,Café Nord (UTF-8 BOM + CRLF line endings) |
Prepending the three-byte UTF-8 Byte Order Mark (EF BB BF) tells Excel to decode multi-byte accents and umlauts cleanly instead of showing Café or München. |
| Leading-Zero ZIP Codes | 00123, 02139, 08001 (Excel coerces to 123, 2139, 8001 on double-click) |
="00123", ="02139", ="08001" (Excel Leading-Zero Guard enabled) |
Plain quotes ("00123") still get stripped by Excel. Wrapping numeric codes with ="00123" preserves exact zero-padded digits across spreadsheets. |
| Negative Balances & Legacy Bytes | 0xE9 / 0xFC bytes, -45.50 (Windows-1252 / Shift-JIS raw bytes) |
Café / München, -45.50 (Decoded locally · signed numbers intact) |
Auto-detects Windows-1252, Shift-JIS, and UTF-16LE bytes locally in the WebWorker without U+FFFD replacement characters while keeping -45.50 numeric. |
Excel CSV Encoding FAQ
- Why does Excel turn Café or München into Café or München?
- Desktop Microsoft Excel defaults to legacy Windows-1252 when opening a CSV without a UTF-8 Byte Order Mark (EF BB BF). Clicking Download for Excel (BOM) decodes Windows-1252, Shift-JIS, or UTF-16LE bytes locally and writes a UTF-8 BOM with CRLF line endings so accented text opens cleanly.
- Do double quotes stop Excel from dropping leading zeros like 00123?
- No. Excel ignores plain double quotes ("00123") and still converts the value to 123. Keep Leading-Zero Guard enabled to export ="00123" for Excel, or export to JSON if a downstream API needs raw "00123" strings.
- Which legacy encodings can this tool auto-detect locally?
- The browser WebWorker inspects raw file bytes for UTF-8, UTF-16LE/BE BOMs, Shift-JIS, and Windows-1252 without sending data to any server. You can also override the detected encoding inside Advanced Options.