About the Mojibake Fixer
Mojibake is what happens when text saved as UTF-8 gets misread as a different encoding, usually Windows-1252, turning characters like curly quotes or accented letters into garbled sequences such as ’. This tool reverses that mismatch and reconstructs the original, correctly encoded text.
How it works
When UTF-8 text is mistakenly decoded as Windows-1252 (or a similar single-byte encoding), each individual byte of a multi-byte UTF-8 character gets displayed as its own separate character. The fixer reverses this by re-encoding those Windows-1252 characters back into raw bytes, then decoding those bytes as UTF-8 to recover the original text.
Sometimes text gets mis-encoded twice in a row, once when it was first saved and again when it passed through another system, producing a more heavily garbled result. The tool also runs a second pass to catch and repair this doubly-mangled case.
How to use
- 1
Paste the garbled text into the input field.
- 2
Check the one-pass result first, since most mojibake needs only a single fix.
- 3
If it's still garbled, check the two-pass result, which catches text that got mis-encoded twice in a row.
Worked examples
Single-pass mojibake
A curly apostrophe from a UTF-8 file was misread as Windows-1252, producing a garbled sequence in place of the quote mark.
Accented characters
A CSV export containing accented letters was opened with the wrong encoding.
Double-encoded text
Text was mis-encoded twice as it passed through two different systems, producing extra layers of garbled characters.
This case needs the two-pass fix, since a single decode pass only partially untangles text that was mis-encoded more than once.
Frequently asked questions
Why does garbled text look like é, ’, or “?+
This happens when text originally saved as UTF-8 gets read back as Windows-1252 (sometimes labeled ANSI), which decodes each UTF-8 byte as its own separate character instead of combining them correctly.
Why can't every garbled string be fixed?+
If the original bytes were lost or the text passed through more than two layers of mis-encoding, there may not be enough information left to reconstruct the original text reliably.
What's the difference between the one-pass and two-pass result?+
One pass reverses a single instance of the UTF-8-as-Windows-1252 mistake. Two passes reverse the same mistake happening twice in a row, which produces more heavily garbled text.
Can this tool fix mojibake in a whole file, not just pasted text?+
This tool works on text you paste directly into it. For a full file, you'd typically re-open or re-export it using the correct encoding rather than repairing it character by character.