Skip to content
OnlineToolStudio

Fix Garbled Text (Mojibake)

runs in your browserno sign-upfree

Repair garbled characters like é, ’ and ü — text saved as UTF-8 but read with the wrong encoding. Fixes double-encoding, Cyrillic, Greek, CJK and more.

Fixed 29 garbled characters — UTF-8 shown as Windows-1252 (twice)

129 chars
88 chars

What changed

  • übecomesü×3
  • ébecomesé×2
  • ’becomes’
  • “becomes“
  • éâ€<9D>becomesé”
  • —becomes—
  • ïbecomesï
  • €becomes€
  • ПриветbecomesПривет
  • мирbecomesмир
  • ΓειάbecomesΓειά
  • σουbecomesσου
  • 👋becomes👋

Have the original file? Convert it to UTF-8 instead — that works from the file’s bytes, so nothing is lost.

About this tool

Text full of odd characters like é, ü, ’ or “ is called mojibake: it was saved as UTF-8 but opened as an older encoding such as Windows-1252, so each accented letter or curly quote turns into two or three wrong characters. Paste it here and it is turned back into the bytes it came from and read correctly — é, ü, ’ and “ come back. It also fixes text garbled twice (é), Cyrillic, Greek, Hebrew, Arabic, Chinese, Japanese and Korean text, emoji, and older encodings shown as each other (Ïðèâåò → Привет). Correct parts of the text are left alone, and you can see every change.

How to use

  1. Paste the garbled text into the left box.
  2. The fixed text appears on the right, with what was wrong and every replacement listed below.
  3. If the result isn’t right, pick one of the other possible fixes, or choose the encodings by hand.
  4. Copy or download the fixed text.

FAQ

Why does my text show é instead of é?

In UTF-8, é is stored as two bytes (C3 A9). A program that reads those bytes as Windows-1252 or Latin-1 shows one character per byte: à for C3 and © for A9. The same happens to ’ (’), “ (“), — (—) and € (€). It usually comes from a database, CSV export, email or WordPress site where one step used the wrong encoding.

Can every garbled text be fixed?

Only if the original bytes survived. Text with ? or � (the replacement character) where letters should be has lost them — a program replaced what it couldn’t read — so those characters can’t be recovered. Fix the source instead: export the file again as UTF-8, or open the original file with Convert to UTF-8.

What does “garbled twice” mean?

If garbled text is saved and wrongly read again, it gets worse: é → é → é. This tool repeats the repair until the text is clean (up to four times) and tells you how many layers it removed.

Is it safe to paste text that is already correct?

Yes. A repair is only made when the text forms valid UTF-8 byte patterns that real text almost never contains, so correct accented, Cyrillic or Asian text is left as it is. If nothing looks garbled, the tool says so and changes nothing.

How do I stop it happening again?

Use UTF-8 everywhere: save files as UTF-8, declare it (<meta charset="utf-8"> in HTML, utf8mb4 in MySQL), and import CSV files as UTF-8 in Excel. In MySQL, garbled text often comes from a latin1 connection writing into a UTF-8 table — set the connection character set to utf8mb4.

Is my text sent anywhere?

No. The repair runs entirely in your browser; nothing is uploaded.

Related tools

All tools