Skip to content

Binary translator

Type text to get binary code, or paste 0s and 1s to read them as text. Emoji and accents work both ways.

Binary translator

11 characters, 11 bytes, 88 bits

Binary
01010100 01100101 01111000 01110100 00100000 01000101 01100100 01101001 01110100 01101111 01110010
Bytes as
Between bytes
Bits per letter

Letters are turned into bytes with UTF-8, like on almost every web page. A to Z, digits and signs take one byte each. Accents take 2 bytes and emoji take 4.

Advertisement
A typewriter key with the letter A next to a strip of punched tape with eight holes

Last checked by the TextEditor.com team

How to use the binary translator

Type in the box and the binary shows up while you type. To read binary, paste the 0s and 1s. The tool sees that it is binary and turns it back into text. If you type 0s and 1s yourself, it asks before it switches.

Swap puts the result in the box and turns it back, so you can check that nothing got lost. Letter by letter shows each character over its own bytes. Click a character there to see how its bits are built.

Binary from other places is often messy. The translator reads all of these. Press Try it to load one into the tool.

Binary the translator can read
You pasteYou getWhat is specialLoad
01001000 01101001HiBytes with spaces, the usual way
0100100001101001HiNo spaces: read 8 bits at a time
1001000 1101001Hi7 bits each, leading 0 left out
0100 1000 0110 1001HiGroups of 4 bits, read in pairs
11110000 10011111 10011000 10000000😀One emoji, 4 bytes

Commas, line breaks and a 0b in front of each byte are fine too. Hex and decimal bytes work when you pick them under Bytes as.

How binary counts: place values

A row of eight light switches, two of them on, spelling the letter A in binary
Eight switches, one byte. On is 1 and off is 0, so on at 64 and 1 makes 65, the letter A.

Binary has only two digits, 0 and 1. Each digit is a bit. In our normal numbers each place is worth ten times the place to its right: ones, tens, hundreds. In binary each place is worth two times as much: 1, 2, 4, 8 and so on.

Eight bits make a byte. The places of a byte are worth 128, 64, 32, 16, 8, 4, 2 and 1. Add up the places that hold a 1 and you get the number. 01000001 is 64 + 1, so it is 65. In text, 65 is the capital letter A.

Click the bits to build a byte

01000001 = 64 + 1 = 65, the letter A

Jump to:

One byte holds a number from 0 (all bits off) to 255 (all bits on). That is 256 different values.

From letters to bytes: ASCII, 7 bits and 8 bits

A computer stores a letter as a number. The list that says which number means which letter is a character encoding. The first common one was ASCII, from 1963. It gives a number from 0 to 127 to each English letter, digit and sign. The ASCII table shows all 128.

127 fits in 7 bits, so ASCII is a 7 bit code. Computers store whole bytes, so in practice each letter gets 8 bits and the first bit is 0. That is why most binary messages have 8 digits per letter, and why they so often start with 01. Pick 7 bit ASCII in the tool if your teacher or puzzle uses 7 digits.

Some characters in decimal and binary
CharacterNumber8 bits7 bits
A65010000011000001
B66010000101000010
a97011000011100001
b98011000101100010
048001100000110000
Space32001000000100000
!33001000010100001

Look at A and a. They differ in one bit, the one worth 32. Every capital letter is 32 less than its small letter, so changing case in binary means flipping a single bit.

Advertisement

Emoji and accents: how UTF-8 builds bytes

ASCII has no é, no ü and no emoji. Unicode fixes that. It gives a number, called a code point, to every character in every script. There are more than 150,000 of them, so most need more than one byte. UTF-8 is the way to write those numbers as bytes. W3Techs counts it on 99.1% of websites (checked November 2026).

The first bits of each byte tell a program how to read it. A byte that starts with 0 is a whole character, the same as in ASCII. A byte that starts with 110, 1110 or 11110 starts a character of 2, 3 or 4 bytes. Each byte after it starts with 10. The bits that are left hold the code point. Type a character to see its bits moved into the bytes.

