Binary translator for text and numbers
Translate text to binary code or binary back to English, convert numbers between binary, decimal, hexadecimal and octal, and do math in binary.
Examples:
Text is encoded in UTF-8, 8 bits per byte: plain English letters get the same code as in ASCII, while accented letters and emojis take 2 to 4 bytes. Whole positive numbers up to 64 digits. Everything runs in your browser; nothing is sent.
Translate text to binary code, and back
Type a word or a sentence and its binary code appears right away: one 8-bit byte per letter, separated by spaces. Paste a string of 0s and 1s instead, and the translator recognizes it and turns it back into text. You can also:
- see each letter’s breakdown, with its code in binary and in decimal;
- copy the result with or without spaces between bytes;
- convert a number between binary, decimal, hexadecimal and octal, with the steps shown;
- do binary math: addition, subtraction, multiplication and division with the remainder.
Binary code works with or without spaces: a long run of 0s and 1s is cut every 8 bits, and a shorter group, like the 7 bits of old ASCII, is padded on the left. It’s free, with no sign-up, and everything runs in your browser.
How text becomes binary code
A computer only stores 0s and 1s, so every character gets a number, and that number is written in binary. Plain English letters, digits and common punctuation follow the ASCII table: capital B is number 66, written 01000010 in one byte. The word “Hello” takes 5 bytes, or 40 bits.
Accented letters, emojis and Chinese characters don’t exist in ASCII. The web uses UTF-8, which keeps the same codes for ASCII characters and adds more than a million others, written in 2 to 4 bytes. The letter é becomes 11000011 10101001, and an emoji takes 4 bytes. The translator uses UTF-8, so binary code from another source reads back correctly.
The alphabet in binary code
Here is every letter in uppercase and lowercase, in one byte each. Lowercase letters differ from uppercase ones by a single bit, the third from the left:
| Uppercase letter | Lowercase letter |
|---|---|
| A 01000001 | a 01100001 |
| B 01000010 | b 01100010 |
| C 01000011 | c 01100011 |
| D 01000100 | d 01100100 |
| E 01000101 | e 01100101 |
| F 01000110 | f 01100110 |
| G 01000111 | g 01100111 |
| H 01001000 | h 01101000 |
| I 01001001 | i 01101001 |
| J 01001010 | j 01101010 |
| K 01001011 | k 01101011 |
| L 01001100 | l 01101100 |
| M 01001101 | m 01101101 |
| N 01001110 | n 01101110 |
| O 01001111 | o 01101111 |
| P 01010000 | p 01110000 |
| Q 01010001 | q 01110001 |
| R 01010010 | r 01110010 |
| S 01010011 | s 01110011 |
| T 01010100 | t 01110100 |
| U 01010101 | u 01110101 |
| V 01010110 | v 01110110 |
| W 01010111 | w 01110111 |
| X 01011000 | x 01111000 |
| Y 01011001 | y 01111001 |
| Z 01011010 | z 01111010 |
To write your name in binary, put the bytes of its letters side by side, or just type it into the translator, which handles accents too.
Binary to decimal
In binary, each digit is a power of 2 that doubles from one place to the next, starting from the right. To convert, add up the powers of 2 where there’s a 1. In one byte, the places are worth:
| Place from the right | Power | Value |
|---|---|---|
| 8 | 27 | 128 |
| 7 | 26 | 64 |
| 6 | 25 | 32 |
| 5 | 24 | 16 |
| 4 | 23 | 8 |
| 3 | 22 | 4 |
| 2 | 21 | 2 |
| 1 | 20 | 1 |
So 101101 is 32 + 8 + 4 + 1, which is 45. In the Binary ↔ decimal tab, choose “binary” and type the number: you get the result and the calculation, for up to 64 digits.
Decimal to binary
Divide the number by 2, then divide the quotient by 2, and so on until you reach 0, writing down each remainder. For 45:
- 45 ÷ 2 = 22, remainder 1
- 22 ÷ 2 = 11, remainder 0
- 11 ÷ 2 = 5, remainder 1
- 5 ÷ 2 = 2, remainder 1
- 2 ÷ 2 = 1, remainder 0
- 1 ÷ 2 = 0, remainder 1
Read the remainders from bottom to top: 45 is 101101 in binary. The translator shows these divisions for any number up to 65,535.
Hexadecimal and octal
Binary numbers get long fast. Hexadecimal, or base 16, shortens them: each digit from 0 to 9 and A to F stands for a group of 4 bits. 101101 splits into 0010 1101, which is 2D in hex. It’s the notation for web colors (#FFFFFF for white) and memory addresses. Octal, or base 8, groups bits by 3: 45 is 55 in octal.
Binary math
Binary addition follows the same rules you learned in school, carrying as soon as you reach 2: 0 + 0 = 0, 0 + 1 = 1, and 1 + 1 = 10, which is 0 with a carry of 1. For example, 1011 + 110 = 10001, or 11 + 6 = 17 in decimal. The Binary calculator tab adds, subtracts, multiplies and divides, with the decimal result so you can check.
More free tools
- the Morse code translator writes a message in Morse code and plays it;
- the Roman numeral converter converts numbers and dates;
- Hakim, the AI math tutor, explains a conversion or a calculation step by step.
Frequently asked questions
How do I translate binary code to English?
Paste the code into the translator: it recognizes binary on its own and shows the text. Each group of 8 bits is a byte, and the bytes form characters in UTF-8. Spaces between bytes are optional.
How do I write my name in binary?
Type your name into the translator: each letter becomes an 8-bit byte. For example, a capital B is 01000010. Accented letters take 2 bytes.
What does 01001000 01101001 mean?
These two bytes are 72 and 105 in decimal, which are the letters H and i: the word “Hi.”
How do you say “I love you” in binary?
“I love you” is 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101: one byte per letter, and 00100000 for each space.
How do I convert binary to decimal?
Each binary digit is a power of 2: 1, 2, 4, 8, 16 and so on, starting from the right. Add up the ones where there’s a 1. For example, 101101 = 32 + 8 + 4 + 1 = 45.
How do I convert decimal to binary?
Divide the number by 2 until you get 0, then read the remainders from bottom to top. For 45, the remainders give 101101. The translator shows each division.
What’s the difference between binary, ASCII and UTF-8?
Binary is a way of writing numbers with 0s and 1s. ASCII and UTF-8 are tables that give each character a number: ASCII covers 128 characters, and UTF-8 keeps the same codes and adds every alphabet, accent and emoji.
Why do computers use binary?
Because an electronic circuit can easily tell two states apart, current or no current, written as 1 and 0. All data, from text to pictures, is stored that way.
Stuck on a math problem?
Hakim AIMathematics