How English becomes binary
- Each character gets a number from the ASCII or Unicode table: H is 72, e is 101, a space is 32.
- Each number is written in binary: 72 is 1001000.
- The binary is padded to a full byte of 8 digits with zeros on the left: 01001000.
So "Hey" becomes 01001000 01100101 01111001. To see how the number-to-binary step works on its own, try the decimal to binary converter, which shows the division steps.
Text with accents, symbols and emoji
English letters, digits and common punctuation each fit in one byte. Other characters take more, because the converter uses UTF-8, the encoding behind almost all websites:
| Character | Bytes | Binary |
|---|---|---|
| A | 1 | 01000001 |
| é | 2 | 11000011 10101001 |
| € | 3 | 11100010 10000010 10101100 |
| 😀 | 4 | 11110000 10011111 10011000 10000000 |
That's also why the byte count under the result can be higher than the number of characters you typed.
Spaces or no spaces?
Spaces between bytes make binary far easier to read and check, so that's the default. Without spaces the message is one long run, which still decodes correctly as long as no digit goes missing. Puzzles and classroom exercises often use the spaced form; programs usually store the bytes with no separator at all. To decode a message back to words, use the binary to text converter.