X Xerobit

Binary to Text Converter

A two-way binary translator: paste binary code to read it as text, or type text to get binary. Switch to hex, decimal or octal with one click. Full UTF-8 support means accents, symbols and emoji convert correctly, and the character table shows exactly which bytes make up each letter.

Encoding
Type in either box — the other one updates instantly.
Character breakdown (ASCII / UTF-8 table)
CharCode pointDecimalHexBinary

How to convert binary to text

Paste the binary into the right-hand box. The text appears on the left immediately. Spaces between bytes are optional — an unbroken string like 0100100001101001 is split into 8-bit groups automatically. Pasting hex or decimal codes switches the encoding for you.

To do it by hand, split the binary into groups of 8 bits, convert each group to a decimal number, and look that number up in the ASCII table:

BinaryDecimalCharacter
0100100072H
01100101101e
01101100108l
01101100108l
01101111111o

Each bit is a power of two, from 128 on the left down to 1 on the right. For 01001000: 64 + 8 = 72, which is H in ASCII. Put the five characters together and you get “Hello”.

How to convert text to binary

Type in the left box and the binary appears on the right. Behind the scenes each character is encoded as UTF-8 bytes, and every byte is written as 8 binary digits. Plain English letters, digits and punctuation take one byte each, so “Hi” becomes 01001000 01101001.

ASCII binary reference

CharacterDecimalHexBinary
A654101000001
Z905A01011010
a976101100001
z1227A01111010
0483000110000
9573900111001
space322000100000
!332100100001
?633F00111111
.462E00101110

Uppercase letters run from 65 (01000001) to 90, lowercase from 97 to 122 — exactly 32 apart, which is why flipping a single bit (the 32s bit) changes a letter's case. Open the Character breakdown under the tool to see the codes for your own text.

Hex, decimal and octal

The same bytes can be written in any base. Hex is the most common in programming because two hex digits map to exactly one byte: “Hi” is 48 69. Decimal codes (72 105) are what you'd see in an ASCII chart, and octal (110 151) still appears in Unix file permissions and some escape sequences. The decoder accepts the usual prefixes and separators — 0x48, \x48, 48:69, 0b01001000, commas or new lines.

For converting single numbers between bases (binary to decimal, hex to decimal), use the Binary Converter.

Emoji and accented characters (UTF-8)

ASCII only covers 128 characters. Everything else — é, €, 日本, 😀 — is encoded in UTF-8 as two to four bytes. That's why “é” becomes 11000011 10101001 and a single emoji takes 32 bits. This converter encodes and decodes UTF-8 correctly, so a round trip never mangles text. If decoded bytes aren't valid UTF-8, it falls back to Latin-1 and tells you.

Convert binary to text in code

// JavaScript
const toBinary = (text) =>
  [...new TextEncoder().encode(text)].map((b) => b.toString(2).padStart(8, '0')).join(' ');
const fromBinary = (bits) =>
  new TextDecoder().decode(new Uint8Array(bits.trim().split(/\s+/).map((b) => parseInt(b, 2))));
# Python
def to_binary(text):
    return ' '.join(f'{b:08b}' for b in text.encode('utf-8'))

def from_binary(bits):
    return bytes(int(b, 2) for b in bits.split()).decode('utf-8')

FAQ

What does 01001000 01101001 mean?

It's “Hi” — 72 (H) and 105 (i) in 8-bit binary.

How many bits are in one letter?

8 bits (one byte) for standard English letters, digits and punctuation. Accented letters use 16 bits, most other scripts 24, and emoji 32.

Can I decode binary without spaces?

Yes. A continuous string is split into 8-bit chunks, so its length must be a multiple of 8. If your binary is grouped in 7-bit chunks (old 7-bit ASCII), keep the spaces and it decodes too.

Is binary the same as ASCII?

No. Binary is a way of writing numbers; ASCII is a table that assigns a number to each character. Binary-to-text conversion uses both: binary → number → character.

Why do I get an error?

The message names the exact problem — a character that isn't 0 or 1, a group larger than 255, or a no-space string whose length isn't a multiple of 8. Check you've picked the right encoding (binary, hex, decimal or octal).

Related tools

Related articles

Part of Encoding & Crypto tools.


Written by Mian Ali Khalid. Last updated 2026-10-26.