Skip to main content

Text Encoding Fixer

Fix garbled text such as Café caused by reading UTF-8 as Latin-1, and convert text to and from UTF-8, UTF-16 and Latin-1 bytes. Private.

Text or bytes

Stays in your browser

Result

The result appears here after you press Convert.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to Unicode Character Inspector or Text to Binary / ASCII.

Free Online Text Encoding Fixer

When accents turn into strange characters, the text was read in the wrong encoding. Paste it here to repair it, or see and convert the bytes of any text. It gives developers a quick browser-based way to solve a focused text encoding fixer task before moving the result into a project.

How to use Text Encoding Fixer

Paste the text in the box on the left, then press Run. Choose "Repair garbled text" and paste the broken text. To see bytes, choose "Text to bytes" and an encoding; "Bytes to text" reads hex bytes back.

Common mistakes

  • Pasting text that was already repaired once: it is left as it is.
  • Choosing Latin-1 for characters outside Western European languages: they are written as ? because Latin-1 has no place for them.

Frequently asked questions

Why does Café turn into Café?
The text was saved as UTF-8 but opened as Latin-1 or Windows-1252. Each accented letter takes two bytes in UTF-8 and the wrong reader shows them as two separate characters.
Can every garbled text be repaired?
Only when no information was lost. If characters were already replaced by question marks or �, the original is gone. The page tells you when nothing could be repaired.
How do I see the bytes of a text?
Choose "Text to bytes" and an encoding. UTF-16 little-endian writes the letter A as 41 00.
Is my text uploaded?
No. Everything is done in your browser.
How do I use this text encoding fixer tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Code & Conversion

View all Code & Conversion tools →