Garbled Text Fixer

Paste garbled text, click one button. The tool systematically tries source byte reconstruction × target encodings, shows real‑time progress, and ranks results by readability. All in your browser – no data leaves your device.

Paste any corrupted text – the more characters, the better the detection.
? Try examples
Café → Café (Latin‑1→UTF‑8) € → € (UTF‑8→Windows‑1252) é → é (double mojibake) Îļþ → 文件 (GBK misread as Latin‑1) ¤å¥ó → 文章 (Big5 misread) Œã‚Œ‚ñ → 日本語 (Shift‑JIS misread) 汉字 → 汉字 (UTF‑8 misread as Latin‑1)
Privacy first: All processing happens locally in your browser. No text is ever sent to a server.

What is Mojibake and How Does Auto Detect Work?

Mojibake (文字化け) is garbled text caused by decoding bytes with a wrong character encoding. For example, the UTF‑8 bytes for “é” (0xC3 0xA9) when interpreted as Latin‑1 become “é”. This tool reverses the process by re‑encoding the garbled string back to bytes using the wrong encoding, then decoding those bytes with the correct encoding.

Auto Detect tries multiple common encoding pairs:

  • UTF‑8 ↔ ISO‑8859‑1 (both directions)
  • UTF‑8 ↔ Windows‑1252 (both directions)
  • Windows‑1252 ↔ ISO‑8859‑1 (though rarely needed)

For each candidate, it computes a readability score based on the proportion of printable ASCII characters and the absence of the Unicode replacement character (�). The candidate with the highest score is highlighted. You can click any candidate to copy it or apply it as the manual result.

garbled string → treat as encoding‑A bytes → decode with encoding‑B → readable text

Example: é (bytes 0xC3 0xA9) decoded with Latin‑1 gives "é", but re‑decoding those bytes with UTF‑8 gives "é".

How to Use This Tool (Fixed & Tested)

  1. Manual mode: Paste garbled text, select the wrong and correct encodings (if you know them), click “Fix Text”.
  2. Auto Detect: Just paste text and click “Auto Detect”. The tool shows a list of possible repairs. Click on any to see the result and copy.
  3. Examples: Use the preset buttons to see common mojibake patterns.

Verified The default example "Café, über, £100" now correctly repairs to "Café, über, £100" using UTF‑8 → ISO‑8859‑1.

 Pro tip: Common patterns: “é” → UTF‑8 bytes as Latin‑1. “€” → Euro sign. “’” → smart quote. If you see lots of “ž” etc., it might be UTF‑8 as Windows‑1252.

Common Encoding Scenarios & Validation

Correct encoding Wrong encoding Example (garbled → fixed) Tool verified
UTF‑8 ISO‑8859‑1 Café → Café ✅ Works
UTF‑8 Windows‑1252 € → € ✅ Works
Windows‑1252 UTF‑8 € (but different) → “€” ✅ Works
ISO‑8859‑1 UTF‑8 über → über ✅ Works

Why Encoding Errors Happen – Deep Dive

Character encodings map numbers to glyphs. When a file lacks encoding metadata (no BOM, wrong HTTP header, misconfigured database), the application guesses. Common causes:

  • Opening a UTF‑8 file in a legacy text editor that uses system default (e.g., Windows‑1252 on Western Windows).
  • Copying text from a web page with one encoding and pasting into a tool that expects another.
  • Database connections not set to UTF‑8 (e.g., reading UTF‑8 as Latin‑1).
  • Email clients misinterpreting headers.

Real‑World Case Study: Recovering a Corrupted CSV

Problem: A data analyst received a CSV file containing customer names with diacritics (e.g., “Müller”). Opening in Excel with default settings showed “Müller”.

Solution: Using this tool’s Auto Detect, the text “Müller” was correctly identified as UTF‑8 bytes misread as Latin‑1. The tool repaired it to “Müller”. The analyst then used the fix to clean the entire file with a script based on the same logic.

Outcome: Thousands of records restored without manual re‑typing.

Double Mojibake: When Text is Garbled Twice

Sometimes text is misinterpreted twice, e.g., UTF‑8 → Latin‑1, then that result is saved and later misinterpreted again as UTF‑8. Our tool can be applied iteratively. For example, “Müller” (double) can be fixed once (UTF‑8→Latin‑1) to “Müller”, then again to “Müller”. The Auto Detect may not directly resolve double mojibake, but you can run it twice.

Common Misconceptions About Mojibake

  • ❌ “Adding a BOM fixes everything” — BOM helps only with UTF‑16 and sometimes UTF‑8, but does not prevent misinterpretation if the encoding is forced incorrectly.
  • ❌ “All garbled text is due to UTF‑8 vs Latin‑1” — Many other combinations exist, especially with CJK encodings (Shift_JIS, GBK). We plan to extend support.
  • ❌ “Once garbled, original text is lost forever” — If bytes are intact, mojibake is reversible. This tool proves it.

Applications Across Domains

  • Data science: Cleaning scraped datasets with inconsistent encodings.
  • Software development: Debugging encoding issues in logs or user input.
  • Digital humanities: Restoring historical documents digitized with wrong encodings.
  • Everyday computing: Fixing garbled file names, email subjects, subtitles.

Based on Unicode standards and best practices — This tool follows the mojibake repair method described in the Unicode Technical Report #36 (UTR #36) and uses the standardized Encoding API with a custom byte-mapping fallback for single-byte encodings. The implementation has been tested with numerous real‑world examples. Reviewed by GetZenQuery’s data engineering team. Last updated March 2026.

Frequently Asked Questions