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.
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:
| Character | Decimal | Binary (8-bit) |
|---|---|---|
| A | 65 | 01000001 |
| a | 97 | 01100001 |
| Z | 90 | 01011010 |
| 0 | 48 | 00110000 |
| ! | 33 | 00100001 |
| (space) | 32 | 00100000 |
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:
Take the first character
Take the first character of your text. For example, the letter H.
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.
Convert the decimal to binary
Divide 72 by 2 repeatedly, noting remainders. Reading remainders bottom-to-top gives 1001000. Pad to 8 bits: 01001000.
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)
010010000110010101101100011011000110111101001000 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.
| Upper | Dec | Binary | Lower | Dec | Binary |
|---|---|---|---|---|---|
| A | 65 | 01000001 | a | 97 | 01100001 |
| B | 66 | 01000010 | b | 98 | 01100010 |
| C | 67 | 01000011 | c | 99 | 01100011 |
| D | 68 | 01000100 | d | 100 | 01100100 |
| E | 69 | 01000101 | e | 101 | 01100101 |
| F | 70 | 01000110 | f | 102 | 01100110 |
| G | 71 | 01000111 | g | 103 | 01100111 |
| H | 72 | 01001000 | h | 104 | 01101000 |
| I | 73 | 01001001 | i | 105 | 01101001 |
| J | 74 | 01001010 | j | 106 | 01101010 |
| K | 75 | 01001011 | k | 107 | 01101011 |
| L | 76 | 01001100 | l | 108 | 01101100 |
| M | 77 | 01001101 | m | 109 | 01101101 |
| N | 78 | 01001110 | n | 110 | 01101110 |
| O | 79 | 01001111 | o | 111 | 01101111 |
| P | 80 | 01010000 | p | 112 | 01110000 |
| Q | 81 | 01010001 | q | 113 | 01110001 |
| R | 82 | 01010010 | r | 114 | 01110010 |
| S | 83 | 01010011 | s | 115 | 01110011 |
| T | 84 | 01010100 | t | 116 | 01110100 |
| U | 85 | 01010101 | u | 117 | 01110101 |
| V | 86 | 01010110 | v | 118 | 01110110 |
| W | 87 | 01010111 | w | 119 | 01110111 |
| X | 88 | 01011000 | x | 120 | 01111000 |
| Y | 89 | 01011001 | y | 121 | 01111001 |
| Z | 90 | 01011010 | z | 122 | 01111010 |
Digits 0–9 in binary
| Char | Decimal | Binary |
|---|---|---|
| 0 | 48 | 00110000 |
| 1 | 49 | 00110001 |
| 2 | 50 | 00110010 |
| 3 | 51 | 00110011 |
| 4 | 52 | 00110100 |
| 5 | 53 | 00110101 |
| 6 | 54 | 00110110 |
| 7 | 55 | 00110111 |
| 8 | 56 | 00111000 |
| 9 | 57 | 00111001 |
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
01001000 and 0110100101001000 = 72, 01101001 = 105Result: 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.
| Feature | ASCII | Unicode (UTF-8) |
|---|---|---|
| Characters supported | 128 / 256 | 1,100,000+ |
| Bits per character | 7 or 8 (fixed) | 8–32 (variable) |
| English text output | Identical to UTF-8 | Identical to ASCII |
| Non-English languages | Not supported | Fully supported |
| Emoji support | No | Yes |
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 →