About this tool
Computers store text as a sequence of bytes. The character encoding – almost always UTF-8 today – defines which bytes represent which character. Letters like “A” use one byte, accented letters two and emojis even four.
This tool shows the bytes of a text as hexadecimal, binary, decimal and octal values at the same time. Every field is editable: enter hex values, for example, and you instantly see the matching text. It helps when debugging protocols, reading hex dumps or understanding encoding problems such as “é” instead of “é”.
For single numbers (rather than text) there is the Number Base & Roman Numeral Converter, for Base64 the Base64 Encode / Decode converter.
How it works
- Type or paste text into the “Text (UTF-8)” field.
- The bytes instantly appear as hex, binary, decimal and octal.
- Alternatively, enter values into one of the number fields – the text is converted back automatically.
- Use “Separator” and “Uppercase hex” to adjust the format, e.g. for code or documentation.
Frequently asked questions
What is the difference between ASCII and UTF-8?
ASCII only knows 128 characters (English letters, digits, punctuation). UTF-8 is compatible with ASCII – those characters have the same bytes – but can represent every character in the world by using several bytes per character.
Why does “é” take two bytes?
In UTF-8 all characters outside ASCII use two to four bytes. “é” becomes C3 A9. If such text is wrongly read as Latin-1, you get “é” – a typical encoding error.
Can I enter hex values without spaces?
Yes. Hex and binary values may be separated by spaces, commas or colons, or written without separators. Prefixes such as 0x or 0b are recognized.
Why do some hex values show an error?
Not every byte sequence is valid UTF-8. A single byte FF, for example, is not text. The tool then shows a hint instead of printing broken characters.