Text to Binary Converter: How Letters Become 0s and 1s
By FindMySum · Last reviewed
Type or paste words above and the text to binary converter shows the 0s and 1s a computer stores for them, one group of eight bits per byte. Switch the direction to turn binary back into readable text. It works with any language and with emoji, and everything happens in your browser.
Reading the output
Each group of eight digits is one byte. Read it as a number by adding the place values of the 1s, which from left to right are 128, 64, 32, 16, 8, 4, 2 and 1. The letter H is 01001000: 64 + 8 = 72, and 72 is H's code. The hex view writes the same byte as 48 and the decimal view as 72, which is handy when you are comparing with a programming manual or a character chart.
A worked example
The word Hi ✓ turns into six bytes. H is 01001000 and i is 01101001. The space is 00100000, which is 32. The check mark is a single character, but it sits at U+2713 in Unicode, too high for one byte, so UTF-8 spreads it over three: 11100010 10011100 10010011. The first byte starts with 1110, which tells a decoder that this character takes three bytes, and each following byte starts with 10 to mark it as a continuation. That pattern is why an accidentally dropped byte produces an error rather than a different letter.
How to use it
- Leave the encoding on UTF-8 unless you need to match a program that uses UTF-16.
- Choose binary, hex or decimal output. Hex is the most compact way programmers write bytes.
- To decode, paste digits with or without spaces. Separate groups with spaces if they are shorter than eight bits, as in many ASCII tables.
- Copy the result or use Swap to check that it converts back to the same text.
Common mistakes
Dropping leading zeros. The letter A is 01000001, not 1000001 run together with its neighbours. Without spaces, a missing zero shifts every following bit and the rest of the message turns to nonsense.
Mixing up characters and values. The text 5 is the byte 00110101, while the number five in binary is 101. For the second, use the number system converter; for adding or multiplying binary numbers, the binary calculator.
Assuming one byte per letter. Only ASCII characters are one byte in UTF-8. A message with accents or emoji has more bytes than letters, which matters when a system limits a field by bytes rather than characters.
The Base64 decoder is the next step up: it packs the same bytes into printable characters, four characters for every three bytes.