Reference

What Is Binary Code?

Binary code is the language computers use to store and process everything, written with just two digits: 0 and 1. Each 0 or 1 is a bit, and a group of eight bits is a byte. A single byte can represent one letter, digit or symbol.

Want to try it? Open the Binary Code translator and encode or decode your own text in your browser.
A
01000001
B
01000010
C
01000011
D
01000100
E
01000101
F
01000110
G
01000111
H
01001000
I
01001001
J
01001010
K
01001011
L
01001100
M
01001101
N
01001110
O
01001111
P
01010000
Q
01010001
R
01010010
S
01010011
T
01010100
U
01010101
V
01010110
W
01010111
X
01011000
Y
01011001
Z
01011010

Why computers use binary

Computers are built from switches that are either off or on. Off is 0 and on is 1. Using only two states makes the hardware reliable and cheap, because it is far easier to tell apart two clear signals than many fine gradations.

From those two digits, everything is built. Numbers, text, images and sound are all stored as long strings of bits. The meaning depends on how the software chooses to read them.

How letters become binary

Text is stored using a code called ASCII, which gives each character a number. The capital letter A is 65, which in 8-bit binary is 01000001. Lowercase a is 97, or 01100001.

To turn text into binary, each character is looked up to get its number, and that number is written in base 2. To read binary back, you reverse the steps: group the bits into bytes, convert each to a number, and look up the character.

Frequently asked questions

What is a bit and a byte?

A bit is a single binary digit, 0 or 1. A byte is eight bits grouped together, which is enough to store one character of text or a number from 0 to 255.

How do I read binary code?

Split it into 8-digit bytes, convert each byte to a number, then look that number up in the ASCII table to get the character. Our binary translator does this instantly.

What is 01001000 in text?

01001000 is 72 in decimal, which is the capital letter H in ASCII.

Keep exploring