Binary to ASCII

Paste 7-bit or 8-bit binary and read it as ASCII characters. Each code is listed with its decimal and hex value, including the invisible ones.

Bits per character
Try

Code by code

BinaryDecimalHexASCII

How to convert binary to ASCII by hand

ASCII is a numbered list of 128 characters. Converting means finding each group's number, then reading off the character that holds that place in the list. Take 1000111 1101111 0100001.

  1. Cut the binary into characters

    These groups have seven digits each. If yours have eight, each one starts with an extra 0 that adds nothing.

  2. Add the place values

    From left to right, seven positions are worth 64, 32, 16, 8, 4, 2 and 1. Add the values that sit above a 1.

  3. Look up each total

    Find the number in the ASCII table below. The three characters here spell Go!

BinarySumDecimalHexASCII
100011164 + 4 + 2 + 17147G
110111164 + 32 + 8 + 4 + 2 + 11116Fo
010000132 + 13321!

7-bit or 8-bit ASCII?

ASCII itself is a 7-bit code. Seven digits give 128 patterns, numbered 0 to 127, and that's the whole set. You'll usually see eight digits because computers store each character in an 8-bit byte and fill the spare position with a 0. So 1000001 and 01000001 are both a capital A.

Spaced binary is easy either way, since every group is one character. A long run with no spaces is harder, because the decoder has to choose where to cut. On Auto, it first checks whether the run splits into bytes that all start with 0. If it does, it reads 8-bit. If it doesn't, and the length divides by 7, it reads 7-bit.

A run of 56 digits divides both ways, which is why that leading-0 check comes first. If the output looks like noise and you know how the binary was made, choose 7-bit or 8-bit yourself.

Patterns that let you skip the adding

Whoever laid out the ASCII table put related characters in blocks of 32. In 7-bit form, the first two digits tell you which block you're in.

Starts withWhat's in the blockCodes
00Control codes0 to 31
01Space, digits, most punctuation32 to 63
10Capital letters and a few symbols64 to 95
11Lowercase letters, a few symbols, DEL96 to 127

Letters count themselves

In a letter, the last five digits are its position in the alphabet. 1000111 ends in 00111, which is 7, and the block is 10, so it's the 7th capital: G. Change the block to 11 and 1100111 is a lowercase g.

One bit changes the case

A capital and its lowercase letter differ by exactly 32, which is a single bit, the second from the left in 7-bit form. Programmers have long used this to switch case by flipping that one bit.

Digits carry their own value

The codes for 0 to 9 all start with 011, and the last four digits are the number itself. 0110111 ends in 0111, so it's the character 7. Its ASCII code is 55, not 7.

Full ASCII table with binary, decimal and hex

All 128 codes, split into the four blocks. Binary is shown in 7-bit form, so add a 0 in front for the 8-bit byte. Open the block you need. For octal, names and search, use the ASCII table page.

Codes 0 to 31: control codes

Instructions for printers and terminals. None of them has a shape.

DecimalHexBinaryASCII
0000000000NUL Null
1010000001SOH Start of heading
2020000010STX Start of text
3030000011ETX End of text
4040000100EOT End of transmission
5050000101ENQ Enquiry
6060000110ACK Acknowledge
7070000111BEL Bell
8080001000BS Backspace
9090001001HT Horizontal tab
100A0001010LF Line feed
110B0001011VT Vertical tab
120C0001100FF Form feed
130D0001101CR Carriage return
140E0001110SO Shift out
150F0001111SI Shift in
16100010000DLE Data link escape
17110010001DC1 Device control 1
18120010010DC2 Device control 2
19130010011DC3 Device control 3
20140010100DC4 Device control 4
21150010101NAK Negative acknowledge
22160010110SYN Synchronous idle
23170010111ETB End of transmission block
24180011000CAN Cancel
25190011001EM End of medium
261A0011010SUB Substitute
271B0011011ESC Escape
281C0011100FS File separator
291D0011101GS Group separator
301E0011110RS Record separator
311F0011111US Unit separator
Codes 32 to 63: space, digits and symbols

The digit 0 sits at 48, so a digit's code is 48 plus its value.

DecimalHexBinaryASCII
32200100000SP Space
33210100001!
34220100010"
35230100011#
36240100100$
37250100101%
38260100110&
39270100111'
40280101000(
41290101001)
422A0101010*
432B0101011+
442C0101100,
452D0101101-
462E0101110.
472F0101111/
483001100000
493101100011
503201100102
513301100113
523401101004
533501101015
543601101106
553701101117
563801110008
573901110019
583A0111010:
593B0111011;
603C0111100<
613D0111101=
623E0111110>
633F0111111?
Codes 64 to 95: capital letters

