— Text Encoding Detector

Character Encoding Detector

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!

Detect the character encoding of text (UTF-8, ISO-8859-1, etc.).

Examples

Input
Text with UTF-8 BOM
Output
UTF-8 (BOM detected, high confidence)
Input
Caf\xe9 in bytes
Output
ISO-8859-1 or Windows-1252 (medium confidence)
Input
Plain ASCII text
Output
ASCII/UTF-8 compatible (any encoding works)

Frequently Asked Questions

Text becomes garbled when opened with the wrong encoding. If a file was saved as UTF-8 but opened as ISO-8859-1 (or vice versa), characters display incorrectly. Detecting the actual encoding lets you open it correctly.

UTF-8 is a variable-length encoding that can represent any Unicode character. It's backward-compatible with ASCII and has become the standard for web content and modern systems. Most new text should use UTF-8.

Detection accuracy depends on text length and character variety. Longer text with special characters (accents, symbols) is easier to identify. Short plain ASCII text is ambiguous since many encodings are identical for basic characters.

A BOM is a special byte sequence at the start of a file that identifies its encoding. UTF-8's BOM is EF BB BF. UTF-16 uses FF FE or FE FF. When present, BOMs provide definitive encoding identification.

Yes, especially for ASCII characters (0-127) which are identical across many encodings. Detection relies on non-ASCII characters to distinguish encodings. Pure ASCII text is compatible with UTF-8, ISO-8859-1, and others.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy