Binary to Text Converter

01001000
72
H
01101001
105
i

text

Show the working for text → binary

This converter reads binary as whole bytes and gives back the text they spell. For one code value rather than a message, use Binary to ASCII; for a plain number, use Binary to Decimal.

Going the other way? Convert text back to binary

How do you convert binary to text?

Binary to text conversion reads each group of binary digits as one code, then replaces that code with the character it stands for, so 2 groups give 2 characters.

In short

01001000 01101001 reads "Hi". Split the binary into 8-bit groups, convert each group to its decimal value (01001000 = 72), and replace each value with its ASCII character (72 = H).

  1. Split the input into 8-digit groups. The first group is 01001000.
  2. Read that group as a number. 01001000 is 72.
  3. Replace the number with its character. 72 is H.
  4. Repeat for every group and join the characters in order: 01001000 01101001 = Hi.

Binary to Text Conversion Table

Every letter, digit and the space, with its code in all four bases. Find the character in the first column and read across: the Dec column is the code the method uses, and the Bin column is what this converter reads — 8 digits per character, zero-padded on the left. That column uses the digit set 0, 1 and nothing else, each place worth 2ⁿ, and a value marked with the 0b prefix means the same thing. This page shows the rows you need; ASCII code chart (decimal, hex, octal, binary) carries all 128.

Binary to Text Conversion Table
CharDecHexOctBin
A654110101000001
B664210201000010
C674310301000011
D684410401000100
E694510501000101
F704610601000110
G714710701000111
H724811001001000
I734911101001001
J744A11201001010
K754B11301001011
L764C11401001100
M774D11501001101
N784E11601001110
O794F11701001111
P805012001010000
Q815112101010001
R825212201010010
S835312301010011
T845412401010100
U855512501010101
V865612601010110
W875712701010111
X885813001011000
Y895913101011001
Z905A13201011010
a976114101100001
b986214201100010
c996314301100011
d1006414401100100
e1016514501100101
f1026614601100110
g1036714701100111
h1046815001101000
i1056915101101001
j1066A15201101010
k1076B15301101011
l1086C15401101100
m1096D15501101101
n1106E15601101110
o1116F15701101111
p1127016001110000
q1137116101110001
r1147216201110010
s1157316301110011
t1167416401110100
u1177516501110101
v1187616601110110
w1197716701110111
x1207817001111000
y1217917101111001
z1227A17201111010
0483006000110000
1493106100110001
2503206200110010
3513306300110011
4523406400110100
5533506500110101
6543606600110110
7553706700110111
8563807000111000
9573907100111001
(space)322004000100000

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: 01001000 01101001 to Text

One group at a time, with the working written out. This is the same grid the converter shows when you turn on "show steps".

01001000
72
H
01101001
105
i

text

Result: 01001000 01101001 = Hi

Start at the left. The first group is 01001000, which reads as 72, and 72 is the code for H. The groups are all the same width, so there is no guesswork about where one ends and the next begins.

The rest follow the same way: 01101001 is 105, which is i. Joining the characters in the order the groups arrived gives Hi. Read a group in the wrong place and every character after it shifts, which is why the width matters more than the separator does.

Check it in reverse

The value goes back the way it came. Read 01001000 is 72, and 72 is H; read 01101001 is 105, and 105 is i. Nothing is lost on the return trip, because every character keeps one group of its own and the groups keep their order. A decoder needs no extra information from the encoder — the fixed width tells it where each group ends, and the table tells it what each code means. To verify the result by hand, encode the text back to binary and compare it with what you started from.

Worked examples: binary to text

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

What does 01101001 spell in text?

"01101001" in binary is i in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01001000 01101001 spell in text?

"01001000 01101001" in binary is Hi in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01101000 01100101 01101100 01101100 01101111 spell in text?

"01101000 01100101 01101100 01101100 01101111" in binary is hello in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01000001 01101110 01100001 spell in text?

"01000001 01101110 01100001" in binary is Ana in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100001 spell in text?

"01100001" in binary is a in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01000001 spell in text?

"01000001" in binary is A in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100101 spell in text?

"01100101" in binary is e in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100010 spell in text?

"01100010" in binary is b in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100100 spell in text?

"01100100" in binary is d in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100110 spell in text?

"01100110" in binary is f in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01110100 spell in text?

"01110100" in binary is t in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01100111 spell in text?

"01100111" in binary is g in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01101010 spell in text?

"01101010" in binary is j in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01101110 spell in text?

"01101110" in binary is n in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01110010 spell in text?

"01110010" in binary is r in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

What does 01101111 spell in text?

"01101111" in binary is o in text.

Method: split into groups of eight, read each group as a code, then take its character.

Load this value in the converter

Every example above reverses exactly — encode the same words back into 8-bit groups.

What Changes the Text Output?

Spaces and line breaks

A space is a character like any other: code 32, or 00100000. A trailing space converts too, which is the usual reason an output runs one group longer than expected.

Characters outside ASCII

UTF-8 encodes each character in 1 to 4 bytes. Characters 0–127 use one byte identical to ASCII, so ASCII text is valid UTF-8. Above code 127 UTF-8 uses more than one byte per character, so the byte count stops matching the character count. é is U+00E9 and encodes as C3 A9 (2 bytes); € is U+20AC and encodes as E2 82 AC (3 bytes); 😀 is U+1F600 and encodes as F0 9F 98 80 (4 bytes). Written the way this page writes them, those are é = 11000011 10101001, € = 11100010 10000010 10101100 and 😀 = 11110000 10011111 10011000 10000000. the encoding rules behind this converter sets out why.

Width and padding

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. That is why A is 01000001 here, not 1000001. Uppercase and lowercase differ by 32, which is bit 5, so a is 01100001.

Separator choice

The space between groups is a display choice; the bytes do not change. iToolHub's text-to-binary and text-to-hex converters write one 8-bit byte per character, separated by spaces. Pick no separator when the output feeds another program, a comma for a spreadsheet.

Binary to Text in Code

The same rule in one line. Both read the codes and return the original string.

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

How do you convert a binary file to text?

Open the file, paste the digits into the box above, and convert. Every 8-bit group becomes one character, line breaks included. ASCII codes 32–126 are printable characters; 0–31 and 127 are control characters (for example 10 = line feed, 13 = carriage return, 32 = space).

What if the binary string is not a multiple of 8 bits?

Then one group is short and the decode stops there. A byte is 8 bits and holds 256 values, 0–255; a nibble is 4 bits. Pad the short group on the left with zeros — a dropped leading zero is the usual cause.

How are multi-byte (UTF-8) characters decoded from binary?

The leading bits of the first byte say how many bytes follow, so those groups join before the character is read. UTF-8 encodes each character in 1 to 4 bytes. Characters 0–127 use one byte identical to ASCII, so ASCII text is valid UTF-8.

How does the converter know 01000001 is a letter and not the number 65?

It cannot tell on its own; the page you open decides. This converter reads every 8-bit group as one character, so 01000001 comes back as the letter A. Reading the same digits as a plain number is a different job — see the binary code behind every conversion here.

How do you convert binary to text in Python?

Split the input on spaces, read each group as a binary number, then decode the bytes as UTF-8. The one-liner under Binary to Text in Code does that, and it works because iToolHub's text-to-binary and text-to-hex converters write one 8-bit byte per character, separated by spaces.

Every result on this page reverses: the same value converts straight back in the text to binary direction.

The rest of the family sits on the binary converter index.