WMW

Mojibake (Garbled Text) Fixer

Free

Recovers the original bytes behind garbled (mojibake) text and re-decodes them under several common encodings, showing every candidate that comes out clean.

Runs entirely in your browser. Your text is never uploaded anywhere.

Comments (0)

Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.

Guest comments are reviewed before publishing. Sign in to post instantly.

No comments yet. Be the first to share your thoughts!

What this tool does

Paste text that looks garbled (for example Café instead of Café) and this tool recovers the original bytes and tries re-decoding them under several common character encodings, showing every result that comes out clean so you can pick the correct one.

How It Works

Mojibake like this is almost always caused by valid UTF-8 bytes being misread one byte at a time as Windows-1252 (or the closely related Latin-1). This tool reverses that first step, mapping each character in your garbled text back to the single byte Windows-1252 would have produced it from. It then feeds that recovered byte sequence into the browser's built-in TextDecoder for several candidate encodings (UTF-8, Shift-JIS, EUC-JP, GBK, Big5, EUC-KR, KOI8-R, ISO-8859-7), and keeps only the decodings that complete without errors or replacement characters.

Problems it solves

Frequently asked questions

›What causes mojibake in the first place?

It happens when text saved in one character encoding (almost always UTF-8 today) gets opened or imported by a program that assumes a different encoding (commonly Windows-1252 or Latin-1). Each original multi-byte UTF-8 character then gets displayed as two or three separate, wrong single-byte characters.

›Why does this tool show multiple results instead of one fix?

The same garbled bytes can sometimes be validly re-decoded under more than one encoding, and this tool has no way to know which one matches your actual source language. It shows every candidate that decodes cleanly (no replacement characters) so you can pick the one that reads correctly.

›My text shows no candidates at all, what does that mean?

Either the text was not actually mojibake caused by a Windows-1252/Latin-1 misread, or the original encoding was something outside the list this tool tries. Double-check that the text really looks garbled rather than just containing unusual but valid characters.

›Can this fix mojibake caused by other broken encodings, not just Windows-1252?

This tool specifically reverses a Windows-1252 or Latin-1 misread, since that is by far the most common real-world cause of mojibake. If your text was mangled by a different first-stage encoding, the byte recovery step itself won't produce the right bytes, and no candidate will look clean.

›Is this the same as a URL or Base64 decoder?

No. URL and Base64 encoding are separate, intentional, reversible text transformations. Mojibake is an unintentional side effect of a character-encoding mismatch, and fixing it means re-interpreting the same underlying bytes correctly rather than decoding a deliberate encoding scheme.

Related Tools

Free

Text

JWT Decoder

Decodes a JWT header and payload into readable JSON, converts timestamp claims to human-readable dates, flags expired tokens, and can verify an HS256 signature with a secret you provide.

Free

Text

llms.txt Generator

Generates a llms.txt file following the llmstxt.org specification from a title, summary, and sections of links, with Optional-section grouping and a live preview.

Free

Text

Markdown Previewer

Renders Markdown as live, sanitized HTML side by side with the source, with a toggle to view and copy the generated HTML.

Free

Text

MySQL Syntax Validator

Validates MySQL syntax for one or more semicolon-separated statements, reporting the exact line and column of the first error found.

Free

Text

Online HTML Editor

Edit HTML, CSS, and JavaScript in three panels with a live sandboxed preview that updates as you type, plus a one-click download as a standalone HTML file.

Free

Text

Password Generator

Generate strong, random passwords right in your browser using a cryptographically secure generator, with a live strength meter, entropy calculation, and support for batches of several passwords at once.

Free

Text

Punycode Converter

Convert text between Unicode and Punycode (RFC 3492), the ASCII-only encoding used for internationalized domain names, with a full domain mode (dot-aware, xn-- prefix handled automatically) and a plain label mode, batch-converting multiple lines at once.

Free

Text

Line Counter

An advanced line counter that instantly analyzes your pasted text: duplicate/empty line detection, comment line filtering, regex-powered find & replace, sorting, and prefix/suffix insertion.