What your keyboard actually sends
A computer science assignment asks you to write the word Hi in binary. A puzzle wants a hidden message encoded as ones and zeros. Or you are simply curious what happens between pressing a key and a letter appearing on screen. Every character you type is stored as a number first, and that number is stored as binary. This tool takes your text and shows you the exact bit pattern behind each character.
The idea behind the conversion
Formula: each character is replaced by its character code (for example, A = 65 in ASCII and Unicode), and that code is written as an 8-bit binary number.
Text encoding is a lookup agreement: the letter A is assigned the number 65, B is 66, a lowercase a is 97, and so on. Once a character becomes a number, it is converted to binary by the usual divide-by-2 method. So A becomes 65, and 65 becomes 01000001. Most tools, including this one, use 8 bits per character for the basic Latin set, which covers English text, digits, and common punctuation. Characters beyond that range, like emoji, use multi-byte sequences under Unicode rules.
How to use it
- Type or paste your text into the input box.
- The tool converts each character to its 8-bit binary code automatically.
- Read the output character by character, with spaces between each byte.
- Copy the binary string wherever you need it.
Worked example: Hi in binary
Take the word Hi one character at a time. H has the character code 72. Converting 72 to binary: 72 / 2 = 36 remainder 0; 36 / 2 = 18 remainder 0; 18 / 2 = 9 remainder 0; 9 / 2 = 4 remainder 1; 4 / 2 = 2 remainder 0; 2 / 2 = 1 remainder 0; 1 / 2 = 0 remainder 1. Reading remainders bottom-up gives 1001000, padded to 8 bits: 01001000. Check: 64 + 8 = 72, correct. Next, i has code 105: the same process gives 1101001, padded to 01101001. Check: 64 + 32 + 8 + 1 = 105, correct. So Hi in binary is 01001000 01101001.
Where this comes up in real life
Students meet this in every introductory computing course when they learn how text is stored. Developers debugging garbled text, the classic mojibake problem, inspect the raw bytes to see which encoding was actually used. Arduino projects that send text over a serial connection deal with these byte values directly. It is also just satisfying to see that a friendly greeting is, underneath, a tidy row of switches flipped on and off.
Mistakes to avoid
- Reading the bits backwards. Binary is read left to right with the largest place value first, just like decimal. 01000001 is 65; reversed it would be something else entirely.
- Forgetting that spaces count. A space is character code 32, or 00100000. Two words with a space between them have an invisible byte sitting in the middle of your output.
- Assuming one byte per character always. Plain English fits in one byte each, but emoji and many non-Latin scripts need two to four bytes under UTF-8.
Good to know
The output follows standard 8-bit encoding for the basic character set, and results are exact for that encoding. If your text includes emoji or accented characters, remember the byte count will be higher than the character count. To explore number bases on their own, the binary converter translates bit strings to decimal and hex, the decimal converter covers ordinary numbers, and the hex converter handles the base-16 side.