InputTestHub

Mojibake Fixer

Repairs text mangled by the wrong character encoding — the "’" and "é" problem — by reversing the bad decode.

Lab Nothing uploaded No sign-up Free, unlimited
Lab tool
Paste something on the left to see the result.
In short The "’" and "é" problem has one cause: text that was encoded as UTF-8 and then read as if it were Windows-1252 or Latin-1. Each multi-byte UTF-8 character gets interpreted as two or three separate single-byte characters, which is why one apostrophe becomes three symbols. Because the damage is a deterministic misreading rather than a loss, reversing it is exact — the original bytes are all still there, just being read through the wrong lens, so the repair is lossless and not guesswork. That also explains why text sometimes carries several layers of it: each time the file passes through another system that decodes it wrongly and re-encodes the result, another layer is added, and up to four are unwound here. The permanent fix is upstream rather than in the text. Declare UTF-8 everywhere — the HTTP header, the HTML meta charset, the database connection and the column collation — because the single most common source is a database connection that defaults to Latin-1 while the columns are UTF-8. Fixing the stored text without fixing the connection just means the next write is damaged the same way.

How to use the Mojibake Fixer

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Mojibake Fixer

The Mojibake Fixer repairs text mangled by the wrong character encoding — the "’" and "é" problem — by reversing the bad decode. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Repairing a CSV export where every apostrophe became ’.
  • Fixing a database migration that mangled accented names.
  • Recovering text from an old file saved with the wrong encoding.

Details

CauseUTF-8 bytes decoded as Windows-1252 or Latin-1
Fixreverse the interpretation — lossless, not guesswork
Handlesup to 4 nested layers of damage

Frequently asked questions

Is the repair exact or is it guessing?
Exact. The damage is a deterministic mis-decode, so reversing the interpretation restores the original bytes precisely. Nothing is inferred.
Why does my text have several layers of damage?
Because it was exported, re-imported and exported again, each time through the wrong encoding. The tool unwinds up to four layers, checking after each pass whether the result still looks damaged.
How do I stop it happening again?
Set every link in the chain to UTF-8: the database and its connection charset, the export step, the file itself, and the <span class="mono">&lt;meta charset&gt;</span> on any page that displays it. A single Latin-1 link anywhere re-creates the problem on the next export.
My text is garbled but nothing changed.
Then it was damaged by a different encoding pair — a lossy one, where the original bytes were replaced by question marks or the Unicode replacement character. That damage is genuinely irreversible; the data has to come from the source again.
Are there any usage caps on the Mojibake Fixer?
There is no cost and no cap. The Mojibake Fixer is not a demo of a paid product, so nothing is held back or watermarked.
Is what I paste into the Mojibake Fixer stored?
No. The Mojibake Fixer runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
Who is the Mojibake Fixer for?
Typical uses: repairing a CSV export where every apostrophe became ’. Fixing a database migration that mangled accented names. Recovering text from an old file saved with the wrong encoding. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Which values should I know?
Cause is UTF-8 bytes decoded as Windows-1252 or Latin-1. Fix is reverse the interpretation — lossless, not guesswork. Handles is up to 4 nested layers of damage. These are printed on the page itself, so you do not have to take them on trust.
Does the Mojibake Fixer work on a phone?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related lab tools

All 30
06

Sentence Rhythm Analyzer

Measures the variation in your sentence lengths — the thing that makes prose readable, which…

07

Recipe Scaler

Rescales every quantity in a recipe for a different number of servings, keeping fractions…

08

CSV Column Analyzer

Profiles every column of a CSV — type, blanks, distinct values, ranges — and flags the ragged…

09

Fuzzy Duplicate Finder

Finds lines that are nearly the same, not just identical — catching "Acme Ltd." against "Acme…

10

RTL and Bidi Text Checker

Shows how right-to-left text renders against how it is stored, and finds unmatched embeddings…