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
café
cafe
über
uber
naïve
naive
won’t
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.
Related Tools
Duplicate Remover
<p>The Duplicate Remover is an essential text processing too...
Tab to Spaces Converter
<p>Our Tab to Spaces converter replaces tab characters with...
Spaces to Tabs Converter
<p>Our Spaces to Tabs converter replaces space-based indenta...
Remove Punctuation
<p>Our Remove Punctuation tool strips punctuation marks from...
Remove Duplicate Lines
Remove duplicate lines from your text while preserving the o...
Remove Empty Lines
Remove all empty or blank lines from your text. Clean up mes...
Related Articles
How to Fix Mojibake and Broken Text Encoding
Learn how to identify and fix mojibake and other text encoding problems. Understand why characters appear garbled and how to restore them to readable text.
Read moreUnicode Normalization Explained: A Complete Guide for Developers
Learn how Unicode normalization works and why it matters for text processing. Master NFC, NFD, NFKC, and NFKD forms with practical examples.
Read moreHow to Detect Text Encoding: A Practical Guide for Developers
Learn to identify text encoding issues and detect whether files use UTF-8, ISO-8859-1, or other character sets. Essential knowledge for data processing.
Read more