🔤 Binary Translator

Turn text into binary code (zeros and ones) and back, or convert a number between decimal, binary, hexadecimal and octal.

Text ↔ binary

Type in either box, the other one updates as you type

Number converter

Change any field to convert between number systems

Advertisement

How does binary code work?

Computers store everything as bits: zeros and ones. Every letter has a number (for example A = 65), and that number is written in binary with 8 bits, also called one byte.

A = 65 = 64 + 1 = 01000001

Each position in a binary number is worth double the one to its right: 1, 2, 4, 8, 16, 32, 64, 128. Add up the positions with a 1 and you get the decimal number.

Example: "Hi" in binary

CharacterDecimalBinary
H7201001000
i10501101001

Frequently asked questions

How do I convert binary to text?

Paste the binary code in the second box. Each group of 8 bits becomes one character. Groups can be separated by spaces, or written as one long string.

What does 01001000 01101001 mean?

It means "Hi": 01001000 is 72, the code for H, and 01101001 is 105, the code for i.

Does it work with emoji and accented letters?

Yes. Characters like é or emoji use more than one byte (UTF-8), so they become two to four groups of 8 bits.

What is hexadecimal?

Hexadecimal is base 16. It uses 0–9 and A–F, so one hex digit replaces four bits. 255 in decimal is FF in hex and 11111111 in binary.