curly{bits}

curlybits / Binary Translator

Binary Translator

Type text to turn it into binary, the 0s and 1s computers store, or paste binary to read it as text. Each character's binary, decimal and hex code is shown underneath, so it's easy to follow how it works.

Input
Output

How to use the Binary Translator

  1. Choose Encode for text to binary, or Decode for binary to text.
  2. Type or paste on the left. The result appears on the right as you type.
  3. Binary can be split into bytes with spaces (01001000 01101001) or written as one long run of digits.
  4. Click Copy, or ⇅ Use as input to translate it back.

How text becomes binary

Every character has a number. In ASCII, capital H is 72 and i is 105. Written in base 2 with 8 digits each, they become one byte apiece:

H  →  72  →  01001000
i  →  105 →  01101001

So Hi in binary is 01001000 01101001. To go back, split the binary into groups of 8, turn each group into a number, and look up its character. See the ASCII table for every code.

Emoji and other languages

Characters outside English, like é, ก or 😀, need more than one byte. This translator uses UTF-8, the encoding used by the web, so é becomes 2 bytes, Thai letters 3, and most emoji 4. That's why the byte count can be higher than the number of characters.

Binary letters A to Z

LetterBinaryLetterBinary
A01000001a01100001
B01000010b01100010
C01000011c01100011
D01000100d01100100
E01000101e01100101
F01000110f01100110
G01000111g01100111
H01001000h01101000
I01001001i01101001
J01001010j01101010
K01001011k01101011
L01001100l01101100
M01001101m01101101
N01001110n01101110
O01001111o01101111
P01010000p01110000
Q01010001q01110001
R01010010r01110010
S01010011s01110011
T01010100t01110100
U01010101u01110101
V01010110v01110110
W01010111w01110111
X01011000x01111000
Y01011001y01111001
Z01011010z01111010

Frequently asked questions

What is 'hello' in binary?

01101000 01100101 01101100 01101100 01101111: one byte for each letter.

Why are there 8 digits for each letter?

Computers store text in bytes, and a byte is 8 bits. Small codes are padded with leading zeros so every byte has the same length.

Can I decode binary without spaces?

Yes. A continuous run of 0s and 1s is split into groups of 8 automatically, as long as the total length is a multiple of 8.

Is this the same as a number converter?

No. This translates text. To convert a number such as 45 to binary, use the decimal to binary converter.

Updated

Add this binary translator to your website

Free for blogs, schools and businesses. Copy the code below and paste it into your page's HTML. The tool works exactly like this one and runs in your visitors' browsers, so nothing is uploaded. Please keep the credit line so others can find it too.

Preview embed ↗