Mojibake Fixer (Repair Garbled Text)
Repair garbled text such as é ’, 한글 or ÇÑ±Û caused by the wrong character encoding. Tries UTF-8, Windows-1252, EUC-KR, Shift_JIS, GBK, Big5 and Cyrillic.
| Reading | Result | Score |
|---|---|---|
| UTF-8 read as Windows-1252 / Latin-1 | Café menu – crème brûlée, it’s €4.50 | 0.08 |
| UTF-8 garbled twice (read as Windows-1252 / Latin-1) | Café menu – crème brûlée, it’s €4.50 | 0.08 |
| Windows-1251 read as Windows-1252 / Latin-1 | Café menu – crème brûlée, it’s €4.50 | 0.59 |
| Windows-1251 read as KOI8-R | CafÃї menu – crème brûlÃїe, it’s €4.50 | 0.6 |
| KOI8-R read as Windows-1251 | CafÃ╘ menu â┬⌠ crème brÃ╩lÃ╘e, itâ┬≥s â┌╛4.50 | 0.83 |
| GBK read as Windows-1252 / Latin-1 | Caf茅 menu 鈥� cr猫me br没l茅e, it鈥檚 鈧�4.50 | 0.94 |
| Shift_JIS read as Windows-1252 / Latin-1 | Cafテゥ menu 窶� crティme brテサlテゥe, it窶冱 竄ャ4.50 | 1.16 |
| Big5 read as Windows-1252 / Latin-1 | Caf矇 menu �� cr癡me br羶l矇e, it� ��4.50 | 1.34 |
| (text as pasted) | Café menu – crème brûlée, it’s €4.50 | 0.66 |
Mojibake is the jumble you get when text is decoded with the wrong character set: “é” instead of “é”, “’” instead of an apostrophe, “한글” or “Çѱ۔ instead of 한글, or “縺薙s縺ォ縺。縺ッ” instead of こんにちは. The original bytes are usually still there, just shown through the wrong table. This tool turns the characters back into those bytes with the wrong table and decodes them with the right one, for every common pair of encodings, and shows the reading that looks most like real text.
How to use this tool
- Paste the garbled text.
- Leave “Automatically” selected, or pick the pair if you know what happened (for example a UTF-8 file opened as Windows-1252).
- For short Korean, Japanese or Chinese text, choose the original language to break ties.
- Copy the repaired text, and check the table if the top reading is not right.
Formula
Repaired text = decode(right charset, encode(wrong charset, garbled text))
The encode tables are built in your browser by decoding every byte, or every lead and trail byte pair, with the browser’s own decoder and inverting the result, so they match exactly what browsers do. Each candidate is scored for how natural it looks: rare symbols, control characters, the replacement character �, a switch of script between two neighbouring letters (Ã followed by ©) and a capital letter in the middle of a lower-case word all add to the score. When UTF-8 is the target, only byte runs that form valid UTF-8 are changed, so a correct é next to a garbled dash survives.
Example
The sample Café menu – crème brûlée, it’s €4.50 is UTF-8 shown as Windows-1252, the most common case on the web. The repair gives Café menu – crème brûlée, it’s €4.50. Double damage such as ’ is undone in two rounds and becomes ’.
Frequently asked questions
Why can some garbled text not be fixed?
If the wrong decoder replaced bytes with � (U+FFFD), or a program dropped characters it could not show, the information is gone. Text that shows 占쏙옙 or 锟斤拷 is the replacement character converted again, so the letters behind it are lost. Re-open the original file with the right encoding instead.
Why did the tool pick the wrong language for a short word?
The same two or four bytes can be valid Korean, Chinese and Japanese at once. For a word or two there is no way to tell from the bytes alone, so choose the original language, or pick the right row in the table.
How do I stop mojibake happening?
Save files as UTF-8, declare it (meta charset="utf-8" in HTML, or UTF-8 with BOM for CSV files opened in Excel), and open files with the encoding they were written in.
Last updated:
Page address with these inputs: https://kakao.mobile/tools/mojibake-fixer/
Cite or embed this tool
kakaoCalc. (2026, November 8). Mojibake Fixer (Repair Garbled Text). https://kakao.mobile/tools/mojibake-fixer/
“Mojibake Fixer (Repair Garbled Text).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/mojibake-fixer/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms