TextBinary

0s and 1s to characters

Binary to ASCII

Paste bits and read the ASCII characters they stand for. Eight bits per byte, with the complete 0 to 127 table below.

Runs in your browser, nothing uploaded. Text is read as UTF-8, so plain ASCII comes out the same with no setting to change.

Text output

Try one
0 bytes 0 bits 0 characters

What binary to ASCII means

ASCII is a fixed table of 128 characters, each with a number from 0 to 127. Binary is the way those numbers are written down. So converting binary to ASCII is a two-step job: group the bits into bytes of eight, turn each byte into a number, then look the number up in the table. 01000001 is 65, and 65 is a capital A.

That is what the box at the top of this page does, as you type, with nothing uploaded. The table below is the same one it uses.

How to read a byte by hand

Each of the eight positions has a value: 128, 64, 32, 16, 8, 4, 2, 1. Add up the positions that hold a 1 and you have the code.

Two shortcuts save most of the counting. Capitals start at 65 and lowercase at 97, exactly 32 apart, so only one bit changes between A and a. And a letter's place in the alphabet is the last five bits, which makes B 01000010 and C 01000011.

The full ASCII table, 0 to 127

The first 32 codes are control characters: they command a device rather than print a glyph. 8 is backspace, 9 is tab, 10 is line feed, 13 is carriage return, 27 is escape. You will see them in files and almost never in a sentence. Code 32 is the first printable one, the space, and the table below covers 32 to 127.

Dec Char Binary Dec Char Binary
32 (space) 00100000 80 P 01010000
33 ! 00100001 81 Q 01010001
34 " 00100010 82 R 01010010
35 # 00100011 83 S 01010011
36 $ 00100100 84 T 01010100
37 % 00100101 85 U 01010101
38 & 00100110 86 V 01010110
39 ' 00100111 87 W 01010111
40 ( 00101000 88 X 01011000
41 ) 00101001 89 Y 01011001
42 * 00101010 90 Z 01011010
43 + 00101011 91 [ 01011011
44 , 00101100 92 \ 01011100
45 - 00101101 93 ] 01011101
46 . 00101110 94 ^ 01011110
47 / 00101111 95 _ 01011111
48 0 00110000 96 ` 01100000
49 1 00110001 97 a 01100001
50 2 00110010 98 b 01100010
51 3 00110011 99 c 01100011
52 4 00110100 100 d 01100100
53 5 00110101 101 e 01100101
54 6 00110110 102 f 01100110
55 7 00110111 103 g 01100111
56 8 00111000 104 h 01101000
57 9 00111001 105 i 01101001
58 : 00111010 106 j 01101010
59 ; 00111011 107 k 01101011
60 < 00111100 108 l 01101100
61 = 00111101 109 m 01101101
62 > 00111110 110 n 01101110
63 ? 00111111 111 o 01101111
64 @ 01000000 112 p 01110000
65 A 01000001 113 q 01110001
66 B 01000010 114 r 01110010
67 C 01000011 115 s 01110011
68 D 01000100 116 t 01110100
69 E 01000101 117 u 01110101
70 F 01000110 118 v 01110110
71 G 01000111 119 w 01110111
72 H 01001000 120 x 01111000
73 I 01001001 121 y 01111001
74 J 01001010 122 z 01111010
75 K 01001011 123 { 01111011
76 L 01001100 124 | 01111100
77 M 01001101 125 } 01111101
78 N 01001110 126 ~ 01111110
79 O 01001111 127 DEL 01111111

The table is not random. Codes 48 to 57 are the digits, in order. Codes 65 to 90 are the capitals, 97 to 122 the lowercase letters, both in alphabetical order. Punctuation fills the gaps: 33 to 47, 58 to 64, 91 to 96 and 123 to 126. Once you know the four blocks, you can guess a code before you look it up.

Binary, ASCII and UTF-8: what the difference is

These three words get used as if they were the same thing, and they are not.

Binary is a base. It says how a number is written, using only 0 and 1. Any number can be written in binary, including numbers far outside the ASCII range.

ASCII is a character set. It says which number means which character: 65 means A, 32 means space, and it stops at 127. It is a mapping, not a way of writing numbers.

UTF-8 is an encoding that starts from exactly that mapping. The first 128 codes are byte-for-byte identical to ASCII, which is why this page and a UTF-8 decoder agree on every English string. Above 128 they part ways: UTF-8 borrows extra bytes to reach the rest of the world's characters, ASCII simply has no entry.

The practical version: a byte under 128 means the same character in ASCII and in UTF-8. A byte of 128 or more means something in UTF-8 and nothing in ASCII. That is the whole reason a Chinese character needs three bytes here and a single Latin letter needs one.

What this page does not read

Extended ASCII is the common name for codes 128 to 255. There was never one standard for them: Windows-1252, Latin-1 and the old DOS code pages all disagree above 127, so the same byte can mean an accented letter, a currency sign or a box-drawing character depending on where it came from. Rather than guess, this converter reads the bytes as UTF-8, which handles modern text correctly and shows a placeholder where a legacy byte does not fit. If your source is a 1980s file, that placeholder is the honest answer, not a bug.

Related converters

Binary to text is the general decoder, text to binary goes the other way, and the binary translator page explains the method with sentence-length examples. The binary converter on the home page handles both directions in a single box.

Answers

Binary to ASCII questions

What is the difference between binary and ASCII?

It is a character table, and a number inside it. ASCII maps 128 characters to the numbers 0 to 127. Binary is how those numbers are written. Converting one to the other means grouping the bits into bytes of eight, reading the number, and looking it up.

Why does the ASCII table stop at 127?

Because it was designed for seven bits, which gives 128 slots: enough for English, digits and punctuation, with room for control codes. Eight bits were soon needed for the rest of the world, which is why extended ASCII, Latin-1 and eventually UTF-8 appeared.

Can this page decode extended ASCII?

Every English character and every punctuation mark, plus the control codes and 127. It does not do 128 to 255, because that range was never standardised and different old code pages disagree about it. Those bytes are read as UTF-8 here, which is what modern text uses.

Is binary to ASCII the same as binary to UTF-8?

In practice they agree for anything under 128, because ASCII is the first half of UTF-8 and the codes were inherited unchanged. They part ways above that: UTF-8 keeps going with two to four bytes per character, ASCII has nothing there.

Can I decode any eight bits as an ASCII character?

You can pick any eight bits and look it up, but only 32 to 127 are useful: the first 32 codes are instructions to a device such as tab or line feed and print nothing. That is why a decoded file sometimes has invisible characters in it.

Why does my result contain a placeholder box?

Then the bits probably did not come from text. Images, compressed files and programs contain bytes that are not characters, plus codes in the control range that print nothing. Check that the source was actually text before assuming the tool is wrong.

What did you decode?

Paste your result, ask about a string that came out wrong, or leave a tip for the next person. Plain text only.