Garbled Text Fixer
Repair common text-encoding mistakes, also called mojibake. Paste text, review automatically selected repairs and keep your original intact.
How to fix garbled text
- Paste or type the text in Original text.
- Choose the byte interpretation and up to three rounds if needed.
- Review the automatically selected suggestions, deselect any unintended changes, then copy the output.
Features
- Finds reversible UTF-8 encoding errors
- Reviews individual suggestions before copying
- Supports up to three repair rounds
- Leaves unaffected spans of text untouched
- Shows intermediate results for repeated corruption
Use cases
- Repair broken accents in pasted text
- Inspect a mixed clean and garbled excerpt
- Undo double-encoded text while checking each round
Understanding encoding repairs
Mojibake happens when UTF-8 bytes are read as another encoding and then copied as Unicode. This tool reverses Windows-1252 or literal ISO-8859-1 interpretations where the bytes form a valid UTF-8 character. It does not automatically identify the original encoding.
Mixed clean and broken text is common. Only local byte-reversible spans become candidates; clean text, emoji and unrelated scripts remain in place. Even plausible clean text can be byte-reversible, so review and deselect unwanted suggestions.
Use two or three rounds only for repeated corruption. Intermediates and actual rounds are shown. Replacement characters (�), deleted bytes and missing glyphs may represent permanent loss. Other historical encodings, file uploads, CSV repair and AI rewriting are outside this tool.
Examples
Broken accent: café → café automatically when analysis completes. A clean café has no candidate in this example.
Repeated corruption: café → café in one round → café in two rounds. Paste a CSV excerpt as text; this does not repair the whole file.
Privacy and limits
Text repair runs in your browser. Drafts are not saved or uploaded by this tool; shared site services may still make network requests.
The limit is 500,000 UTF-16 code units. Larger text stays in the editor without analysis. This tool does not remove invisible characters, normalize Unicode or unescape HTML.
Questions and answers
Related tools
JSON to YAML
Convert JSON to YAML locally while preserving number text and quoted strings; copy or download the complete result.
Open tool — JSON to YAMLYAML to JSON
Convert one YAML document locally to JSON with exact number text and bounded aliases, then copy or download the complete result.
Open tool — YAML to JSONHTML to Markdown
Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown to HTML
Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.
Open tool — Markdown to HTMLText Sorter
Sort lines alphabetically by a chosen language or by Unicode code point, keeping duplicates, blank rows and complete line contents.
Open tool — Text SorterRemove Duplicate Lines
Keep the first copy of each exact text line, preserving order, significant spaces and blank rows, then copy or download the result.
Open tool — Remove Duplicate LinesText Diff Checker
Compare two drafts locally, with exact whole-line changes, visible whitespace rules and clear final-newline handling.
Open tool — Text Diff CheckerCase Converter
Convert text to uppercase, lowercase, capitalized words or sentence case with explicit letter rules.
Open tool — Case ConverterHTML Entity Encoder/Decoder
Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.
Open tool — Markdown Table GeneratorQuery String Parser & Builder
Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.
Open tool — Query String Parser & BuilderURL Encoder & Decoder
Convert a UTF-8 URL component or form value with explicit space and plus rules, then copy or download the result.
Open tool — URL Encoder & DecoderBase64 Encoder & Decoder
Encode UTF-8 text as standard or URL-safe Base64, or decode either format with clear errors and complete text output.
Open tool — Base64 Encoder & DecoderXML Formatter
Check namespace-aware XML 1.0, format or compact locally, and copy or download UTF-8 output.
Open tool — XML FormatterJSON Formatter & Validator
Check JSON syntax, format or minify locally, and copy or download output while preserving original data tokens.
Open tool — JSON Formatter & ValidatorSMS Character Counter & Segment Calculator
See how your message is encoded, where its segments end and what it may cost. Your text stays in your browser.
Open tool — SMS Character Counter & Segment CalculatorSocial Media Character Counter
Check platform-specific limits and split posts without losing text.
Open tool — Social Media Character CounterCharacter Counter
Count characters, words, sentences and paragraphs. Check word density, reading time and UTF-8 size, all in your browser.
Open tool — Character CounterText Size Calculator
Compare text encodings and payload sizes in your browser.
Open tool — Text Size CalculatorPDF Text Cleaner
Fix line breaks and spacing in text copied from a PDF. Preserve your original and review ambiguous hyphens before copying the cleaned text.
Open tool — PDF Text CleanerFancy Text Converter
Convert supported fancy Unicode letters to normal text locally. Keep case, accents, emoji and your original text.
Open tool — Fancy Text ConverterGmail Clipping Checker
Measure email HTML bytes in UTF-8, compare them with an advisory 102,000-byte Gmail reference, and inspect size contributors locally.
Open tool — Gmail Clipping Checker