FindBest Tools
Guide · Binary Encoding

How to Convert Text to Binary (and Binary Back to Text)

A complete guide to binary code translation — how it works, worked examples, the A–Z reference table, and everything else you need to understand or use a binary code translator.

8 min readUpdated April 2026

What is binary code?

Binary is a base-2 number system — meaning it uses only two digits: 0 and 1. Every piece of data stored or processed by a computer — text, images, audio, video — is ultimately stored as a sequence of these two values.

The reason computers use binary comes down to hardware. Transistors, the fundamental building block of every processor, operate like tiny switches: they're either off (0) or on (1). Billions of these switches working in combination allow modern computers to represent and manipulate any type of information.

A single 0 or 1 is called a bit (short for binary digit). Eight bits grouped together form a byte — the standard unit for representing a single character in most text encoding systems.

Quick fact

One byte (8 bits) can represent 256 unique values (2⁸ = 256). That's enough to encode every standard English letter, digit, punctuation mark, and common symbol — with room to spare.

How ASCII connects text to binary

A computer doesn't inherently know what the letter A is — it only understands numbers. ASCII (the American Standard Code for Information Interchange) is a mapping that bridges that gap. It assigns a unique number to every letter, digit, and symbol, so computers can agree on a shared language for text.

ASCII was first published in 1963 and became the foundation for virtually all modern text encoding. It defines 128 characters (7-bit encoding), later extended to 256 with the 8-bit variant. Here are a few familiar examples:

CharacterDecimalBinary (8-bit)
A6501000001
a9701100001
Z9001011010
04800110000
!3300100001
(space)3200100000

Notice that uppercase A (65) and lowercase a (97) have different values — binary translation is always case-sensitive. Also notice that the space character has its own binary value, just like any letter.

How to convert text to binary (step by step)

You can convert any text to binary manually by following this process:

1

Take the first character

Take the first character of your text. For example, the letter H.

2

Find its ASCII decimal value

H = 72. You can look this up in an ASCII table or use the reference table further down this page.

3

Convert the decimal to binary

Divide 72 by 2 repeatedly, noting remainders. Reading remainders bottom-to-top gives 1001000. Pad to 8 bits: 01001000.

4

Repeat for every character

Repeat steps 1–2 for every character in your text, separating each 8-bit group with a space.

As you can see, even converting a single word manually takes significant effort. That's exactly what our binary code translator does for you — instantly and accurately, for any length of text.

Worked example: "Hello" in binary

Let's walk through the full conversion of the word Hello — one of the most commonly searched binary examples.

Hello → 8-bit binary (ASCII)

H01001000
e01100101
l01101100
l01101100
o01101111

01001000 01100101 01101100 01101100 01101111

A few things worth noticing in this example:

  • The two l characters produce identical binary (01101100) — same character, same code.

  • H (uppercase) and e (lowercase) produce different first bits, reflecting their different ASCII ranges.

  • Every group is exactly 8 bits — leading zeros are always included.

Binary A–Z reference table

The table below shows the complete binary representation for all 26 uppercase letters (A–Z) and their lowercase equivalents, along with the digits 0–9. All values use standard 8-bit ASCII encoding.

UpperDecBinaryLowerDecBinary
A6501000001a9701100001
B6601000010b9801100010
C6701000011c9901100011
D6801000100d10001100100
E6901000101e10101100101
F7001000110f10201100110
G7101000111g10301100111
H7201001000h10401101000
I7301001001i10501101001
J7401001010j10601101010
K7501001011k10701101011
L7601001100l10801101100
M7701001101m10901101101
N7801001110n11001101110
O7901001111o11101101111
P8001010000p11201110000
Q8101010001q11301110001
R8201010010r11401110010
S8301010011s11501110011
T8401010100t11601110100
U8501010101u11701110101
V8601010110v11801110110
W8701010111w11901110111
X8801011000x12001111000
Y8901011001y12101111001
Z9001011010z12201111010

