Binary to ASCII Code Converter

01000001
65
65

ascii

Show the working for ascii → binary

This converter works on code values, one at a time, from the table. Codes run from 0 to 127; anything above that is reported as out of range. For whole text rather than single codes, use Binary to Text; for a plain number, use Binary to Decimal.

Going the other way? Convert ASCII code back to binary

How do you convert binary to ASCII?

Binary to ASCII code conversion reads each value as a code between 0 and 127 and looks up the character that the ASCII table gives for it.

In short

01000001 is ASCII code 65, the letter A. Convert each 8-bit group to decimal (64 + 1 = 65) and look that value up in the ASCII table; values above 127 fall outside ASCII.

  1. Read the first value. This example uses 01000001.
  2. Convert it to a decimal code if it is not one already: 65.
  3. Look that code up in the table. 65 is 65.
  4. Repeat for every value and join the results: 01000001 = 65.

Binary to ASCII Code Conversion Table

The codes this page works through, each with the character it stands for and the same value in hex, octal and binary. Find the code in the first column and read across; the row is the whole conversion. Codes 0 to 31 and 127 have no glyph, so the Char column shows their short name instead. This page shows the rows you need; ASCII code chart (decimal, hex, octal, binary) carries all 128.

Binary to ASCII Code Conversion Table
DecCharHexOctBin
10LF0A01200001010
13CR0D01500001101
32(space)2004000100000
33!2104100100001
4803006000110000
5793907100111001
65A4110101000001
72H4811001001000
90Z5A13201011010
97a6114101100001
122z7A17201111010

The base this page writes, defined by the digits it uses, how a value is marked, and what each position is worth.

Base reference
BaseRadixDigits PrefixPlace worthTypical range
Binary20, 1 0b2ⁿ8-bit byte 0–255 (00000000–11111111); 4-bit nibble 0–15; 16/32/64-bit words

Worked Example: 01000001 to ASCII Code

One code value, taken from the table and written out in full. This is the same working the converter shows when you turn on "show steps".

01000001
65
65

ascii

Result: 01000001 = 65

Start with the code itself: 65. The table gives one row per code from 0 to 127, and that row is the whole answer — there is no arithmetic to get wrong, only a row to find. Reading the row across gives the same value in every base the table carries.

The row gives 65 directly. Nothing is padded and nothing is rounded, so a code either has a row or it is out of range — and the converter says which. That is the difference between a lookup and a calculation, and it is why the answer here can be checked by eye against the table above.

Check it in reverse

The value looks the same read backwards. 65 maps to code 65, and code 65 maps to 01000001 — the table is a two-way lookup, not a calculation, so no rounding or padding can change the answer. To verify the result by hand, write those ASCII codes back in 8 bits and compare it with the code you started from.

Worked examples: binary to ASCII code

Each example gives the value first, then the working. Click a value to load it in the converter.

What is 0b01000001 in ASCII code?

0b01000001 is 65 in ASCII code.

Method: look code 65 up in the 0–127 table; the row gives 65.

Load this value in the converter

What is 0b1000001 in ASCII code?

0b1000001 is 65 in ASCII code.

Method: look code 65 up in the 0–127 table; the row gives 65.

Load this value in the converter

What is 0b1100001 in ASCII code?

0b1100001 is 97 in ASCII code.

Method: look code 97 up in the 0–127 table; the row gives 97.

Load this value in the converter

What is 0b1001000 in ASCII code?

0b1001000 is 72 in ASCII code.

Method: look code 72 up in the 0–127 table; the row gives 72.

Load this value in the converter

What is 0b100000 in ASCII code?

0b100000 is 32 in ASCII code.

Method: look code 32 up in the 0–127 table; the row gives 32.

Load this value in the converter

What is 0b110000 in ASCII code?

0b110000 is 48 in ASCII code.

Method: look code 48 up in the 0–127 table; the row gives 48.

Load this value in the converter

What is 0b100001 in ASCII code?

0b100001 is 33 in ASCII code.

Method: look code 33 up in the 0–127 table; the row gives 33.

Load this value in the converter

What is 0b1011010 in ASCII code?

0b1011010 is 90 in ASCII code.

Method: look code 90 up in the 0–127 table; the row gives 90.

Load this value in the converter

What is 0b1111010 in ASCII code?

0b1111010 is 122 in ASCII code.

Method: look code 122 up in the 0–127 table; the row gives 122.

Load this value in the converter

What is 0b111001 in ASCII code?

0b111001 is 57 in ASCII code.

Method: look code 57 up in the 0–127 table; the row gives 57.

Load this value in the converter

What is 0b1010 in ASCII code?

0b1010 is 10 in ASCII code.

Method: look code 10 up in the 0–127 table; the row gives 10.

Load this value in the converter

What is 0b1101 in ASCII code?

0b1101 is 13 in ASCII code.

Method: look code 13 up in the 0–127 table; the row gives 13.

Load this value in the converter

Every example above reverses exactly — write the same codes back as 8-bit values.

What Changes the Code Output?

Values above 127

A value above 127 is out of range and the converter says so rather than guessing. Codes 128–255 belong to extended sets such as Latin-1, not to ASCII, so there is no single right character for them. all 128 ASCII codes and their characters lists every code that is in range.

Which base the code is written in

The same code can be typed as decimal, hex, octal or binary, and the base selector says which one you mean. 65, 41, 101 and 01000001 are all the letter A. Pick the wrong base and you look up a different row.

Control codes and printable codes

Codes 32 to 126 are printable characters; 0–31 and 127 are control codes. A control code has no glyph, so the table shows its short name instead — 10 is LF, 13 is CR. Converting one is valid; displaying one is not.

One code or a list

Several codes separated by spaces convert as a list, in order, and each keeps its own row. The separator is a display choice and does not change any value.

Binary to ASCII Code in Code

The same rule in one line. Both take code values and return the characters.

Python: bytes(int(g, 2) for g in s.split()).decode('utf-8')
JavaScript: new TextDecoder().decode(new Uint8Array(s.split(/\s+/).map(g => parseInt(g, 2))))

Common Mistakes

Frequently Asked Questions

Why does binary to ASCII give a number and binary to text give a letter?

Because they stop at different points. This page reads 01000001 and gives the ASCII code 65; the text page carries on and shows the character that code stands for. Same table, one step apart — see how binary represents letters and numbers.

How many binary digits does one ASCII code use?

Seven, padded to eight. ASCII defines 128 characters, codes 0–127, using 7 bits; in practice each code is stored in one 8-bit byte with a leading 0. Codes 128–255 are not part of ASCII. They belong to extended sets such as Latin-1 (ISO 8859-1), where 255 is ÿ.

How do you convert binary to ASCII in Python?

Read each 8-digit group with int(g, 2): int('01000001', 2) gives 65. The code section on this page has the one-liner for a whole list. One caveat: 11111111 is 255 as an unsigned 8-bit number (0xFF, 0o377). Read as 8-bit two's complement it is −1; the 8-bit signed range is −128 to 127.

Every code here reads back the same way: the same value converts straight back in the ASCII code to binary direction.

The rest of the family sits on the rest of the binary converters.