The block opens with @, A is 65, and five symbols follow Z.

DecimalHexBinaryASCII
64401000000@
65411000001A
66421000010B
67431000011C
68441000100D
69451000101E
70461000110F
71471000111G
72481001000H
73491001001I
744A1001010J
754B1001011K
764C1001100L
774D1001101M
784E1001110N
794F1001111O
80501010000P
81511010001Q
82521010010R
83531010011S
84541010100T
85551010101U
86561010110V
87571010111W
88581011000X
89591011001Y
905A1011010Z
915B1011011[
925C1011100\
935D1011101]
945E1011110^
955F1011111_
Codes 96 to 127: lowercase letters

a is 97, exactly 32 above A. The block ends with DEL.

DecimalHexBinaryASCII
96601100000`
97611100001a
98621100010b
99631100011c
100641100100d
101651100101e
102661100110f
103671100111g
104681101000h
105691101001i
1066A1101010j
1076B1101011k
1086C1101100l
1096D1101101m
1106E1101110n
1116F1101111o
112701110000p
113711110001q
114721110010r
115731110011s
116741110100t
117751110101u
118761110110v
119771110111w
120781111000x
121791111001y
1227A1111010z
1237B1111011{
1247C1111100|
1257D1111101}
1267E1111110~
1277F1111111DEL Delete

Control codes you'll still run into

Many of the first 32 codes were made for teleprinters and old data links. A handful still turn up in files every day. If your decoded text has odd gaps or a name in square brackets, check this list.

BinaryCodeWhat it does
000000000 NULMarks the end of a string in C and many file formats.
000010019 HTThe Tab key.
0000101010 LFNew line on Linux and macOS.
0000110113 CRWindows puts this before LF to end a line.
0001101127 ESCStarts the sequences that colour text in a terminal.
01111111127 DELDelete. Its seven bits are all 1.

This is why text from a Windows file often has two codes at the end of each line, 00001101 00001010, while the same file saved on Linux has only 00001010.

What about codes from 128 to 255?

A byte can count to 255, but ASCII stops at 127. The upper half is often called "extended ASCII", though it was never one standard. Different systems filled it with different characters. The byte 11101001 is é in Latin-1 and Windows-1252, but Θ in the old IBM PC code page 437.

Because the byte alone doesn't say which table was meant, this page marks it as not ASCII instead of guessing. Most text today uses UTF-8, which keeps the 128 ASCII codes unchanged and writes everything else as two to four bytes. For accents, Hindi or emoji, use the binary to text decoder, which reads UTF-8.

Why your output might be wrong

Reading 7-bit data in eights

In a run with no spaces, the first character takes a digit from the second, and the error carries on down the line. You get symbols and non-ASCII marks. Switch to 7-bit.

Dropping leading zeros in a run

With spaces, 100000 still reads as a space character, code 32. In an unbroken run, a missing 0 shifts everything after it, so keep every digit.

Mixing up a digit and its code

The binary number 00000101 is 5, but as ASCII it's a control code. The character "5" is 00110101. To read plain numbers, use binary to decimal.

Decoding something that isn't text

Bytes from an image or a program will decode to scattered control codes and non-ASCII values. There's no hidden message to recover that way.

Practice with 7-bit codes

Decode each one with the block and letter patterns, then load it to check your answer.

1000011 1101111 1100100 1100101

1010010 1101111 1101111 1101101 0100000 0110100 0110010

1101111 1101011 0111111

Binary to ASCII FAQ

What is 01000001 in ASCII?

It's a capital A. The binary value is 65, and 65 is A in the ASCII table.

Is binary to ASCII the same as binary to text?

They give the same result for English letters, digits and common punctuation. ASCII ends at code 127. A UTF-8 text decoder goes further and reads other alphabets and emoji from several bytes at once.

How many bits is one ASCII character?

The code is 7 bits. It's normally stored in an 8-bit byte with a 0 in front. Some older serial links used that eighth bit as a parity check, so it could be 1. If your data does that, remove the first digit of each byte before decoding.

Why is there a name in square brackets in my result?

That code is a control character with nothing to display, such as [NUL] or [ESC]. Tabs and line breaks are applied to the text instead. Copying the result copies the bracketed names too.

Can I convert ASCII back to binary?

Yes. The ASCII to binary converter works from characters or codes, in 7-bit, 8-bit or with parity.

Is my binary sent anywhere?

No. The conversion runs in your browser, so what you paste never reaches our server.