Skip links

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 letterLowercase letter
A 01000001a 01100001
B 01000010b 01100010
C 01000011c 01100011
D 01000100d 01100100
E 01000101e 01100101
F 01000110f 01100110
G 01000111g 01100111
H 01001000h 01101000
I 01001001i 01101001
J 01001010j 01101010
K 01001011k 01101011
L 01001100l 01101100
M 01001101m 01101101
N 01001110n 01101110
O 01001111o 01101111
P 01010000p 01110000
Q 01010001q 01110001
R 01010010r 01110010
S 01010011s 01110011
T 01010100t 01110100
U 01010101u 01110101
V 01010110v 01110110
W 01010111w 01110111
X 01011000x 01111000
Y 01011001y 01111001
Z 01011010z 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 rightPowerValue
827128
72664
62532
52416
4238
3224
2212
1201

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:

  1. 45 ÷ 2 = 22, remainder 1
  2. 22 ÷ 2 = 11, remainder 0
  3. 11 ÷ 2 = 5, remainder 1
  4. 5 ÷ 2 = 2, remainder 1
  5. 2 ÷ 2 = 1, remainder 0
  6. 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

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.

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.

These two bytes are 72 and 105 in decimal, which are the letters H and i: the word “Hi.”

“I love you” is 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101: one byte per letter, and 00100000 for each space.

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.

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.

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.

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
Chat with HakimFree · No sign-up