Type one character and see how its bytes are built

Try:

é is code point U+00E9, the number 233. UTF-8 writes it in 2 bytes.

The number in binary

00011101001

The bytes, with place values

11000011128 + 64 + 2 + 1 = 195
hex C3
10101001128 + 32 + 8 + 1 = 169
hex A9

Gray bits are markers that tell a program how long the character is. The colored bits are the code point, cut into pieces and moved into the bytes in order.

The markers make UTF-8 safe to read. A program can start in the middle of a text and still find where each character begins. The full rules are on the Wikipedia page about UTF-8.

When binary will not turn back into text

Each byte between 0 and 127 is fine on its own. Bytes from 128 up must follow the marker rules, or they are not text. When that happens, the translator names the first bad byte and shows its bits. The broken parts show as �, the sign programs use for bytes they can't read.

The usual causes are a lost byte when copying, an extra or missing digit, or bits that were never text at all. When the binary has no spaces, one missing digit shifts every byte after it. The result then turns into strange signs or boxes from that point on.

Binary that is not valid text
BinaryWhat is wrongLoad
11000011Stops in the middle of a character
10101001 01101001Starts with a byte that only continues a character
01001000011010015 bits with no spaces: no whole bytes

Some old files use Windows-1252 instead of UTF-8. In that case é is one byte, 11101001, and UTF-8 can't read it alone. The translator offers to read the bytes that way instead.

Binary, hex and decimal

Binary, hex and decimal are three ways to write the same bytes. Hex uses 16 digits, 0 to 9 and A to F. One hex digit stands for 4 bits, so a byte is always two hex digits. Programmers like hex because it is short and still easy to turn into bits.

Hi in three number systems
Bytes asThe word HiDigits per byte
Binary01001000 011010018
Hex48 692
Decimal72 1051 to 3

Binary is not a secret code. Anyone can paste it into a translator like this one. For Base64, URL encoding and other formats used in code, try the encoder and decoder. For a code you can tap, beep or blink with a light, try the Morse code translator.

Frequently asked questions

What is "hello" in binary?

In 8 bit binary, hello is 01101000 01100101 01101100 01101100 01101111. Each group of 8 bits is one letter: h, e, l, l, o. Capital H would be 01001000 instead of 01101000.

What is "I love you" in binary?

It is 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101. The two groups 00100000 are the spaces between the words.

Why does each letter have 8 digits?

Computers store text in bytes, and a byte has 8 bits. Plain English letters need only 7, so their first bit is 0. Letters with accents and emoji need 2 to 4 bytes, so they get 16 to 32 bits.

How do I read binary by hand?

Split the bits into groups of 8. Under each group write the place values 128, 64, 32, 16, 8, 4, 2 and 1. Add the values that sit under a 1. Then look up the number in an ASCII table: 72 is H and 105 is i.

Can binary code hold emoji?

Yes. With UTF-8, an emoji like 😀 is 4 bytes: 11110000 10011111 10011000 10000000. Many binary translators use only 7 bit ASCII and turn emoji into question marks. This one keeps them, both ways.

Why do I get strange symbols when I decode binary?

Usually a digit is missing or extra, so every byte after it is shifted. Check the binary near the first strange sign. If the bytes have spaces between them, the translator can fix missing leading zeros on its own.

  • Encode and decodeEncode or decode text as Base64, URL encoding, HTML entities, Unicode escapes and hex.
  • ASCII tableAll 128 ASCII codes with decimal, hex, octal, binary and HTML values.
  • Morse codeTurn text into Morse code and hear it, or paste dots and dashes to decode them.
  • Symbol alphabetsSee your text in five symbol alphabets at once: Morse code, Braille, NATO words, flag semaphore and ASL letters.
  • BrailleType text and get Unicode Braille you can copy and paste.
  • Password generatorMake strong random passwords and easy to type passphrases in your own browser.

↑ ↓ to choose, Enter to open, Esc to close