ASCII to binary converter

Type ASCII text and get each character as an 8-bit binary byte, ready to paste into homework, code or a puzzle.

6 chars · 6 bytes
48 bits

Printable ASCII in binary (32–126)

CharBinaryDec
space0010000032
!0010000133
"0010001034
#0010001135
$0010010036
%0010010137
&0010011038
'0010011139
(0010100040
)0010100141
*0010101042
+0010101143
,0010110044
-0010110145
.0010111046
/0010111147
00011000048
10011000149
20011001050
30011001151
40011010052
50011010153
60011011054
70011011155
80011100056
90011100157
:0011101058
;0011101159
<0011110060
=0011110161
>0011111062
?0011111163
CharBinaryDec
@0100000064
A0100000165
B0100001066
C0100001167
D0100010068
E0100010169
F0100011070
G0100011171
H0100100072
I0100100173
J0100101074
K0100101175
L0100110076
M0100110177
N0100111078
O0100111179
P0101000080
Q0101000181
R0101001082
S0101001183
T0101010084
U0101010185
V0101011086
W0101011187
X0101100088
Y0101100189
Z0101101090
[0101101191
\0101110092
]0101110193
^0101111094
_0101111195
CharBinaryDec
`0110000096
a0110000197
b0110001098
c0110001199
d01100100100
e01100101101
f01100110102
g01100111103
h01101000104
i01101001105
j01101010106
k01101011107
l01101100108
m01101101109
n01101110110
o01101111111
p01110000112
q01110001113
r01110010114
s01110011115
t01110100116
u01110101117
v01110110118
w01110111119
x01111000120
y01111001121
z01111010122
{01111011123
|01111100124
}01111101125
~01111110126

Control codes 0–31 and 127 are in the full ASCII table.

ASCII vs. UTF-8

ASCII defines 128 characters. UTF-8 keeps those same 128 byte values and adds multi-byte sequences for everything else, so for plain English text the two give identical binary. This page defaults to ASCII and tells you when a character falls outside it; the encoding menu switches to UTF-8, UTF-16 or Windows-1252 when you need them. For the general tool see text to binary.

Related: Hex to ASCII · ASCII to hex · Binary to ASCII

Questions people ask

How do I convert ASCII to binary?

Look up each character’s ASCII code and write it in base 2 using 8 digits. “B” = 66 = 64 + 2 = 01000010.

What is “hi” in binary?

01101000 01101001.

Why do all ASCII bytes start with 0?

ASCII codes go up to 127, which needs only 7 bits, so the eighth (leftmost) bit of every ASCII byte is 0.

How do I write a name in binary?

Type it in the box above. Uppercase letters start 010, lowercase 011, and the last five bits count the letter’s position in the alphabet. See the binary alphabet.