A free online tool that fixes CSV encoding issues — garbled Japanese text in Excel, broken line endings, and BOM (Byte Order Mark) problems. Add or remove UTF-8 BOM and convert line endings (LF / CRLF) instantly in your browser.
Supports reading Shift_JIS (CP932) encoded CSV files with automatic encoding detection. Features include trailing whitespace removal, final newline insertion, character/byte count display, and a 20-line preview.
All processing is done entirely in your browser — your data is never uploaded to any server. No registration, no installation, no sign-up. Just drag and drop your CSV file to get started.
How UTF-8 BOM Works
The UTF-8 BOM consists of 3 bytes (0xEF, 0xBB, 0xBF) at the start of a file. While the Unicode specification states BOM is unnecessary for UTF-8, Windows applications like Excel and Notepad use it to identify UTF-8 encoding. This tool inserts or removes the U+FEFF character at the start of the string.
Browser-Based File Processing
Files are read using the HTML5 FileReader API as an ArrayBuffer, then decoded using TextDecoder. In auto-detection mode, the tool decodes with both UTF-8 and Shift_JIS, then selects the encoding with fewer replacement characters (U+FFFD). All processing runs entirely in browser memory with zero network communication.
Line Ending Conversion
Line ending conversion uses a two-pass regex approach: first normalizing all endings to LF (\n) by replacing CRLF and standalone CR, then converting to the target format. This ensures consistent results even with mixed line endings.