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.
Code by code
| Binary | Decimal | Hex | ASCII |
|---|
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.
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.
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.
Look up each total
Find the number in the ASCII table below. The three characters here spell Go!
| Binary | Sum | Decimal | Hex | ASCII |
|---|---|---|---|---|
| 1000111 | 64 + 4 + 2 + 1 | 71 | 47 | G |
| 1101111 | 64 + 32 + 8 + 4 + 2 + 1 | 111 | 6F | o |
| 0100001 | 32 + 1 | 33 | 21 | ! |
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 with | What's in the block | Codes |
|---|---|---|
| 00 | Control codes | 0 to 31 |
| 01 | Space, digits, most punctuation | 32 to 63 |
| 10 | Capital letters and a few symbols | 64 to 95 |
| 11 | Lowercase letters, a few symbols, DEL | 96 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.
| Decimal | Hex | Binary | ASCII |
|---|---|---|---|
| 0 | 00 | 0000000 | NUL Null |
| 1 | 01 | 0000001 | SOH Start of heading |
| 2 | 02 | 0000010 | STX Start of text |
| 3 | 03 | 0000011 | ETX End of text |
| 4 | 04 | 0000100 | EOT End of transmission |
| 5 | 05 | 0000101 | ENQ Enquiry |
| 6 | 06 | 0000110 | ACK Acknowledge |
| 7 | 07 | 0000111 | BEL Bell |
| 8 | 08 | 0001000 | BS Backspace |
| 9 | 09 | 0001001 | HT Horizontal tab |
| 10 | 0A | 0001010 | LF Line feed |
| 11 | 0B | 0001011 | VT Vertical tab |
| 12 | 0C | 0001100 | FF Form feed |
| 13 | 0D | 0001101 | CR Carriage return |
| 14 | 0E | 0001110 | SO Shift out |
| 15 | 0F | 0001111 | SI Shift in |
| 16 | 10 | 0010000 | DLE Data link escape |
| 17 | 11 | 0010001 | DC1 Device control 1 |
| 18 | 12 | 0010010 | DC2 Device control 2 |
| 19 | 13 | 0010011 | DC3 Device control 3 |
| 20 | 14 | 0010100 | DC4 Device control 4 |
| 21 | 15 | 0010101 | NAK Negative acknowledge |
| 22 | 16 | 0010110 | SYN Synchronous idle |
| 23 | 17 | 0010111 | ETB End of transmission block |
| 24 | 18 | 0011000 | CAN Cancel |
| 25 | 19 | 0011001 | EM End of medium |
| 26 | 1A | 0011010 | SUB Substitute |
| 27 | 1B | 0011011 | ESC Escape |
| 28 | 1C | 0011100 | FS File separator |
| 29 | 1D | 0011101 | GS Group separator |
| 30 | 1E | 0011110 | RS Record separator |
| 31 | 1F | 0011111 | US 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.
| Decimal | Hex | Binary | ASCII |
|---|---|---|---|
| 32 | 20 | 0100000 | SP Space |
| 33 | 21 | 0100001 | ! |
| 34 | 22 | 0100010 | " |
| 35 | 23 | 0100011 | # |
| 36 | 24 | 0100100 | $ |
| 37 | 25 | 0100101 | % |
| 38 | 26 | 0100110 | & |
| 39 | 27 | 0100111 | ' |
| 40 | 28 | 0101000 | ( |
| 41 | 29 | 0101001 | ) |
| 42 | 2A | 0101010 | * |
| 43 | 2B | 0101011 | + |
| 44 | 2C | 0101100 | , |
| 45 | 2D | 0101101 | - |
| 46 | 2E | 0101110 | . |
| 47 | 2F | 0101111 | / |
| 48 | 30 | 0110000 | 0 |
| 49 | 31 | 0110001 | 1 |
| 50 | 32 | 0110010 | 2 |
| 51 | 33 | 0110011 | 3 |
| 52 | 34 | 0110100 | 4 |
| 53 | 35 | 0110101 | 5 |
| 54 | 36 | 0110110 | 6 |
| 55 | 37 | 0110111 | 7 |
| 56 | 38 | 0111000 | 8 |
| 57 | 39 | 0111001 | 9 |
| 58 | 3A | 0111010 | : |
| 59 | 3B | 0111011 | ; |
| 60 | 3C | 0111100 | < |
| 61 | 3D | 0111101 | = |
| 62 | 3E | 0111110 | > |
| 63 | 3F | 0111111 | ? |
Codes 64 to 95: capital letters
The block opens with @, A is 65, and five symbols follow Z.
| Decimal | Hex | Binary | ASCII |
|---|---|---|---|
| 64 | 40 | 1000000 | @ |
| 65 | 41 | 1000001 | A |
| 66 | 42 | 1000010 | B |
| 67 | 43 | 1000011 | C |
| 68 | 44 | 1000100 | D |
| 69 | 45 | 1000101 | E |
| 70 | 46 | 1000110 | F |
| 71 | 47 | 1000111 | G |
| 72 | 48 | 1001000 | H |
| 73 | 49 | 1001001 | I |
| 74 | 4A | 1001010 | J |
| 75 | 4B | 1001011 | K |
| 76 | 4C | 1001100 | L |
| 77 | 4D | 1001101 | M |
| 78 | 4E | 1001110 | N |
| 79 | 4F | 1001111 | O |
| 80 | 50 | 1010000 | P |
| 81 | 51 | 1010001 | Q |
| 82 | 52 | 1010010 | R |
| 83 | 53 | 1010011 | S |
| 84 | 54 | 1010100 | T |
| 85 | 55 | 1010101 | U |
| 86 | 56 | 1010110 | V |
| 87 | 57 | 1010111 | W |
| 88 | 58 | 1011000 | X |
| 89 | 59 | 1011001 | Y |
| 90 | 5A | 1011010 | Z |
| 91 | 5B | 1011011 | [ |
| 92 | 5C | 1011100 | \ |
| 93 | 5D | 1011101 | ] |
| 94 | 5E | 1011110 | ^ |
| 95 | 5F | 1011111 | _ |
Codes 96 to 127: lowercase letters
a is 97, exactly 32 above A. The block ends with DEL.
| Decimal | Hex | Binary | ASCII |
|---|---|---|---|
| 96 | 60 | 1100000 | ` |
| 97 | 61 | 1100001 | a |
| 98 | 62 | 1100010 | b |
| 99 | 63 | 1100011 | c |
| 100 | 64 | 1100100 | d |
| 101 | 65 | 1100101 | e |
| 102 | 66 | 1100110 | f |
| 103 | 67 | 1100111 | g |
| 104 | 68 | 1101000 | h |
| 105 | 69 | 1101001 | i |
| 106 | 6A | 1101010 | j |
| 107 | 6B | 1101011 | k |
| 108 | 6C | 1101100 | l |
| 109 | 6D | 1101101 | m |
| 110 | 6E | 1101110 | n |
| 111 | 6F | 1101111 | o |
| 112 | 70 | 1110000 | p |
| 113 | 71 | 1110001 | q |
| 114 | 72 | 1110010 | r |
| 115 | 73 | 1110011 | s |
| 116 | 74 | 1110100 | t |
| 117 | 75 | 1110101 | u |
| 118 | 76 | 1110110 | v |
| 119 | 77 | 1110111 | w |
| 120 | 78 | 1111000 | x |
| 121 | 79 | 1111001 | y |
| 122 | 7A | 1111010 | z |
| 123 | 7B | 1111011 | { |
| 124 | 7C | 1111100 | | |
| 125 | 7D | 1111101 | } |
| 126 | 7E | 1111110 | ~ |
| 127 | 7F | 1111111 | DEL 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.
| Binary | Code | What it does |
|---|---|---|
| 00000000 | 0 NUL | Marks the end of a string in C and many file formats. |
| 00001001 | 9 HT | The Tab key. |
| 00001010 | 10 LF | New line on Linux and macOS. |
| 00001101 | 13 CR | Windows puts this before LF to end a line. |
| 00011011 | 27 ESC | Starts the sequences that colour text in a terminal. |
| 01111111 | 127 DEL | Delete. 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.