Skip to content
ToolZone

Mojibake Fixer

Fix garbled text caused by an encoding mismatch, turning symbols like é back into the correct character like é.

Runs in your browser. Nothing you enter or upload leaves your device.

Garbled text

Fixed

I’m so happy it’s finally here…

Each word is fixed independently, so text mixing single and double encoding mistakes in the same paste still recovers correctly. A word left unchanged usually means it was already correct, or the original bytes were lost in a way that can't be reconstructed.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Paste the garbled text into the input field.

  2. 2

    Check the one-pass result first, since most mojibake needs only a single fix.

  3. 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.

Input
It’s a great day
Result
It’s a great day

Accented characters

A CSV export containing accented letters was opened with the wrong encoding.

Input
Café and résumé
Result
Café and résumé

Double-encoded text

Text was mis-encoded twice as it passed through two different systems, producing extra layers of garbled characters.

Input
’
Result
’

This case needs the two-pass fix, since a single decode pass only partially untangles text that was mis-encoded more than once.

Limitations
Cannot recover text where the original bytes were lost or replaced rather than simply misinterpreted. Text mis-encoded more than twice may not be fully repaired by the two-pass fix. Works best on text mangled by common encoding mismatches (like UTF-8 read as Windows-1252); highly unusual encoding chains may not resolve cleanly.
Assumptions
The pasted text originated as valid UTF-8 that was misinterpreted using a single-byte encoding such as Windows-1252. The garbling occurred once or twice in sequence, not through a more complex or repeated transformation chain.
Privacy
All text processing happens locally in your browser. Nothing you paste is uploaded or stored.

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.

Related tools