Fix Garbled Text (Mojibake)
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Results
Your input is too long to share as a link, so the page address no longer includes it.
Mojibake (Japanese for “character transformation”) is what you get when text is decoded with the wrong character encoding: é saved as UTF-8 is two bytes, and read as Windows-1252 they show as é. It happens with CSV files opened in Excel, old databases, emails and copy-paste between systems. Because no information is lost, it can be undone.
How to use it
- Paste the garbled text, or tap an example.
- Copy the repaired text.
- Text that was already correct is left untouched.
Examples: Café becomes Café, it’s becomes it’s, and 日本語 becomes 日本語. Café, garbled twice, needs 2 rounds and also becomes Café.
Questions and answers
Why does é turn into é?
In UTF-8, é is stored as two bytes, C3 A9. A program that assumes Windows-1252 or Latin-1 shows each byte as its own character: C3 is à and A9 is ©.
Can every garbled text be fixed?
Only text that was UTF-8 read as Windows-1252 or Latin-1, the most common case. If characters were replaced by ? or � along the way, the original is lost and can’t be recovered.
How do I stop it happening?
Save and open files as UTF-8. In Excel, import CSV files with Data › From Text/CSV and choose 65001: Unicode (UTF-8) as the file origin.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | The garbled text. |
Example: https://toolabelle.com/fix-mojibake/#text=Caf%C3%83%C2%A9