Skip to content

Binary Translator

Type text to see it as binary, or paste binary to read it as text. It runs in your browser. It is free, and no email is needed.

Sources last checked October 12, 2026

Loading the tool…

How to use the binary translator

  1. Pick a direction at the top of the tool. Text → Binary turns letters into ones and zeros, and Binary → Text reads ones and zeros back as letters.
  2. Type or paste into the first box. The second box shows the result as you type, so there is no button to press.
  3. Choose how the bytes are laid out: a space between bytes, no space, or one byte per line. The bytes are the same in all three.
  4. Use Copy or Download above the result to keep it, or press the swap button between the boxes to send the result back the other way.

Worked example: Hi in binary

Each plain English letter is one byte, and a byte is eight bits. To turn a letter into binary, find its number in the ASCII table and write that number in base 2 with eight digits.⁠[1]⁠[2]

Text to binary: Hi⁠[4]
Text
Hi
Binary
01001000 01101001
ByteDecimalCharacter
0100100072H
01101001105i
  • H is 72. 72 is 64 + 8, so the bits worth 64 and 8 are 1 and the rest are 0: 01001000.
  • i is 105. 105 is 64 + 32 + 8 + 1, which gives 01101001.
  • Both bytes start with 0, because every ASCII character fits in the lower seven bits.

Quick reference: common characters

Characters people convert most, with their ASCII code and byte⁠[3]⁠[5]

CharacterDecimalHexBinary
A654101000001
Z905A01011010
a976101100001
z1227A01111010
0483000110000
9573900111001
SP322000100000
.462E00101110
!332100100001
?633F00111111

SP is the space character. The full list of all 128 ASCII codes is on the ASCII table page, and every letter from A to Z, capital and small, is on the binary alphabet page.

Examples to try

Paste any of these into the tool to get the same bytes

TextBinary
OK01001111 01001011
A b01000001 00100000 01100010
500110101
é11000011 10101001
€11100010 10000010 10101100

The digit 5 is a character here, so it becomes 00110101, its ASCII code, not the number five in base 2. The letter é and the euro sign are not in ASCII, so UTF-8 gives them two and three bytes.⁠[6]

Common mistakes

Pasting binary with a missing digit
Binary to text needs whole bytes. If one group has seven digits, the total is no longer a multiple of eight, and the tool shows an error instead of guessing.
Expecting a number to convert as a value
Typing 25 gives the bytes for the characters 2 and 5. To see a number from 0 to 255 written in binary, use the binary numbers page.
Mixing up 0 and the letter O
Binary uses only the digits 0 and 1. A capital O or a small l pasted by mistake makes the input invalid.
Reading UTF-8 bytes one at a time
A byte that starts with 10 is never a character on its own. It belongs to the character before it, so decode the whole group together.⁠[7]

How it works

  1. Text to binary: the tool turns your text into bytes using UTF-8, the encoding described in RFC 3629. Plain ASCII letters, digits and punctuation keep their ASCII values and take one byte each, with the top bit set to 0. For example, H is 72, which is 01001000.
  2. Letters with accents, other alphabets and emoji take 2 to 4 bytes in UTF-8. Each extra byte starts with the bits 10. So the letter é becomes two bytes, 11000011 10101001, and a smiley emoji becomes four. Each byte is written as exactly 8 digits of 0 and 1.
  3. Binary to text: the tool removes spaces, tabs and line breaks, then checks that only 0 and 1 are left and that the count of digits is a multiple of 8. Each group of 8 digits becomes one byte, and the bytes are read back as UTF-8 text. If they do not form valid UTF-8, it says so instead of guessing.
  4. The result shows the binary or the text, the number of bytes and the number of characters. Below it, a small table lists the first 20 characters with each one's code point and its bytes in binary, so you can see how each letter maps to bytes.

Questions

Is text to binary the same as ASCII to binary?

For plain English letters, digits and common punctuation, yes. UTF-8 keeps every ASCII character at its ASCII value in a single byte, so the bits match. The two only differ for characters outside ASCII, such as accents and emoji, which ASCII cannot hold.

What is "Hello" in binary?

Hello is 01001000 01100101 01101100 01101100 01101111. Each of the five letters is one byte because all of them are plain ASCII letters: H is 72, e is 101, l is 108 and o is 111.

Why does one letter sometimes become two or more bytes?

UTF-8 uses 1 to 4 bytes per character. ASCII characters use one byte. Accented letters like é use two, many other alphabets use two or three, and emoji use four. That is why the byte count can be larger than the character count.

Why is every byte written with 8 digits?

A byte is eight bits, so the tool writes every byte with all eight digits and keeps the leading zeros. H is 72, which is 1001000 in base 2, and the tool shows it as 01001000. Binary to text also expects groups of eight.

Can it convert a number like 5 into binary?

No. This tool converts characters, not number values. Typing 5 gives the binary of the character 5, which is 00110101, not the number five written in base 2.

Why does my binary give an error?

Binary to text needs whole bytes: groups of 8 digits using only 0 and 1. It does not read 7-bit groups or UTF-16. Spaces and line breaks between groups are fine. If the digits are fine but the bytes do not form valid UTF-8 text, the tool tells you that instead.

Is my text uploaded?

No. The conversion runs in your browser as you type, so your text is not sent to a server to be converted. It is only sent if you choose to email yourself a copy of the result.

Do I have to give my email?

No. Your result shows right away and the tool is free to use. The email box below the result is optional and only there if you want a copy.

Sources, last checked October 12, 2026

  • RFC 20: ASCII format for Network Interchange (IETF, 1969)
    1. For concreteness, we suggest the use of standard 7-bit ASCII embedded in an 8 bit byte whose high order bit is always 0.
  • Glossary of Unicode Terms (Unicode Consortium)
    1. An ordered sequence of eight bits considered as a unit.
    2. The American Standard Code for Information Interchange, a 7-bit coded character set for information interchange.
  • RFC 3629: UTF-8, a transformation format of ISO 10646 (IETF, 2003)
    1. The only octet of a "sequence" of one has the higher-order bit set to 0, the remaining 7 bits being used to encode the character number.
    2. US-ASCII characters are encoded in one octet having the normal US-ASCII value, and any octet with such a value can only stand for a US-ASCII character, and nothing else.
    3. In a sequence of n octets, n>1, the initial octet has the n higher-order bits set to 1, followed by a bit set to 0.
    4. The following octet(s) all have the higher-order bit set to 1 and the following bit set to 0, leaving 6 bits in each to contain bits from the character to be encoded.