About Text to Hex Converter
Binary code writes each byte as eight bits (0 or 1), and hexadecimal writes the same byte as two base-16 digits. This tool encodes text as UTF-8, so an ASCII letter takes one byte and other characters take two to four. When decoding, everything except valid digits is stripped, and the digit count must be a multiple of 8 for binary or of 2 for hexadecimal.
How to use Text to Hex Converter
- Type or paste into the "Input text" box, or press "Use example" to try it with sample data.
- Set "Conversion" if the defaults do not fit.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about Text to Hex Converter
How do you write a letter in binary?
Look up the character code and write it in base 2 with eight digits. Capital A is code 65, which is 01000001. Lowercase a is 97, or 01100001. Each further ASCII character adds another eight bits.
Why does one character sometimes produce more than eight bits?
The tool uses UTF-8. ASCII characters take one byte, but accented letters, non-Latin scripts, and emoji take two to four bytes, so they appear as 16 to 32 bits or 4 to 8 hex digits.
Runs in your browser. Page last updated .