Binary to Text

Paste your 0s and 1s and read the message. Spaces, line breaks, commas and 0b prefixes are all fine.

Try

How your binary was read

BytesCodeCharacter

Read binary by hand in three steps

You only need to add small numbers and look something up. Let's decode 01001000 01101001.

  1. Split it into groups of eight

    Each group is one byte. This string already has a space in the right place, so there are two bytes. If yours arrives as one long run, count off eight digits at a time from the left.

  2. Turn each byte into a number

    The eight positions are worth 128, 64, 32, 16, 8, 4, 2 and 1. Add the ones that hold a 1, so 01001000 is 64 + 8 = 72, and 01101001 is 64 + 32 + 8 + 1 = 105.

  3. Look the numbers up

    In the ASCII table, 72 is H and 105 is i. The message says "Hi".

A shortcut for spotting letters

After a few bytes you can stop adding and read the pattern. The start of a byte tells you what kind of character it is.

Byte looks likeIt's probably
010xxxxxA capital letter
011xxxxxA lowercase letter
0011xxxxA digit
00100000A space

For letters, the last five bits give the position in the alphabet. In 01001000 they are 01000, which is 8, and the 8th letter is H. Digits work the same way with the last four bits, so 00110111 is the digit 7.

The alphabet in binary

Every English letter fits in one byte. A capital and its lowercase partner differ only in the third bit from the left.

#CapitalLowercase
1A 01000001a 01100001
2B 01000010b 01100010
3C 01000011c 01100011
4D 01000100d 01100100
5E 01000101e 01100101
6F 01000110f 01100110
7G 01000111g 01100111
8H 01001000h 01101000
9I 01001001i 01101001
10J 01001010j 01101010
11K 01001011k 01101011
12L 01001100l 01101100
13M 01001101m 01101101
#CapitalLowercase
14N 01001110n 01101110
15O 01001111o 01101111
16P 01010000p 01110000
17Q 01010001q 01110001
18R 01010010r 01110010
19S 01010011s 01110011
20T 01010100t 01110100
21U 01010101u 01110101
22V 01010110v 01110110
23W 01010111w 01110111
24X 01011000x 01111000
25Y 01011001y 01111001
26Z 01011010z 01111010

Digits and punctuation

CharacterBinary
000110000
100110001
200110010
300110011
400110100
500110101
600110110
700110111
CharacterBinary
800111000
900111001
(space)00100000
.00101110
,00101100
!00100001
?00111111
'00100111

Practice on these

Try the first few letters with the shortcut above, then load the message to check yourself.

01010100 01101000 01100001 01101110 01101011 01110011

01000111 01101111 01101111 01100100 00100000 01101100 01110101 01100011 01101011

00110001 00110000 00110000 00100101

When the result looks wrong

It says a group can't be split into bytes

A digit went missing or got added, often while copying from an image or a long line. A string with no spaces has to divide evenly by 8, so 39 digits means one is lost somewhere.

The start is fine, then it turns to nonsense

One lost digit in an unspaced string shifts every byte after it. Find where the words stop making sense and check the digits around that spot.

It says the bytes aren't valid UTF-8

Some bytes only make sense as part of a longer character. The é in older Latin-1 files is the single byte 11101001, which doesn't work alone in UTF-8. The text may come from an older encoding, or a byte may have changed.

You get one odd symbol

The binary might be a number and not text at all. 00101010 reads as an asterisk here but means 42 as a number. Try it in the binary converter.

The text box looks blank

Bytes below 32 are control codes with nothing to display. 00001010 is a line break, for example. The table above still lists them, so you can see what arrived.

Common questions

Why are there eight digits per letter?

Computers settled on the 8-bit byte as their basic unit of storage, so text is grouped the same way. English letters only need seven bits, which is why every one of them starts with a 0 here.

My binary has seven digits per group. Will it work?

Yes, as long as the groups are separated by spaces, because missing leading zeros are filled in. A 7-bit string with no spaces can't be told apart reliably, so add a space after every seven digits first.

Does it decode Hindi, Chinese and emoji?

Yes, when the binary was made with UTF-8, the standard on the web. These characters take two to four bytes each, and the table shows which bytes belong together.

Is my message sent anywhere?

No. Decoding happens inside your browser, so what you paste never reaches our server.

How do I go the other way?

Use the binary translator to turn your own words into binary.

Want to write a reply in binary?The binary translator turns text into binary and back.