Read text in the encoding it was written in
Turn José back into José, and read a file under every encoding at once. Nothing is guessed on your behalf and nothing is uploaded.
- Free, no account
- Nothing is uploaded
- Runs in your browser
Drop a text file here
and see what it says under every encoding at once — or paste mangled text below
How it works
- 1 What goes in Text that came back wrong
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back It, read in the encoding it was written in
What it does
A file never says what encoding it is; bytes are bytes, and every reader guesses. That is why a name with an accent arrives from an old system as José or José. Paste the mangled text and this page runs the damage backwards. Drop the file instead and it decodes the same bytes under every encoding the browser knows, side by side, so you can pick the one that reads right — because you recognise your own language in a second, and no confidence score beats that.
This page does the work itself. Your text is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
How can it undo the damage without knowing what happened?
Because nothing is lost in the usual case, only misread. UTF-8 writes an accented letter as two bytes; a reader expecting Windows-1252 shows those two bytes as two characters, and the characters still stand for the same two bytes. Turning each character back into its byte and reading the result as UTF-8 gives the original exactly. The repair is only offered when those bytes really are valid UTF-8 — checked, not hoped — so a repair that would invent text is never shown.
Why show several readings instead of detecting the right one?
Because detection is guesswork dressed up. Nothing in the bytes distinguishes Windows-1252 from ISO-8859-1 from Windows-1250 in most short texts; the difference shows up in a handful of characters that a human reading their own language spots instantly. The list is ordered by how much each reading looks like language rather than noise, and ordering is all that ordering claims to be. The two cases where the file does say — a byte-order mark, or bytes that are valid UTF-8, which almost nothing else is by accident — are taken at their word and put first.
What if the text is mangled but it will not repair?
Then something other than a straight misreading happened to it: characters were dropped in transit, replaced with question marks by a system that could not carry them, or re-saved after the damage so the original bytes are gone. The page says so rather than producing something. Once a character has been replaced with a literal question mark nothing can recover it, because the information is no longer in the file.
More text tools
-
Text
Markdown → HTML
Convert Markdown to clean HTML in your browser, with a live preview.
-
Text
Word counter
Live word, character, sentence and paragraph counts with reading time, plus the platform limits your text fits or busts.
-
Text
Case converter
Convert text to camelCase, PascalCase, snake_case, kebab-case, Title Case and more, all at once.
-
Text
Text diff
Compare two blocks of text and see exactly which lines were added, removed or changed.
-
Text
Invisible characters
Find and strip zero-width spaces, bidi controls, soft hyphens and odd whitespace hiding in text, with every one located by position and code point.