EasyWordCounter

Binary Translator

Type text to turn it into binary code, or paste binary to read it as text. The translator works out which way to go, and handles accents and emoji too.

Binary

The binary code appears here.

Runs in your browser. Your text is never uploaded.

How the binary translator works

Computers store every character as a number, and every number as a string of bits: zeros and ones. To translate text to binary, the tool looks up each character’s number inUTF-8, the encoding used by almost every website, and writes each byte as eight binary digits.

To translate binary to text, it does the reverse: reads the digits eight at a time (or one group at a time, if you separated the bytes with spaces), turns each group into a byte, and decodes the bytes as UTF-8. If they do not form valid text, you get a clear error rather than a row of question marks.

Auto-detect treats anything made only of zeros, ones and spaces as binary, and everything else as text. Pick a direction yourself if you actually want the digits “101” turned into binary.

Examples

TextBinary
A01000001
a01100001
Hi01001000 01101001
OK!01001111 01001011 00100001
(space)00100000
é11000011 10101001
👋11110000 10011111 10010001 10001011

Capital and small letters differ by a single bit: A is 01000001 and a is01100001. That is why switching case was cheap for early computers, and why the third digit from the left is the one that changes.

Reading binary by hand

Each of the eight positions in a byte is worth double the one to its right: 128, 64, 32, 16, 8, 4, 2 and 1. Add up the positions that hold a 1. For 01001000 that is 64 + 8 = 72, which is the code for “H”. For 01101001 it is 64 + 32 + 8 + 1 = 105, the code for “i”.

The options change only how the binary is written. Space between bytesmakes it readable; turn it off for one unbroken string. Always 8 digits per byte keeps the leading zeros, so every byte lines up. Without spaces the zeros are always kept, because otherwise there would be no way to tell where one byte ends.

Frequently asked questions

How do I translate binary code to text?
Paste the binary into the box. The translator sees that it is only zeros, ones and spaces and turns it back into text straight away. If it guesses wrong, choose “Binary → text” to force the direction.
Why are some letters more than eight digits long?
They are more than one byte. This binary code translator uses UTF-8, the encoding almost every web page and app uses. Plain English letters, digits and punctuation take one byte each, accented letters such as é take two, and most emoji take four. Each byte is still eight digits; there are just more of them.
Why do I get an error instead of text?
The binary does not make valid text. Usually one digit is missing or extra, which shifts every byte after it, or there is a stray character that is not a 0 or 1. The message tells you which. Without spaces between bytes, the total number of digits must divide exactly by eight.
What is the difference between binary and ASCII?
ASCII is a code that gives each English letter, digit and punctuation mark a number from 0 to 127. Binary is just a way of writing that number in base two. For those 128 characters UTF-8 and ASCII give exactly the same binary, so text to binary output here matches any ASCII table.
Is my text sent anywhere?
No. The conversion happens in your browser as you type. Nothing is uploaded or stored.