BinaryASCII

Bits per character
7 or 8 bits each

Try

3 characters · 3 bytes · 24 bits

Character breakdown

ASCII codes, 8 bits per character
CharacterDecimalHexBinaryDescription
H724801001000Uppercase letter
i1056901101001Lowercase letter
!332100100001Exclamation mark
Guide

How to convert binary to ASCII

  1. Split the binary into groups of 8 bits, one per character, or 7 bits for 7-bit ASCII. Spaces between the groups make this easy.
  2. Convert each group to decimal by adding the place values of its 1 bits: 01000011 is 64 + 2 + 1 = 67.
  3. Look up each code in the ASCII table. 67 is C. Write the characters in the same order.

Worked example

Decoding 01000011 01100001 01110100, one byte at a time:

BinaryDecimalCharacter
0100001167C
0110000197a
01110100116t

01000011 01100001 01110100 → Cat

  • Every ASCII byte starts with 0. A group that starts with 1 is 128 or more, so it isn't ASCII.
  • Codes below 32 are control characters, like 10 for a new line. The breakdown names each one.
  • For UTF-8 text with accents or emoji, use the binary to text converter.

Printable ASCII characters in binary

Codes 32–126
CharDecBinary
Space3200100000
!3300100001
"3400100010
#3500100011
$3600100100
%3700100101
&3800100110
'3900100111
(4000101000
)4100101001
*4200101010
+4300101011
,4400101100
-4500101101
.4600101110
/4700101111
04800110000
14900110001
25000110010
35100110011
45200110100
55300110101
65400110110
75500110111
CharDecBinary
85600111000
95700111001
:5800111010
;5900111011
<6000111100
=6100111101
>6200111110
?6300111111
@6401000000
A6501000001
B6601000010
C6701000011
D6801000100
E6901000101
F7001000110
G7101000111
H7201001000
I7301001001
J7401001010
K7501001011
L7601001100
M7701001101
N7801001110
O7901001111
CharDecBinary
P8001010000
Q8101010001
R8201010010
S8301010011
T8401010100
U8501010101
V8601010110
W8701010111
X8801011000
Y8901011001
Z9001011010
[9101011011
\9201011100
]9301011101
^9401011110
_9501011111
`9601100000
a9701100001
b9801100010
c9901100011
d10001100100
e10101100101
f10201100110
g10301100111
CharDecBinary
h10401101000
i10501101001
j10601101010
k10701101011
l10801101100
m10901101101
n11001101110
o11101101111
p11201110000
q11301110001
r11401110010
s11501110011
t11601110100
u11701110101
v11801110110
w11901110111
x12001111000
y12101111001
z12201111010
{12301111011
|12401111100
}12501111101
~12601111110
Learn

How binary to ASCII decoding works

Splitting bits into characters, 7-bit versus 8-bit codes, and reading binary at a glance.

Puzzles, homework and old data dumps often hide text in 0s and 1s, and a binary to ASCII converter turns that string back into the characters it encodes. Each ASCII character is a number from 0 to 127, written in 7 or 8 bits, so decoding comes down to splitting the bits into groups and looking each number up. Paste binary above to see the text, and every character's code, as you type. Here's how binary to ASCII decoding works, and how to read ASCII binary without a table.

How binary becomes ASCII text

Decoding takes three steps. Split the binary into groups of 8 bits, one per character. Convert each group to a decimal number by adding the place values of its 1 bits: 128, 64, 32, 16, 8, 4, 2 and 1. Then find each number in the ASCII table. The binary 01001000 01101001 splits into 72 and 105, and those are the codes for H and i, so the message is Hi. Longer messages work the same way, one group at a time, and the character breakdown under the converter lists every group with its decimal and hex code so you can check each one.

Decoding a byte by hand

Take 01000011. Its 1 bits sit in the 64, 2 and 1 places, so the value is 64 + 2 + 1 = 67, the letter C. Do the same for 01100001, which is 64 + 32 + 1 = 97, or a, and for 01110100, which is 64 + 32 + 16 + 4 = 116, or t. Together the three bytes spell Cat. The binary to decimal converter shows this place-value working for any group of bits.

7-bit or 8-bit groups

ASCII codes need only 7 bits, so you'll sometimes see them without the leading 0: 1001000 1101001 is also Hi. When the groups are separated by spaces, this converter reads either form in any mode. The setting only matters for binary written without separators. In 8-bit mode, 0100100001101001 splits into two bytes. A 14-bit run like 10010001101001 can't be split into bytes, so switch to 7-bit and it reads Hi. Some lengths, such as 56 bits, divide into both 7s and 8s and decode to different text, so pick the width that matches your source.

Reading ASCII binary at a glance

The first three or four bits of an ASCII byte tell you what kind of character it is:

Starts withCodesCharacters
0000–31Control characters
001032–47Space and ! " # $ % & ' ( ) * + , - . /
001148–63Digits 0–9, then : ; < = > ?
01064–95@, uppercase A–Z, [ \ ] ^ _
01196–127`, lowercase a–z, { | } ~ and DEL

