— Broken Encoding Fixer

Fix Broken Text Encoding

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Fix mojibake and garbled text from encoding errors.

Examples

Input
café
Output
cafe
Input
über
Output
uber
Input
naïve
Output
naive
Input
won’t
Output
won't

Frequently Asked Questions

Mojibake is garbled text that results when text encoded in one character encoding is incorrectly decoded using a different encoding. Common examples: "café" instead of "cafe", or "ü" instead of "u". The term comes from Japanese meaning "character transformation."

This specific pattern occurs when UTF-8 encoded text (where "e" is two bytes: C3 A9) is read as Windows-1252 or Latin-1 (where each byte is a separate character: Ã and ©). The tool reverses this misinterpretation.

Most common mojibake patterns can be repaired if the original encoding is determinable from the corruption pattern. However, some data loss can occur if the wrong encoding completely mangles bytes into unrecoverable characters, especially with non-Latin scripts.

Always use UTF-8 explicitly everywhere: file encoding, database connections, HTML charset declarations, and API communications. Don't rely on default encodings, which vary by system. Consistent UTF-8 use prevents most encoding problems.

Text can be double or triple encoded, creating layered corruption. The tool attempts to detect and fix multiple encoding layers. Very complex cases may need multiple repair passes or manual analysis to determine the encoding chain.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy