curly{bits}

curlybits / Binary Translator / Text to Binary

Text to Binary Converter

Type or paste any text to see it in binary as you type. Each character becomes one or more 8-bit bytes, and the table underneath shows the code for every character.

Input
Output

How to use the Text to Binary Converter

  1. Type or paste your text in the left box.
  2. The binary appears on the right as you type.
  3. Untick Space between bytes for one continuous string of 0s and 1s.
  4. Click Copy.

How text becomes binary

Computers store each character as a number, then store the number in binary. On the web that numbering is UTF-8: the first 128 characters (English letters, digits and punctuation) match the old ASCII table and take one byte each, while accented letters, Thai, Chinese and emoji take two to four bytes.

Example: Hi → H is 72 → 01001000, i is 105 → 01101001, so "Hi" is 01001000 01101001.

The alphabet in binary

LetterBinaryLetterBinary
A01000001a01100001
B01000010b01100010
C01000011c01100011
D01000100d01100100
E01000101e01100101
F01000110f01100110
G01000111g01100111
H01001000h01101000
I01001001i01101001
J01001010j01101010
K01001011k01101011
L01001100l01101100
M01001101m01101101
N01001110n01101110
O01001111o01101111
P01010000p01110000
Q01010001q01110001
R01010010r01110010
S01010011s01110011
T01010100t01110100
U01010101u01110101
V01010110v01110110
W01010111w01110111
X01011000x01111000
Y01011001y01111001
Z01011010z01111010

Notice the pattern: lowercase is uppercase plus 32, so only the third bit from the left changes (01000001 A vs 01100001 a). Digits 0–9 are 00110000 to 00111001, and a space is 00100000.

Uses

  • Homework and computer-science classes on character encoding.
  • Puzzles, escape rooms and secret messages.
  • Checking exactly which bytes a string contains, for example hidden spaces or non-ASCII characters.

Frequently asked questions

How do I convert text to binary by hand?

Look up each character's number in the ASCII table, then convert it to binary with 8 digits. A is 65, which is 01000001.

What is 'A' in binary?

01000001. Lowercase a is 01100001.

Why does an emoji give 32 bits?

Most emoji take 4 bytes in UTF-8, the encoding used on the web.

Updated