Text to Binary Converter

Type anything and see the bytes a computer would store for it.

Binary

How it works

To write a letter in binary, find its number in the ASCII table and convert that number to base 2. Capital A is 65. In binary that is 1000001, and with a leading zero to fill the byte it is written 01000001.

You can build any byte by subtraction. Start from 128 and work down through 64, 32, 16, 8, 4, 2 and 1. If the weight fits into what is left of your number, write 1 and subtract it. If not, write 0. For 65: 128 does not fit, 64 fits and leaves 1, then nothing fits until the final 1. Result: 01000001.

Every character on a US keyboard fits in one byte. Characters outside basic ASCII, such as é, the euro sign or an emoji, are stored in UTF-8 as two to four bytes, and this converter shows all of them.

Worked example

Hi is H (72) and i (105): 01001000 01101001

Binary alphabet chart

LetterBinaryDecimalLetterBinaryDecimal
A0100000165a0110000197
B0100001066b0110001098
C0100001167c0110001199
D0100010068d01100100100
E0100010169e01100101101
F0100011070f01100110102
G0100011171g01100111103
H0100100072h01101000104
I0100100173i01101001105
J0100101074j01101010106
K0100101175k01101011107
L0100110076l01101100108
M0100110177m01101101109
N0100111078n01101110110
O0100111179o01101111111
P0101000080p01110000112
Q0101000181q01110001113
R0101001082r01110010114
S0101001183s01110011115
T0101010084t01110100116
U0101010185u01110101117
V0101011086v01110110118
W0101011187w01110111119
X0101100088x01111000120
Y0101100189y01111001121
Z0101101090z01111010122

Digits and space

CharacterBinaryDecimal
space0010000032
00011000048
10011000149
20011001050
30011001151
40011010052
50011010153
60011011054
70011011155
80011100056
90011100157

Common questions

How many bits is one letter?

Eight bits, or one byte, for English letters, digits and common punctuation in ASCII and UTF-8.

How do you write your name in binary?

Type it in the box above. Each letter becomes eight digits. Upper and lower case letters have different codes, so capitalise it the way you want it read.

Related tools