Binary Code Translator

Type text to see it as 8-bit binary, or paste ones and zeros to read them as text. The translator is free, supports UTF-8, can detect the direction itself and runs in your browser without uploading anything.

Binary Code TranslatorPrivate · runs on your device
Input
Words 0Characters 0Lines 0
Binary code

Example: Hi → 01001000 01101001

How to use the binary code translator

One box takes either kind of input, and the output updates as you type.

  1. Type or paste into the Input box. Letters, digits, punctuation, accents and emoji are all accepted.
  2. Leave Mode on Auto detect and the tool decodes when the input is only zeros, ones and white space and is at least eight characters long. Otherwise it encodes. Choose Text to code or Code to text to force a direction.
  3. Read the result. Each byte is eight digits, with one space between bytes.
  4. To decode, paste groups of exactly eight digits, separated by spaces or line breaks, or one unbroken run of digits.
  5. Press Copy, Download .txt or Use as input to send the result back in.

Decoding looks for runs of eight digits, so a space inside a byte, such as 0100 1000, breaks it, and groups of seven or four digits are not read at all.

How text becomes binary

Each character has a number, and that number is written in base 2 using place values of 128, 64, 32, 16, 8, 4, 2 and 1. The letter H is 72, which is 64 + 8, so its byte is 01001000. The letter i is 105, which is 64 + 32 + 8 + 1, giving 01101001. So Hi becomes 01001000 01101001.

CharacterDecimalBinary
A6501000001
a9701100001
space3200100000
04800110000
!3300100001

Characters beyond plain English use UTF-8, which spends more than one byte on them. The euro sign becomes three bytes, 11100010 10000010 10101100, and é becomes two. The same bytes written in hexadecimal are shorter, which the hex to text converter shows, and the UTF-8 encoder explains how the byte patterns are built.

Reading binary by hand, and where auto detect can mislead

Two patterns make short messages readable without a tool. Capital letters begin 010 and lower-case letters begin 011, so the two cases differ only in the third bit, worth 32. Digits begin 0011, so 00110101 is the character 5.

Auto detect has one trap. A string such as 10101010 looks like a byte, so it is decoded, and because that value is not valid UTF-8 on its own you see a replacement character. If you really want the typed digits as text, set Mode to Text to code, which gives 00110001 00110000 ... for each digit. Try a decode by hand: 01000001 01001110 01000100 is 65, 78 and 68, which are the letters A, N and D, so the message reads AND. This tool converts characters, not quantities. To write the number 255 in base 2, which is 1111 1111, use the number base converter.

What this translator does not do

The translator keeps no history and has no file input, so long documents are better handled in a text editor or a script. It always works in 8-bit UTF-8 bytes. It does not produce 7-bit ASCII groups, 16-bit UTF-16 or little-endian variants, and it does not reverse bit order. Binary here is a way of writing text, not security: anyone can paste it back in and read it. It is also unrelated to compiled machine code, which is binary in a different sense.

Bit patterns also describe settings, not only text. When a byte holds eight on/off flags, such as file permissions or hardware status bits, writing it out makes each flag visible: counting from the right as bit 0, the byte 00000101 has bits 0 and 2 set. People use it to check classroom exercises, to hide a short message in a puzzle or escape room, and to see which bits differ when a flag or character looks wrong. For another classic puzzle code try the Morse code translator.

A practical tip for teaching: encode a short word, hide the output, and ask learners to decode it by hand using the place values above. Then paste their answer in as binary to check it. Because every letter is eight digits, mistakes such as a dropped digit are easy to spot, since the group no longer has the right length and the decoder skips it.

Quick answers

Frequently asked questions

The questions people ask most, answered in plain words.

How do I translate binary code to text?

Paste the binary into the Input box. With Mode on Auto detect, the tool sees that it holds only ones, zeros and spaces, reads each group of eight digits as a byte and shows the text. Groups can be separated by spaces or line breaks, or run together.

Why does each letter have eight digits?

Computers store text in bytes, and a byte is eight bits. English letters only need seven bits, so the first digit is zero. Showing full bytes keeps every character the same length and matches how memory, files and network packets actually hold text.

Does the binary translator support emoji and accented letters?

Yes. Characters outside plain English are converted to UTF-8 first and then shown byte by byte. An accented e takes two bytes, the euro sign three and most emoji four. Decoding puts the bytes back together, as long as none are missing.

What is the binary code for the letter A?

Capital A is 65, which is 01000001 in binary. Lower-case a is 97, or 01100001. They differ only in the third bit from the left, the one worth 32, so changing case in ASCII means flipping that single bit.

Why did my binary decode to strange symbols?

The bytes were probably not valid UTF-8 text, or a group was not exactly eight digits long. Random bit patterns, images and bytes above 127 on their own show as replacement characters. Check each group and make sure no spaces split a byte.