Mojibake Fixer

Repair garbled text like é and ’ back to the UTF-8 it was meant to be.

Input
What it does

Repairs mojibake: UTF-8 text that some program decoded with a legacy single byte encoding, turning é into é and a curly apostrophe into ’. Paste the garbled text and the tool re-encodes it with Windows-1252 or Latin-1, decodes the resulting bytes as strict UTF-8, and shows the version that comes out clean. It handles double encoded text (two rounds of damage) and mixed chains, strips a leading byte order mark that arrived as , and tells you which chain it applied and how confident it is.

How to use it

Paste or drop the broken text into the input box. Leave the chain on Auto detect and the tool scores every realistic repair path, including doing nothing, then keeps the best one. If you already know what happened, pick the exact chain from the dropdown: the tool applies only that one and says plainly when it does not fit. Copy the fixed text from its row, and share the URL to hand someone the exact result.

Why this one

The reference fixer, ftfy, is a Python library, so using it means installing Python or pasting your data into someone else's web form. The web alternatives usually try one chain, give up quietly, and wrap the answer in ads. This one tries every realistic chain including double encoding, refuses to mangle text that is already clean, names the chain it used, and runs entirely in your browser, so your files and inputs never leave your device.

FAQ
What causes mojibake in the first place?
A file is written as UTF-8, then read back by a program that assumes a legacy single byte encoding such as Windows-1252 or Latin-1. Each UTF-8 byte becomes its own character, so one accented letter turns into two or three odd looking ones. Exporting a spreadsheet to CSV, importing it somewhere with the wrong encoding setting, and old database columns declared as latin1 are the usual sources.
What does ’ actually mean?
It is a right single quotation mark (U+2019), the curly apostrophe. In UTF-8 that character is the three bytes E2 80 99. Read as Windows-1252 those bytes become â, the euro sign, and the trademark sign, which is exactly the ’ you see. Re-encoding those three characters back to bytes and decoding as UTF-8 restores the apostrophe.
Can it fix every case?
No. If the damaging step dropped bytes, the original characters are gone and no tool can recover them. That happens when text passes through an encoding that has no byte for some character, or through a converter that replaced unknown bytes with question marks or U+FFFD. This tool allows a small tolerance for lost characters, marks those results as partial, and reports low confidence rather than guessing.