Digits 0–9 in binary

CharDecimalBinary
04800110000
14900110001
25000110010
35100110011
45200110100
55300110101
65400110110
75500110111
85600111000
95700111001

One important note: the binary code for the digit 0 (00110000) is not the same as an actual zero bit. The digit 0 still has its own ASCII value (48), and is encoded as a full byte just like any letter.

Converting binary back to text

The reverse process — binary to text — is decoding. Given a sequence of 8-bit groups, you look up each group's decimal equivalent in the ASCII table and return the corresponding character.

For example: 01001000 01101001

1Split the binary string: 01001000 and 01101001
2Convert to decimal: 01001000 = 72, 01101001 = 105
3ASCII lookup: 72 = H, 105 = i

Result: Hi

Input formatting tip

When using a binary to text converter, always separate your 8-bit groups with spaces. If groups are run together (e.g. 0100100001101001), the tool needs to split them itself — this can cause errors if the string length isn't a perfect multiple of 8.

ASCII vs Unicode: what's the difference?

ASCII handles 128–256 characters, which covers English text perfectly. But the modern web needs to support every language — Arabic, Chinese, Hindi, Japanese, emoji, mathematical symbols, and more. That's where Unicode comes in.

FeatureASCIIUnicode (UTF-8)
Characters supported128 / 2561,100,000+
Bits per character7 or 8 (fixed)8–32 (variable)
English text outputIdentical to UTF-8Identical to ASCII
Non-English languagesNot supportedFully supported
Emoji supportNoYes

For standard English text, ASCII and UTF-8 produce identical binary output — a UTF-8 binary translator and an ASCII binary translator give the same result for English. The difference only matters when you introduce characters outside the basic Latin alphabet.


Frequently Asked Questions

What is a binary code translator?

A binary code translator is a tool that converts plain text into binary (sequences of 0s and 1s) and converts binary back into readable text. It uses ASCII encoding to map each character to its 8-bit binary equivalent.

How do you convert text to binary?

To convert text to binary: (1) Take each character in your text. (2) Find its ASCII decimal value (e.g. 'H' = 72). (3) Convert that decimal number to 8-bit binary (72 = 01001000). (4) Repeat for each character, separating each byte with a space.

What does 01001000 01100101 01101100 01101100 01101111 mean?

01001000 01100101 01101100 01101100 01101111 translates to 'Hello' in ASCII. Each 8-bit group represents one character: 01001000 = H, 01100101 = e, 01101100 = l, 01101100 = l, 01101111 = o.

Why does binary use 8 bits per character?

8 bits (one byte) can represent 256 different values (2^8 = 256), which is enough to cover all 128 standard ASCII characters with room to spare. 8-bit groupings also align neatly with how modern computer memory is organized.

What is the difference between ASCII and Unicode in binary?

ASCII uses 7–8 bits to encode 128–256 characters (English letters, digits, symbols). Unicode (UTF-8, UTF-16) uses variable-length encoding to support over 1 million characters including all world languages, emoji, and special symbols. For basic English text, ASCII and UTF-8 produce identical binary output.

Can binary represent languages other than English?

Yes — with Unicode (UTF-8 or UTF-16) encoding, binary can represent virtually every written language and symbol system in the world. Standard ASCII only covers English and basic Latin characters.

What is the binary code for A to Z?

In ASCII binary: A=01000001, B=01000010, C=01000011, D=01000100, E=01000101, F=01000110, G=01001000... (see the table below for the full list).

How do I format binary input for a binary to text converter?

Use space-separated 8-bit groups. Each group must be exactly 8 digits of 0s and 1s. Example: 01001000 01101001 (which translates to 'Hi'). Groups that are shorter than 8 bits or contain characters other than 0 and 1 are considered invalid.

Try the Binary Code Translator

Convert text to binary or decode binary back to text — instantly, free, and entirely in your browser.

Open the Translator →