For letters, the last five bits are the position in the alphabet. 01011010 ends in 11010, which is 26, so it's Z. The third bit from the left is the case bit: it's 0 for uppercase and 1 for lowercase.

When the binary isn't ASCII

ASCII ends at 127, or 01111111, so every ASCII byte starts with 0. A byte that starts with 1 is 128 or more and has no meaning in ASCII. Usually it's part of UTF-8 text, where characters beyond ASCII take several bytes: 11000011 10101001 is the UTF-8 encoding of é. Older files may use an "extended ASCII" code page instead, such as Windows-1252, where the same byte can stand for a different character. Rather than guess, this converter stops and names the first value outside ASCII. For UTF-8, decode it with the binary to text converter.

Control characters in decoded text

Codes 0 to 31 and 127 are control characters. Some still do something useful: 00001010 (10) is a line feed that starts a new line, and 00001001 (9) is a tab. Others, like 00000000 (NUL) or 00000111 (BEL), were meant for old terminals and print nothing. They're still part of the decoded text even when you can't see them, so the character breakdown labels every one with its standard short name and meaning.

Decoding tricks

  • Spaces, commas, semicolons and new lines all work as separators, and a 0b prefix on each group is ignored.
  • The copy button next to the output copies the decoded text exactly, control characters included.
  • Switch between 8-bit and 7-bit at any time. The text and the breakdown update straight away.
  • To go the other way, use the ASCII to binary converter.
  • For the hex code of each character, try the text mode of the hex converter, or look it up in the ASCII table.

Stuck on a message? Check the first bit of each byte. If any byte starts with 1, it isn't ASCII, and the binary to text converter is the one to use.

FAQ

Frequently asked questions

Quick answers about the binary to ascii converter and how it works.

How do I convert binary to ASCII?

Split the bits into groups of 8, turn each group into a decimal number, and look that number up in the ASCII table. 01001000 01101001 is 72 and 105, which spell Hi.

Do I need spaces between the characters?

No. Without separators the bits are split into groups of 8, or 7 in 7-bit mode, so 0100100001101001 also decodes to Hi. The total length must divide evenly into groups, and the converter tells you when it doesn't.

Can I decode 7-bit ASCII?

Yes. Groups separated by spaces decode in either mode, so 1001000 1101001 reads Hi. For 7-bit codes written without spaces, choose 7-bit so the bits are split in sevens.

Why does it say a value is outside ASCII?

ASCII stops at 127, which is 01111111. Any 8-bit group that starts with 1 is 128 or more, so it isn't ASCII. That usually means the binary is UTF-8 text: 11000011 10101001 is é. Use the binary to text converter for it.

Why is some of the output invisible?

Codes 0 to 31 and 127 are control characters, not printable symbols. 00001010 is a line feed, which starts a new line, and 00000000 is NUL, which shows nothing at all. The character breakdown names every control character it finds.

Can I paste binary with commas or a 0b prefix?

Yes. Spaces, commas, semicolons and new lines all separate characters, and a 0b at the start of a group is ignored, so 0b01001000, 0b01101001 decodes to Hi.

Still have a question?Contact us