Binary Translator

Binary Code Alphabet

The binary code alphabet writes each letter as an 8-bit byte from its US-ASCII code: A is 01000001 (65) and a is 01100001 (97). The tables below list A-Z and a-z with decimal, hex and the A1Z26 position.

Uppercase letters A-Z in binary

Uppercase letters in binary
LetterBinary (8-bit)DecimalHexA1Z26
A0100000165411
B0100001066422
C0100001167433
D0100010068444
E0100010169455
F0100011070466
G0100011171477
H0100100072488
I0100100173499
J01001010744A10
K01001011754B11
L01001100764C12
M01001101774D13
N01001110784E14
O01001111794F15
P01010000805016
Q01010001815117
R01010010825218
S01010011835319
T01010100845420
U01010101855521
V01010110865622
W01010111875723
X01011000885824
Y01011001895925
Z01011010905A26

Lowercase letters a-z in binary

Lowercase letters in binary
LetterBinary (8-bit)DecimalHexA1Z26
a0110000197611
b0110001098622
c0110001199633
d01100100100644
e01100101101655
f01100110102666
g01100111103677
h01101000104688
i01101001105699
j011010101066A10
k011010111076B11
l011011001086C12
m011011011096D13
n011011101106E14
o011011111116F15
p011100001127016
q011100011137117
r011100101147218
s011100111157319
t011101001167420
u011101011177521
v011101101187622
w011101111197723
x011110001207824
y011110011217925
z011110101227A26

Example: first letters

  • A = 65 = 01000001
  • B = 66 = 01000010
  • C = 67 = 01000011
  • a = 97 = 01100001
  • b = 98 = 01100010
  • c = 99 = 01100011

How the binary alphabet is built

US-ASCII gives every basic Latin letter a number: capital letters run from 65 to 90 and lowercase letters from 97 to 122. Writing that number in binary with eight digits gives the byte. Every row in the tables is calculated from the character code, not typed.

Lowercase letters are the capital plus 32, which is the same as setting a single bit (the 32 bit, 00100000). That is why 01000001 (A) and 01100001 (a) differ in only one position.

Reading and writing a word

To spell a word, look up each letter and write its byte, separated by spaces. To read binary, split the bits into groups of 8 and look each group up. The binary to text and text to binary tools do this automatically, and UTF-8 encodes these letters identically to ASCII.

The last column, A1Z26, is the position of the letter in the alphabet (A is 1, Z is 26). It is a different code, used by the A1Z26 cipher, and is shown here only for comparison.

Not the same as a cipher

Binary code is an encoding, not encryption: anyone with the table can read it. Spaces and punctuation have codes too (space is 00100000), and accented letters need more than one byte in UTF-8, so they are not in this table.

Frequently asked questions

What is the binary code for A?
01000001, which is 65 in decimal and 41 in hex.
Why are there different codes for capital and small letters?
They are different characters in ASCII. Lowercase is the capital plus 32.
Do all letters use 8 bits?
ASCII needs only 7 bits, but bytes are 8 bits, so a leading 0 is added.
How do I translate a whole word?
Use the text to binary converter, which applies this table to every character.

Standards and references