Text to binary

Type some text and see its binary (and hexadecimal) code instantly. You can also paste bits to turn them back into text. Everything happens in your browser.

Hello = 01001000 01100101 01101100 01101100 01101111

🔒 What you type never leaves your device. Everything is calculated in your browser.

Type in any of the four fields and the others update on their own. No size limit, and only for positive whole numbers.

Any base (2 to 36)

Text to binary and hex

You can paste bits to turn them into text.

How to convert text to binary

  1. Type or paste your text in the "Text" field.
  2. See the code in "Binary (8 bits per character)", highlighted.
  3. To go back to text, paste the bits into that same field.
  4. Tap Copy to take the result with you.

How it works

Each character is stored as one or more bytes, and each byte is written with 8 bits. For example, the letter H is the number 72, which in binary is 01001000; "Hi" is 01001000 01101001.

UTF-8 encoding is used, so accented letters and emojis take more than one byte. The table below shows the code for letters and numbers.

Text to binary and hex

TextDecimal (base 10)Binary (base 2)Hexadecimal (base 16)
A650100000141
B660100001042
C670100001143
D680100010044
E690100010145
F700100011046
G710100011147
H720100100048
I730100100149
J74010010104A
K75010010114B
L76010011004C
M77010011014D
N78010011104E
O79010011114F
P800101000050
Q810101000151
R820101001052
S830101001153
T840101010054
U850101010155
V860101011056
W870101011157
X880101100058
Y890101100159
Z90010110105A
a970110000161
b980110001062
c990110001163
d1000110010064
e1010110010165
f1020110011066
g1030110011167
h1040110100068
i1050110100169
j106011010106A
k107011010116B
l108011011006C
m109011011016D
n110011011106E
o111011011116F
p1120111000070
q1130111000171
r1140111001072
s1150111001173
t1160111010074
u1170111010175
v1180111011076
w1190111011177
x1200111100078
y1210111100179
z122011110107A
0480011000030
1490011000131
2500011001032
3510011001133
4520011010034
5530011010135
6540011011036
7550011011137
8560011100038
9570011100139

Good to know

Frequently asked questions

How do you write "Hello" in binary?

01001000 01100101 01101100 01101100 01101111: each letter is 8 bits.

Can I translate binary to text?

Yes: paste the bits into the binary field and you will see the text.

Why does an accented letter take more bits?

Because in UTF-8 non-English characters use 2 or more bytes.

Is my text sent to a server?

No. Everything happens in your browser.