Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHESPTRUFRDEEN

Elysia Tools

Navigation

Text Processing

Mojibake Repair (Encoding Detective)

· Last updated:2026-07-30

Fix garbled text (mojibake) caused by wrong-encoding decoding — reverse UTF-8/Latin-1, Windows-1252, GBK, Shift-JIS, Big5, and MacRoman chains. Auto mode tries all and picks the cleanest result.

Details

What this tool helps you do

Mojibake is the garbled text you see when bytes were encoded in one character encoding but decoded as another (e.g. UTF-8 bytes shown as Latin-1, producing é instead of é). This tool reverses the wrong decode: it re-encodes the garbled string using the suspected wrong decoder, then re-decodes those bytes with the correct encoding. Auto mode tries every common chain (Latin-1, Windows-1252, GBK, Shift-JIS, Big5, MacRoman) and scores each candidate by how much clean printable text it yields, so you can paste mystery garble and let the detective find the original. Great for fixing broken CSV exports, mislabeled web pages, database import artifacts, and copy-paste between locales.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Text Processing
Input types
textarea, select
Output type
html
Sample coverage
4
API ready
Yes

Overview

Mojibake Repair fixes garbled text caused by decoding bytes with the wrong character encoding. Paste text such as "café" or "中文", choose a repair chain, or let Auto mode test supported chains and select the cleanest result.

When to use

  • Repair garbled text from broken CSV exports, web pages, or database imports.
  • Restore text damaged by UTF-8, Latin-1, Windows-1252, GBK, Shift-JIS, Big5, or MacRoman mismatches.
  • Identify the likely encoding chain when you are unsure how the text became corrupted.

How it works

  1. 1Paste the garbled text into the required text field.
  2. 2Select Auto mode or choose a specific repair chain.
  3. 3The tool reverses the suspected wrong decoding and reconstructs the original text.
  4. 4Auto mode compares supported candidates and returns the cleanest printable result as HTML.

Use cases

  • Fix mojibake in exported CSV text before using it in another application.
  • Restore names, punctuation, and multilingual text affected by database import encoding errors.
  • Repair copied text from web pages or documents displayed with the wrong character set.

Examples

1. Restore a garbled accented word

Data analyst

Background

An exported record displays the French word "café" as "café" because UTF-8 bytes were read as Latin-1.

Problem

Recover the readable accented text without manually testing encoding combinations.

How to use

Paste "café" into the Garbled text field and leave Repair chain set to Auto.

text: "café"; chain: "auto"

Outcome

The tool identifies the clean repair and returns "café".

2. Repair a garbled smart quote

Content editor

Background

A copied sentence contains "’" instead of the right single quote character.

Problem

Restore the punctuation before publishing the text.

How to use

Paste "’" into the Garbled text field and use Auto mode.

text: "’"; chain: "auto"

Outcome

FAQ

What is mojibake?

Mojibake is garbled text created when bytes encoded in one character set are decoded using another.

Can I repair "café"?

Yes. Auto mode can reverse the UTF-8-as-Latin-1 error and recover "café".

Which encoding chains are supported?

Supported chains include UTF-8 with Latin-1, Windows-1252, GBK, Shift-JIS, Big5, or MacRoman, plus GBK misread as UTF-8.

What does Auto mode do?

It tries the supported repair chains and selects the candidate with the cleanest printable text.

What input does the tool require?

Enter the garbled text in the text field. The repair chain is optional and defaults to Auto.

Home
Tools3201
Samples593
Visualizations465
Viewers103
Hubs233
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance644

Calculators, numerics, date logic, statistics, and finance tools

Design & Color297

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

FLAC/WAV Source Screening and Evidence Handoff
Self-Hosted Giveaway Widget Review and Embed Handoff
Stripe Promo Code Batch Review and Import Preflight
Batch Photo Culling Review and Editing Shortlist Handoff
UI Screenshot Structure Review and Development Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
text-processing

Hex/Unicode Encoding Format Samples

Examples of hex (\xXX) and unicode (\uXXXX) escape sequence encoding formats

Media

Copyright-Free MP3 Audio Samples

Collection of royalty-free audio samples for testing and development purposes including nature sounds, meditation music, and ambient audio

Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Text Processing

Chinese Character Extractor (汉字提取器)

Extract all Chinese characters from text, filtering out punctuation and English letters, numbers, and non-Chinese symbols

Data Processing

BOM Character Remover

Remove BOM (Byte Order Mark) characters from text and file content. Perfect for cleaning up text files that have encoding issues, fixing CSV imports, and preparing data for processing. Features: - Detect and remove UTF-8 BOM (EF BB BF) - Detect and remove UTF-16 BOM (FE FF or FF FE) - Detect and remove UTF-32 BOM (00 00 FE FF or FF FE 00 00) - Support multiple input formats - Visual BOM character display - Detailed detection report - Support for batch text processing Common Use Cases: - Fix CSV file import errors - Clean up text file encoding issues - Prepare data for JSON parsing - Fix XML parsing problems - Resolve API data encoding conflicts - Standardize text data format

Format Conversion

Markdown to Plain Text

Convert Markdown formatted text to plain text by removing all Markdown syntax and formatting

AI Tools

AI RAG Chunk Quality Scorer

Score candidate RAG chunk-splitting schemes for a document across four metrics — coherence (clean sentence/paragraph boundaries), coverage (topic focus / key-term concentration), context overlap health, and chunk-size consistency — then compare up to three schemes side by side and recommend the best. Pure offline heuristics, no model calls.

The tool recovers the curly right single quote: ’.