StringMash.com

Binary alphabet

A to Z in binary, capitals and lowercase, with the trick to reading them.

Conversion
2 characters
Updates as you type

Swap to read binary back

Show the steps
  1. Each character has a number. UTF-8 stores it as one or more bytes, and each byte is written as 8 binary digits.
  2. H is 72, which is 01001000
  3. i is 105, which is 01101001
Printable chart
A TO Z IN EIGHT BITS

Binary alphabet chart

Download PDF
LetterCapitalLowercase
A a0100000101100001
B b0100001001100010
C c0100001101100011
D d0100010001100100
E e0100010101100101
F f0100011001100110
G g0100011101100111
H h0100100001101000
I i0100100101101001
J j0100101001101010
K k0100101101101011
L l0100110001101100
M m0100110101101101
N n0100111001101110
O o0100111101101111
P p0101000001110000
Q q0101000101110001
R r0101001001110010
S s0101001101110011
T t0101010001110100
U u0101010101110101
V v0101011001110110
W w0101011101110111
X x0101100001111000
Y y0101100101111001
Z z0101101001111010

The pattern in every letter

Look down the chart and every capital starts 010, and every lowercase letter starts 011. The last five bits count through the alphabet: A is 00001, B is 00010, and Z is 11010, which is 26. That's the whole trick.

So you can read a letter without the chart. Drop the first three bits, turn the last five into a number, and count that far into the alphabet. 01001000 ends 01000, which is 8, and the eighth letter is H.

Capital and lowercase differ in a single bit, the third from the left. That one bit is worth 32, which is why a and A are 32 apart in the ASCII table. Flip it and the case changes.

Where the numbers come from

Each letter's binary is its ASCII code written in base 2. A is 65, which is 64 + 1, so its binary has a 1 in the 64s place and a 1 in the 1s place: 01000001. The binary to decimal converter shows the working for any of them.

Eight bits make a byte, so each letter here takes one byte. Letters outside English, and emoji, take more than one byte in UTF-8, and the translator above shows every byte.

A worked example: Ada

A capital A starts 010 and ends 00001, the first letter: 01000001. A lowercase d starts 011 and ends 00100, which is 4: 01100100. A lowercase a is 011 then 00001: 01100001. So Ada in binary is 01000001 01100100 01100001.

Going the other way, 01001000 01101001 00100001 reads as H (010, then 8), i (011, then 9), and 00100001, which starts 001 and so isn't a letter at all: it's the exclamation mark from the table below. Hi!

Digits, space and punctuation

These all start 001. The digits end in their own value: 0011 then the digit in four bits.
CharacterBinaryASCII code
00011000048
10011000149
20011001050
30011001151
40011010052
50011010153
60011011054
70011011155
80011100056
90011100157
Space0010000032
!0010000133
,0010110044
.0010111046
?0011111163

Questions

What is A in binary?

01000001 for a capital A, and 01100001 for a lowercase a.

Why does every letter have eight digits?

Each letter is stored as one byte, which is eight bits. The leading 0 is part of the byte even though it doesn't change the number.

What about letters with accents, like é?

They aren't in ASCII, so they don't fit in one byte. In UTF-8, é takes two: 11000011 10101001. The translator at the top shows both bytes.

How do I write my name in binary?

Type it into the translator at the top. Each letter becomes eight digits, with a space between letters.

Sources

Added . Last updated and reviewed . What's new