Detect a text file's encoding, BOM and line endings, and convert it between UTF-8, UTF-16, Shift_JIS, EUC-JP and JIS. Also shows bytes and fixes mojibake. Handy for Shift_JIS CSV files from Excel and other Japanese text. Files are processed in your browser and never uploaded.
A text file is just bytes; the character encoding decides how those bytes become letters. When a file is opened with the wrong encoding, Japanese text turns into garbage such as 縺薙s縺ォ縺。縺ッ (mojibake). This tool detects how a file is encoded, lets you correct the guess, and saves it again in the encoding you need. It also shows the byte representation of any text and tries to restore text that is already garbled.
Type text into Text to see its bytes in hex for UTF-8, UTF-16LE, UTF-16BE, Shift_JIS, EUC-JP and JIS, with a copy button for each. A Per character table lists the code point and the UTF-8, UTF-16, Shift_JIS and EUC-JP codes of each character (first 200 characters).
Paste text into Garbled text. The tool re-encodes it with the encoding it was probably misread as (Shift_JIS, EUC-JP, UTF-8 or Windows-1252) and decodes the bytes again, then lists the readable candidates, best first. Each candidate shows which mistake it assumes, for example "UTF-8 that was read as Shift_JIS".
| Encodings | |
|---|---|
| Detection / Read as | UTF-8, UTF-16LE, UTF-16BE, Shift_JIS (CP932), EUC-JP, JIS (ISO-2022-JP), ASCII |
| Output | UTF-8, UTF-8 with BOM, UTF-16LE with BOM, UTF-16LE, UTF-16BE, Shift_JIS (CP932), EUC-JP, JIS (ISO-2022-JP) |
�, a sign the file is in another encoding?① and 髙No. Files are read and converted in your browser. Only the selected tab, output settings and the text typed in the Bytes and Fix mojibake tabs are saved in this browser; loaded files are not kept.
Excel on Japanese Windows opens CSV files without a BOM as Shift_JIS. Convert the file to UTF-8 with BOM (or to Shift_JIS) and Japanese text will display correctly.
Detection is a guess based on the bytes and can be wrong for short files. Choose the right encoding in Read as and check the preview before downloading.
Only if no bytes were lost. If the garbled text already contains ? or �, those characters cannot be recovered, and the candidate shows how many characters could not be restored.