Binary converters
Text to binary converter.
Hello in binary is 01001000 01100101 01101100 01101100 01101111. Each ASCII letter is one 8-bit byte.
Input
Result
Type or paste text to see its binary.
How to text to binary by hand
Every character has a numeric code. Look up the code (A is 65), then write that number in base 2, padded to 8 bits: 65 is 01000001. Repeat for each character.
Plain English letters, digits and punctuation use one byte each. Characters outside ASCII use two to four bytes in UTF-8, so é is 11000011 10101001.
Worked examples
| Text | Binary |
|---|---|
| A | 01000001 |
| Hi | 01001000 01101001 |
| Hello | 01001000 01100101 01101100 01101100 01101111 |
| SOS | 01010011 01001111 01010011 |
| é | 11000011 10101001 |
| € | 11100010 10000010 10101100 |
Need text, decimal and hex side by side? Use the full binary converter, or look a character up in the ASCII table.
Sources: RFC 20, ASCII format for network interchange and RFC 3629, UTF-8.
Text to binary FAQ
How do you convert text to binary?
Turn each character into its numeric code, then write the number in base 2 using 8 bits. A is 65, which is 01000001.
What is the binary for the letter A?
01000001 for capital A (65) and 01100001 for lowercase a (97).
Is ASCII to binary different from text to binary?
For English letters, digits and punctuation they give the same result, because UTF-8 uses the same single byte as ASCII for the first 128 characters. Other characters take extra bytes.
Why does one character sometimes produce more than 8 bits?
UTF-8 uses two to four bytes for characters outside basic ASCII. € is three bytes: 11100010 10000010 10101100.