Binary Translator: Text to Binary and Back

Type text to turn it into binary code, or paste binary (ones and zeros) to read it as text. Everything runs in your browser; nothing is sent to our server.

How Text Becomes Binary

Computers store everything as bits, ones and zeros. To store text, each character gets a number, and that number is written in binary. The capital letter H is number 72, which is 01001000 in binary. The letter i is 105, or 01101001. So "Hi" in binary is 01001000 01101001.

Eight bits make a byte, and one byte holds a number from 0 to 255. That's why binary text is usually written in groups of eight.

Common Letters in Binary

CharacterDecimalBinary
A6501000001
Z9001011010
a9701100001
z12201111010
0 (the digit)4800110000
Space3200100000

Capital and small letters differ by one bit, the third from the left. That's 32 in decimal, which is why A (65) and a (97) are 32 apart.

ASCII and UTF-8

The numbers for English letters, digits and punctuation come from ASCII, a standard from the 1960s that covers 128 characters. Modern systems use UTF-8, which keeps every ASCII character as one byte and adds over a million more: accented letters, other alphabets, symbols and emoji. These take two to four bytes each. In this translator, é becomes two bytes (11000011 10101001) and an emoji such as 😀 becomes four.

How to Read Binary by Hand

Each position 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's 64 + 8 = 72, which is H. Then look the number up in an ASCII table.

Tips for Pasting Binary

  • Spaces, line breaks and commas between bytes are fine. Without separators, the bits are read in groups of eight from the left.
  • Seven-bit groups (old ASCII style, such as 1001000 1101001) work when they're separated by spaces.
  • If the total isn't a multiple of eight, a bit is probably missing or extra, and the translator tells you.

Privacy

The translation runs entirely in your browser with JavaScript. Your text never leaves your device. For other encodings, try the Base64 encoder, URL encoder or hash generator.

Frequently Asked Questions

How do I convert text to binary?
Type your text and click Text to Binary. Each character is turned into its number in UTF-8 and written as 8-bit bytes, so "Hi" becomes 01001000 01101001. The table underneath shows each character's decimal, hex and binary values.
How do I convert binary to text?
Paste the ones and zeros and click Binary to Text. Bytes can be separated by spaces, commas or line breaks, or run together, in which case they're read eight bits at a time.
What is "hello" in binary?
In ASCII and UTF-8, hello is 01101000 01100101 01101100 01101100 01101111: one byte each for h, e, l, l and o.
Why do some characters take 16 or 32 bits?
UTF-8 stores English letters, digits and common punctuation in one byte, but accented letters, other alphabets and emoji need two to four bytes. For example, é is 11000011 10101001.
Last reviewed: Reviewed by the

How this tool works: This tool runs in your browser and on our server in real time. Depending on the tool, results are computed directly from the input you provide or retrieved from live, authoritative data sources at the moment you run a lookup. We do not sell your data, and your lookups are kept private — any history shown here is stored only on your device.